[Bug libc/14433] setvbuf _IOLBF doesn't honor size
bugdal at aerifal dot cx
sourceware-bugzilla@sourceware.org
Mon Aug 6 16:06:00 GMT 2012
http://sourceware.org/bugzilla/show_bug.cgi?id=14433
--- Comment #3 from Rich Felker <bugdal at aerifal dot cx> 2012-08-06 16:06:27 UTC ---
Atomicity is only guaranteed when making a direct write() to a pipe. Nowhere is
stdio specified to have any atomicity properties with respect to pipes. With
that said, I think glibc and most if not all existing implementations will give
you the atomicity when the underlying fd is a pipe as long as the conditions
are met, but it would be foolish to rely on this.
Anyway, your proposed change to setvbuf contradicts the requirements of POSIX
and ISO C. Adding such a mode would require a new buffering mode constant so as
not to conflict with existing required semantics.
--
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.
More information about the Glibc-bugs
mailing list