From cc7965fc114b2b61b2a7bf7c7e841005396934f8 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sat, 19 Jun 2010 04:13:28 +0200 Subject: [PATCH] fcntl.2: Improve F_SETPIPE_SZ text Signed-off-by: Michael Kerrisk --- man2/fcntl.2 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/man2/fcntl.2 b/man2/fcntl.2 index 1ab33b77b..6343a2b66 100644 --- a/man2/fcntl.2 +++ b/man2/fcntl.2 @@ -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.