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: "carlos at codesourcery dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 21 Feb 2008 15:59:16 -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 carlos at codesourcery dot com 2008-02-21 15:59 -------
Is it acceptable to open the file with "wb" instead of "w+b"? This would avoid
the spurious read.
Requesting that a file be opened for update "+" forces the implementation to
expect that a read *or* write could occur (as per the standard). The
implementation chooses to fill the stream buffer after the seek.
--
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.