Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Aug 2012 16:25:33 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r239858 - stable/9/lib/libc/sys
Message-ID:  <201208291625.q7TGPXXO077387@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Wed Aug 29 16:25:33 2012
New Revision: 239858
URL: http://svn.freebsd.org/changeset/base/239858

Log:
  MFC r238615:
  Document F_DUPFD_CLOEXEC.

Modified:
  stable/9/lib/libc/sys/fcntl.2
Directory Properties:
  stable/9/lib/libc/   (props changed)

Modified: stable/9/lib/libc/sys/fcntl.2
==============================================================================
--- stable/9/lib/libc/sys/fcntl.2	Wed Aug 29 16:23:29 2012	(r239857)
+++ stable/9/lib/libc/sys/fcntl.2	Wed Aug 29 16:25:33 2012	(r239858)
@@ -28,7 +28,7 @@
 .\"     @(#)fcntl.2	8.2 (Berkeley) 1/12/94
 .\" $FreeBSD$
 .\"
-.Dd September 28, 2009
+.Dd July 18, 2012
 .Dt FCNTL 2
 .Os
 .Sh NAME
@@ -54,7 +54,7 @@ Depending on the value of
 .Fn fcntl
 can take an additional third argument
 .Fa "int arg" .
-.Bl -tag -width F_GETOWNX
+.Bl -tag -width F_DUPFD_CLOEXEC
 .It Dv F_DUPFD
 Return a new descriptor as follows:
 .Pp
@@ -73,11 +73,22 @@ Same access mode (read, write or read/wr
 Same file status flags (i.e., both file descriptors
 share the same file status flags).
 .It
-The close-on-exec flag associated with the new file descriptor
-is set to remain open across
+The close-on-exec flag
+.Dv FD_CLOEXEC
+associated with the new file descriptor is cleared, so the file descriptor is
+to remain open across
 .Xr execve 2
 system calls.
 .El
+.It Dv F_DUPFD_CLOEXEC
+Like
+.Dv F_DUPFD ,
+but the
+.Dv FD_CLOEXEC
+flag associated with the new file descriptor is set, so the file descriptor
+is closed when
+.Xr execve 2
+system call executes.
 .It Dv F_DUP2FD
 It is functionally equivalent to
 .Bd -literal -offset indent



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208291625.q7TGPXXO077387>