summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorJeroen Ruigrok van der Werven <asmodai@FreeBSD.org>2002-04-13 10:16:53 +0000
committerJeroen Ruigrok van der Werven <asmodai@FreeBSD.org>2002-04-13 10:16:53 +0000
commitbcbf4411d64b44407949dfd275a7927d94fa990a (patch)
tree61a539046bb25148bb08720dc78daf3c2f12d3c2 /lib/libc
parent302d0b1426ac328cf0546c8b9c5f18197e9cb380 (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/fcntl.216
1 files changed, 12 insertions, 4 deletions
diff --git a/lib/libc/sys/fcntl.2 b/lib/libc/sys/fcntl.2
index 41184b3f5ede..e6ddee9cb38c 100644
--- a/lib/libc/sys/fcntl.2
+++ b/lib/libc/sys/fcntl.2
@@ -82,8 +82,12 @@ system calls.
.El
.It Dv F_GETFD
Get the close-on-exec flag associated with the file descriptor
-.Fa fd .
-If the low-order bit of the returned value is 0,
+.Fa fd
+as
+.Dv FD_CLOEXEC .
+If the returned value ANDed with
+.Dv FD_CLOEXEC
+is 0,
the file will remain open across
.Fn exec ,
otherwise the file will be closed upon execution of
@@ -93,9 +97,13 @@ is ignored).
.It Dv F_SETFD
Set the close-on-exec flag associated with
.Fa fd
-to the low order bit of
+to
+.Fa arg ,
+where
.Fa arg
-(0 or 1 as above).
+is either 0 or
+.Dv FD_CLOEXEC ,
+as described above.
.It Dv F_GETFL
Get descriptor status flags, as described below
.Fa ( arg