This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/5742] stdio poor file buffering in "w+b" mode
- From: "olivier dot paquet at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 21 Feb 2008 14:23:25 -0000
- Subject: [Bug libc/5742] stdio poor file buffering in "w+b" mode
- References: <20080206162903.5742.olivier.paquet@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.