This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/14433] setvbuf _IOLBF doesn't honor size
- From: "bugdal at aerifal dot cx" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Mon, 06 Aug 2012 11:35:55 +0000
- Subject: [Bug libc/14433] setvbuf _IOLBF doesn't honor size
- Auto-submitted: auto-generated
- References: <bug-14433-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14433
Rich Felker <bugdal at aerifal dot cx> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |bugdal at aerifal dot cx
Resolution| |INVALID
--- Comment #1 from Rich Felker <bugdal at aerifal dot cx> 2012-08-06 11:35:55 UTC ---
The whole point (and REQUIREMENT) of line buffering is that lines appear as
output to the underlying file descriptor whenever a newline is seen. Your
proposed change is non-conformant and defeats the whole purpose of line
buffering. Moreover, there is no "line atomicity" requirement of line buffering
and in fact it would be impossible to guarantee. What would you want
printf("%.*d\n", 2000000000, 0)
to do?
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.