[Patch, RFC] Remove bogus fflush
Paolo Carlini
pcarlini@suse.de
Thu Sep 16 16:47:00 GMT 2004
Hi,
the below stems from private discussion with kernel developer Andrea
Arcangeli: while explaining various issues related to I/O, he pointed
out that the read/write primitives are *unbuffered*.
Now, turns out that the library still has some, essentially bogus, we
believe, fflush, remnants of the old __basic_file<> implementation,
used in 3.3, which exploited the stdio API (i.e., fread, fwrite,
fflush, and so on).
Indeed, the below regtests OK on x86 and x86_64 linux.
Anyone can spot something wrong/dangerous with it? Otherwise I will
apply it soon, say 24 hours, to mainline for wider testing.
Paolo.
////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_with_andrea
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20040916/2312841f/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_with_andrea
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20040916/2312841f/attachment-0001.ksh>
More information about the Libstdc++
mailing list