pipe.2: Note treatment of 'pipefd' on error

Reported-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2012-03-30 11:41:57 +13:00
parent df383cdf95
commit 89cfe0cf65
1 changed files with 14 additions and 0 deletions

View File

@ -135,6 +135,20 @@ On success, zero is returned.
On error, \-1 is returned, and
.I errno
is set appropriately.
On Linux (and other systems),
.BR pipe ()
does not modify
.I pipefd
on failure.
A requirement standardizing this behavior was added in POSIX.1-2016.
.\" http://austingroupbugs.net/view.php?id=467
The Linux-specific
.BR pipe2 ()
system call
likewise does not modify
.I pipefd
on failure.
.SH ERRORS
.TP
.B EFAULT