This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug stdio/10108] setvbuf _IOFBF doesn't honor size correctly
- From: "schwab at linux-m68k dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sun, 22 Jun 2014 07:14:52 +0000
- Subject: [Bug stdio/10108] setvbuf _IOFBF doesn't honor size correctly
- Auto-submitted: auto-generated
- References: <bug-10108-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=10108
--- Comment #7 from Andreas Schwab <schwab@linux-m68k.org> ---
See _IO_new_file_xsputn:
/* Try to maintain alignment: write a whole number of blocks. */
block_size = f->_IO_buf_end - f->_IO_buf_base;
do_write = to_do - (block_size >= 128 ? to_do % block_size : 0);
if (do_write)
{
count = new_do_write (f, s, do_write);
to_do -= count;
if (count < do_write)
return n - to_do;
}
--
You are receiving this mail because:
You are on the CC list for the bug.