From 6cfe62252de1e11ed520dde6ebcfb96ec234e36d Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Mon, 30 Apr 2012 13:09:01 +1200 Subject: [PATCH] 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 Signed-off-by: Michael Kerrisk --- man3/fopencookie.3 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/man3/fopencookie.3 b/man3/fopencookie.3 index a590bb905..e20ad44d7 100644 --- a/man3/fopencookie.3 +++ b/man3/fopencookie.3 @@ -21,7 +21,7 @@ .\" Formatted or processed versions of this manual, if unaccompanied by .\" 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 fopencookie \- opening a custom stream .SH SYNOPSIS @@ -158,7 +158,8 @@ As its function result, the .I write function should return the number of bytes copied from .IR buf , -or \-1 on error. +or 0 on error. +(The function must not return a negative value.) The .I write function should update the stream offset appropriately.