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/5742] stdio poor file buffering in "w+b" mode


------- Additional Comments From olivier dot paquet at gmail dot com  2008-02-21 14:23 -------
(In reply to comment #2)
> Have you tried using setvbuf to set the stream to unbuffered? Does this make a
> difference?

Yes, it does completely disable buffering and the calls seem to be simply passed
directly to the kernel. So it avoids the dummy reads but it forces me to do my
own buffering where it's needed (because according to the man page setvbuf can
only be used on a newly opened stream).

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=5742

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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