diff options
author | Petr Baudis <pasky@ucw.cz> | 2012-04-12 21:00:49 +0200 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2012-04-12 21:00:49 +0200 |
commit | 247c3ede396bf000b6e095e5d2b361aa329fc180 (patch) | |
tree | 7b44875951a3bc3b25fba3cc4647540eda325e0b /manual/stdio.texi | |
parent | 55939d6d451a357b0af1f74c03a003e844170720 (diff) | |
download | glibc-247c3ede396bf000b6e095e5d2b361aa329fc180.zip glibc-247c3ede396bf000b6e095e5d2b361aa329fc180.tar.gz glibc-247c3ede396bf000b6e095e5d2b361aa329fc180.tar.bz2 |
Fix description of user provided write function
[BZ #2074]
* stdio.texi (Hook Functions): The user provided writer function
is not allowed to return -1.
Diffstat (limited to 'manual/stdio.texi')
-rw-r--r-- | manual/stdio.texi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/manual/stdio.texi b/manual/stdio.texi index e870afb..c58ca22 100644 --- a/manual/stdio.texi +++ b/manual/stdio.texi @@ -5021,7 +5021,8 @@ ssize_t @var{writer} (void *@var{cookie}, const char *@var{buffer}, size_t @var{ This is very similar to the @code{write} function; see @ref{I/O Primitives}. Your function should transfer up to @var{size} bytes from the buffer, and return the number of bytes written. You can return a -value of @code{-1} to indicate an error. +value of @code{0} to indicate an error. You must not return any +negative value. You should define the function to perform seek operations on the cookie as: |