This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/4359] the __freading function is not compatible with Solaris
- From: "bruno at clisp dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 13 Oct 2007 11:12:54 -0000
- Subject: [Bug libc/4359] the __freading function is not compatible with Solaris
- References: <20070413230421.4359.bruno@clisp.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From bruno at clisp dot org 2007-10-13 11:12 -------
Thank you. This change allows to describe what __freading returns in a quite
precise way, as follows. Also, it makes __freading symmetric to __fwriting.
/* Return true if the stream STREAM is opened read-only, or if the
last operation on the stream was a read operation. Return false if
the stream is opened write-only or append-only, or if it supports
writing and there is no current read operation (such as fputc).
freading and fwriting will never both be true. If STREAM supports
both reads and writes, then:
- both freading and fwriting might be false when the stream is first
opened, after read encounters EOF, or after fflush,
- freading might be false or true and fwriting might be false
after repositioning (such as fseek, fsetpos, or rewind),
depending on the underlying implementation. */
extern int __freading (FILE *stream);
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4359
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.