This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/712] fread() should not call read() again once the latter returns zero
- From: "drepper at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 26 Sep 2005 23:29:20 -0000
- Subject: [Bug libc/712] fread() should not call read() again once the latter returns zero
- References: <20050210210216.712.bww@acm.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From drepper at redhat dot com 2005-09-26 23:29 -------
This is deliberately not done and hasn't been in a long time. There is an #if
in the code (in the underflow functions) to not do anything if EOF has been
reached but this has been causing problems at some point. Enabling it today
also would mean making a change for no good reason which could break some
programs. Just use feof() or feof_unlocked().
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
http://sourceware.org/bugzilla/show_bug.cgi?id=712
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.