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 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.


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