mirror of https://github.com/mkerrisk/man-pages
fopencookie.3: Correct description of return for user-supplied 'write' function
See http://sourceware.org/bugzilla/show_bug.cgi?id=2074 Reported-by: Petr Baudis <pasky@ucw.cz> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
d865ce2de1
commit
6cfe62252d
|
@ -21,7 +21,7 @@
|
||||||
.\" Formatted or processed versions of this manual, if unaccompanied by
|
.\" Formatted or processed versions of this manual, if unaccompanied by
|
||||||
.\" the source, must acknowledge the copyright and authors of this work.
|
.\" the source, must acknowledge the copyright and authors of this work.
|
||||||
.\"
|
.\"
|
||||||
.TH FOPENCOOKIE 3 2008-12-05 "Linux" "Linux Programmer's Manual"
|
.TH FOPENCOOKIE 3 2012-04-30 "Linux" "Linux Programmer's Manual"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
fopencookie \- opening a custom stream
|
fopencookie \- opening a custom stream
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
@ -158,7 +158,8 @@ As its function result, the
|
||||||
.I write
|
.I write
|
||||||
function should return the number of bytes copied from
|
function should return the number of bytes copied from
|
||||||
.IR buf ,
|
.IR buf ,
|
||||||
or \-1 on error.
|
or 0 on error.
|
||||||
|
(The function must not return a negative value.)
|
||||||
The
|
The
|
||||||
.I write
|
.I write
|
||||||
function should update the stream offset appropriately.
|
function should update the stream offset appropriately.
|
||||||
|
|
Loading…
Reference in New Issue