fcntl.2: The return value for F_SETPIPE_SZ is the pipe capacity

Reported-by: Tomi Salminen <tlsalmin@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-07-01 11:40:36 +02:00
parent 417e4f5c50
commit 5c4d5f9715
1 changed files with 2 additions and 4 deletions

View File

@ -1257,9 +1257,7 @@ When allocating the buffer for the pipe,
the kernel may use a capacity larger than
.IR arg ,
if that is convenient for the implementation.
The
.B F_GETPIPE_SZ
operation returns the actual size used.
The actual capacity that is set is returned as the function result.
Attempting to set the pipe capacity smaller than the amount
of buffer space currently used to store data produces the error
.BR EBUSY .
@ -1291,7 +1289,7 @@ for traditional
.B SIGIO
behavior.
.TP
.B F_GETPIPE_SZ
.BR F_GETPIPE_SZ ", " F_SETPIPE_SZ
The pipe capacity.
.TP
All other commands