mirror of https://github.com/mkerrisk/man-pages
Fix confused wording for return value of setvbuf().
Fixes http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488104. Other minor rewordings.
This commit is contained in:
parent
7316d60fea
commit
5ab17ae7b0
|
@ -43,7 +43,7 @@
|
|||
.\" Correction, 2000-03-03, Andreas Jaeger <aj@suse.de>
|
||||
.\" 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
|
||||
|
|
Loading…
Reference in New Issue