[Bug stdio/1190] fgetc()/fread() behaviour is not POSIX compliant
siddhesh at redhat dot com
sourceware-bugzilla@sourceware.org
Thu Sep 13 13:52:00 GMT 2012
http://sourceware.org/bugzilla/show_bug.cgi?id=1190
--- Comment #13 from Siddhesh Poyarekar <siddhesh at redhat dot com> 2012-09-13 13:52:06 UTC ---
The change is quite simple, but a comment in fileops.c says that this behaviour
is retained for sysv compatibility:
...
int
_IO_new_file_underflow (fp)
_IO_FILE *fp;
{
_IO_ssize_t count;
#if 0
/* SysV does not make this test; take it out for compatibility */
if (fp->_flags & _IO_EOF_SEEN)
return (EOF);
#endif
...
I'm not sure if this is valid anymore, so I'll try to find out what the current
status is, unless someone here already knows the answer.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list