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 O_CLOEXEC.
details: https://anonhg.NetBSD.org/src/rev/9a23cf4c48f7
branches: trunk
changeset: 764018:9a23cf4c48f7
user: christos <christos%NetBSD.org@localhost>
date: Sun Apr 10 15:46:15 2011 +0000
description:
Document O_CLOEXEC.
diffstat:
lib/libc/sys/open.2 | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diffs (49 lines):
diff -r dee11110528d -r 9a23cf4c48f7 lib/libc/sys/open.2
--- a/lib/libc/sys/open.2 Sun Apr 10 15:45:33 2011 +0000
+++ b/lib/libc/sys/open.2 Sun Apr 10 15:46:15 2011 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: open.2,v 1.47 2010/09/22 17:58:09 wiz Exp $
+.\" $NetBSD: open.2,v 1.48 2011/04/10 15:46:15 christos Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)open.2 8.2 (Berkeley) 11/16/93
.\"
-.Dd September 22, 2010
+.Dd April 10, 2011
.Dt OPEN 2
.Os
.Sh NAME
@@ -56,7 +56,7 @@
the values listed below.
Applications must specify exactly one of the first three values
(file access methods):
-.Bl -tag -offset indent -width O_NONBLOCK
+.Bl -tag -offset indent -width O_DIRECTORY
.It Dv O_RDONLY
Open for reading only.
.It Dv O_WRONLY
@@ -66,7 +66,7 @@
.El
.Pp
Any combination of the following may be used:
-.Bl -tag -offset indent -width O_NONBLOCK
+.Bl -tag -offset indent -width O_DIRECTORY
.It Dv O_NONBLOCK
Do not block on open or for data to become available.
.It Dv O_APPEND
@@ -93,6 +93,12 @@
If last path element is a symlink, don't follow it.
This option is provided for compatibility with other operating
systems, but its security value is questionable.
+.It Dv O_CLOEXEC
+Set the
+.Xr close 2
+on
+.Xr exec 2
+flag.
.It Dv O_DSYNC
If set, write operations will be performed according to synchronized
I/O data integrity completion:
Home |
Main Index |
Thread Index |
Old Index