mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 18:23:41 +08:00
Fix description of user provided write function
[BZ #2074] * stdio.texi (Hook Functions): The user provided writer function is not allowed to return -1.
This commit is contained in:
parent
55939d6d45
commit
247c3ede39
@ -1,3 +1,9 @@
|
||||
2012-04-12 Petr Baudis <pasky@ucw.cz>
|
||||
|
||||
[BZ #2074]
|
||||
* stdio.texi (Hook Functions): The user provided writer function
|
||||
is not allowed to return -1.
|
||||
|
||||
2012-04-11 David S. Miller <davem@davemloft.net>
|
||||
|
||||
* sysdeps/sparc/fpu/libm-test-ulps: Update.
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user