From 5ab17ae7b0915101a784bff9764eab73698394a6 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Thu, 26 Jun 2008 14:02:30 +0000 Subject: [PATCH] Fix confused wording for return value of setvbuf(). Fixes http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488104. Other minor rewordings. --- man3/setbuf.3 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/man3/setbuf.3 b/man3/setbuf.3 index b3fe22927..f0871ea53 100644 --- a/man3/setbuf.3 +++ b/man3/setbuf.3 @@ -43,7 +43,7 @@ .\" Correction, 2000-03-03, Andreas Jaeger .\" Added return value for setvbuf, aeb, .\" -.TH SETBUF 3 2007-07-26 "Linux" "Linux Programmer's Manual" +.TH SETBUF 3 2008-06-26 "Linux" "Linux Programmer's Manual" .SH NAME setbuf, setbuffer, setlinebuf, setvbuf \- stream buffering operations .SH SYNOPSIS @@ -151,13 +151,14 @@ setvbuf(stream, (char *) NULL, _IOLBF, 0); The function .BR setvbuf () returns 0 on success. -It can return any value on failure, but returns non-zero when -.I mode -is invalid or the request cannot be honored. +It returns non-zero on failure +.RI ( mode +is invalid or the request cannot be honored). It may set .I errno on failure. -The other functions are void. + +The other functions do not return a value. .SH "CONFORMING TO" The .BR setbuf () @@ -180,7 +181,6 @@ You must make sure that the space that points to still exists by the time .I stream is closed, which also happens at program termination. -.P For example, the following is invalid: .nf .sp