diff options
author | glebius <glebius@FreeBSD.org> | 2006-01-30 08:25:04 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2006-01-30 08:25:04 +0000 |
commit | e8ec4c3a0a1ae86c8fba7f646df352de0c0277f1 (patch) | |
tree | 3ef2986a9440c15428505e029975cbbfcf82a2b2 /lib | |
parent | af5f24849498ebe529377266869ca013cdcd0393 (diff) | |
download | FreeBSD-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.2 | 4 |
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 |