summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorjmc <jmc@openbsd.org>2013-01-19 07:57:21 +0000
committerjmc <jmc@openbsd.org>2013-01-19 07:57:21 +0000
commitf54c15cde76115fbaf8b94d3c9d2c4d0ed6bc05f (patch)
treef5b7bcf1874e5b8ece1c9a837c21d6413ef16752 /lib/libc/sys
parentbetter description of O_CLOEXEC; from russell (diff)
downloadwireguard-openbsd-f54c15cde76115fbaf8b94d3c9d2c4d0ed6bc05f.tar.xz
wireguard-openbsd-f54c15cde76115fbaf8b94d3c9d2c4d0ed6bc05f.zip
partially re-instate previous; requested by deraadt
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/open.27
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2
index ef78b5dc1cd..f8f32a8ee80 100644
--- a/lib/libc/sys/open.2
+++ b/lib/libc/sys/open.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: open.2,v 1.41 2013/01/19 07:18:15 jmc Exp $
+.\" $OpenBSD: open.2,v 1.42 2013/01/19 07:57:21 jmc Exp $
.\" $NetBSD: open.2,v 1.8 1995/02/27 12:35:14 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -100,7 +100,10 @@ Atomically obtain an exclusive lock.
.It Dv O_NOFOLLOW
If last path element is a symlink, don't follow it.
.It Dv O_CLOEXEC
-Set new file descriptor to close on exec.
+Set
+.Dv FD_CLOEXEC
+(the close-on-exec flag)
+on the new file descriptor.
.It Dv O_DIRECTORY
Error if
.Fa path