summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/open.2
diff options
context:
space:
mode:
authormpp <mpp@FreeBSD.org>1997-01-12 00:38:36 +0000
committermpp <mpp@FreeBSD.org>1997-01-12 00:38:36 +0000
commit54b96968b6dec7e1b3cbfa045f28dd9c4e0ecc45 (patch)
tree90aaba8b57f96154b6594ad2a7c5a9b92e206d48 /lib/libc/sys/open.2
parent222e4ec9673e5231e2af9b2b72919d890d8829ed (diff)
downloadFreeBSD-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.27
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
OpenPOWER on IntegriCloud