This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/14433] setvbuf _IOLBF doesn't honor size


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]