Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/sys document FD_CLOEXEC from FreeBSD.
details: https://anonhg.NetBSD.org/src/rev/9015f413cc60
branches: trunk
changeset: 536514:9015f413cc60
user: christos <christos%NetBSD.org@localhost>
date: Tue Sep 17 21:35:37 2002 +0000
description:
document FD_CLOEXEC from FreeBSD.
diffstat:
lib/libc/sys/fcntl.2 | 18 +++++++++++++-----
1 files changed, 13 insertions(+), 5 deletions(-)
diffs (40 lines):
diff -r 53c89281c084 -r 9015f413cc60 lib/libc/sys/fcntl.2
--- a/lib/libc/sys/fcntl.2 Tue Sep 17 20:34:08 2002 +0000
+++ b/lib/libc/sys/fcntl.2 Tue Sep 17 21:35:37 2002 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: fcntl.2,v 1.22 2002/02/08 01:28:17 ross Exp $
+.\" $NetBSD: fcntl.2,v 1.23 2002/09/17 21:35:37 christos Exp $
.\"
.\" Copyright (c) 1983, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -86,8 +86,12 @@
.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
@@ -97,9 +101,13 @@
.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
Home |
Main Index |
Thread Index |
Old Index