summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2006-01-30 08:25:04 +0000
committerglebius <glebius@FreeBSD.org>2006-01-30 08:25:04 +0000
commite8ec4c3a0a1ae86c8fba7f646df352de0c0277f1 (patch)
tree3ef2986a9440c15428505e029975cbbfcf82a2b2 /lib
parentaf5f24849498ebe529377266869ca013cdcd0393 (diff)
downloadFreeBSD-src-e8ec4c3a0a1ae86c8fba7f646df352de0c0277f1.zip
FreeBSD-src-e8ec4c3a0a1ae86c8fba7f646df352de0c0277f1.tar.gz
- In pipe() return the error returned by pipe_create(), rather then
hardcoded ENFILES, which is incorrect. pipe_create() can fail due to ENOMEM. - Update manual page, describing ENOMEM return code. Reviewed by: arch
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/pipe.24
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/sys/pipe.2 b/lib/libc/sys/pipe.2
index 247b999..5f5ac3a 100644
--- a/lib/libc/sys/pipe.2
+++ b/lib/libc/sys/pipe.2
@@ -32,7 +32,7 @@
.\" @(#)pipe.2 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd June 4, 1993
+.Dd January 30, 2006
.Dt PIPE 2
.Os
.Sh NAME
@@ -98,6 +98,8 @@ system call will fail if:
Too many descriptors are active.
.It Bq Er ENFILE
The system file table is full.
+.It Bq Er ENOMEM
+Not enough kernel memory to establish a pipe.
.It Bq Er EFAULT
The
.Fa fildes
OpenPOWER on IntegriCloud