Skip to content

Commit

Permalink
Fix description of user provided write function
Browse files Browse the repository at this point in the history
	[BZ #2074]
	* stdio.texi (Hook Functions): The user provided writer function
	is not allowed to return -1.
  • Loading branch information
pasky authored and ajaeger committed Apr 12, 2012
1 parent 55939d6 commit 247c3ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2012-04-12 Petr Baudis <[email protected]>

[BZ #2074]
* stdio.texi (Hook Functions): The user provided writer function
is not allowed to return -1.

2012-04-11 David S. Miller <[email protected]>

* sysdeps/sparc/fpu/libm-test-ulps: Update.
Expand Down
3 changes: 2 additions & 1 deletion manual/stdio.texi
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 247c3ed

Please sign in to comment.