This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug manual/6885] unclear descriptions of __fwriting and __freading
- From: "allachan at au1 dot ibm.com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 23 Jun 2014 02:27:03 +0000
- Subject: [Bug manual/6885] unclear descriptions of __fwriting and __freading
- Auto-submitted: auto-generated
- References: <bug-6885-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=6885
paxdiablo <allachan at au1 dot ibm.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |allachan at au1 dot ibm.com
--- Comment #1 from paxdiablo <allachan at au1 dot ibm.com> ---
Not sure what the confusion is there? Perhaps you could clarify.
My reading is that, if you last wrote to a read/write (RW) file or if you've
opened it write-only (whether you've written to it or not), you get back a true
(non-zero) value.
All other cases give you false (0), including a RW file where you've neither
read nor written yet.
Some may prefer to consider that a SchrodingerCat mode but the doco makes it
quite clear here that __fwriting() returns false in that case.
--
You are receiving this mail because:
You are on the CC list for the bug.