diff options
author | mpp <mpp@FreeBSD.org> | 1997-01-12 00:38:36 +0000 |
---|---|---|
committer | mpp <mpp@FreeBSD.org> | 1997-01-12 00:38:36 +0000 |
commit | 54b96968b6dec7e1b3cbfa045f28dd9c4e0ecc45 (patch) | |
tree | 90aaba8b57f96154b6594ad2a7c5a9b92e206d48 /lib/libc/sys/open.2 | |
parent | 222e4ec9673e5231e2af9b2b72919d890d8829ed (diff) | |
download | FreeBSD-src-54b96968b6dec7e1b3cbfa045f28dd9c4e0ecc45.zip FreeBSD-src-54b96968b6dec7e1b3cbfa045f28dd9c4e0ecc45.tar.gz |
Add missing RETURN VALUES/ERRORS sections.
Diffstat (limited to 'lib/libc/sys/open.2')
-rw-r--r-- | lib/libc/sys/open.2 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2 index ac5335a..7dcaeaf 100644 --- a/lib/libc/sys/open.2 +++ b/lib/libc/sys/open.2 @@ -166,6 +166,13 @@ and calls Before returning, .Fn open enables thread rescheduling. +.Sh RETURN VALUES +If successful, +.Fn open +returns a non-negative integer, termed a file descriptor. +It returns -1 on failure, and sets +.Va errno +to indicate the error. .Sh ERRORS The named file is opened unless: .Bl -tag -width Er |