fcntl.2: Improve F_SETPIPE_SZ text

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2010-06-19 04:13:28 +02:00
parent cbd7b9bfbe
commit cc7965fc11
1 changed files with 8 additions and 2 deletions

View File

@ -58,7 +58,7 @@
.\" 2010-06-17, Michael Kerrisk
.\" Document F_SETPIPE_SZ and F_GETPIPE_SZ.
.\"
.TH FCNTL 2 2010-06-17 "Linux" "Linux Programmer's Manual"
.TH FCNTL 2 2010-06-19 "Linux" "Linux Programmer's Manual"
.SH NAME
fcntl \- manipulate file descriptor
.SH SYNOPSIS
@ -1012,7 +1012,13 @@ An unprivileged process can adjust the pipe capacity to any value
between the system page size and the limit defined in
.IR /proc/sys/fs/pipe-size-max
(see
.BR proc (5));
.BR proc (5)).
Attempts to set the pipe capacity below the page size are silently
rounded up to the page size.
Attempts by an unprivielged process to set the pipe capacity above the limit in
.IR /proc/sys/fs/pipe-size-max
yield the error
.BR EPERM ;
a privileged process
.RB ( CAP_SYS_RESOURCE )
can override the limit.