This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug manual/2074] _IO_new_file_xsputn() in fileops.c not checking for EOF
- From: "pasky at suse dot cz" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 10 May 2010 23:46:19 -0000
- Subject: [Bug manual/2074] _IO_new_file_xsputn() in fileops.c not checking for EOF
- References: <20051220202817.2074.jfardo@laurelnetworks.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From pasky at suse dot cz 2010-05-10 23:46 -------
Then this is a documentation bug - 12.21.3.2 Custom Stream Hook Functions says:
You should define the function to write data to the cookie as:
ssize_t WRITER (void *COOKIE, const char *BUFFER, size_t SIZE)
This is very similar to the `write' function; see *note I/O
Primitives::. Your function should transfer up to SIZE bytes from the
buffer, and return the number of bytes written. You can return a value
of `-1' to indicate an error.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Component|libc |manual
Resolution|INVALID |
http://sourceware.org/bugzilla/show_bug.cgi?id=2074
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.