summaryrefslogtreecommitdiffstats
path: root/sys/sys/fcntl.h
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2012-07-27 10:41:10 +0000
committerkib <kib@FreeBSD.org>2012-07-27 10:41:10 +0000
commit5a2e16924f3798ee7f3bf930c0d43f38f18a69dd (patch)
tree7d4c1d9ef6c0d67f2f64a6f4f950e9d2f2ce0703 /sys/sys/fcntl.h
parentc4ee11cf19707c4e62ab93629122ba42207a91df (diff)
downloadFreeBSD-src-5a2e16924f3798ee7f3bf930c0d43f38f18a69dd.zip
FreeBSD-src-5a2e16924f3798ee7f3bf930c0d43f38f18a69dd.tar.gz
Add F_DUP2FD_CLOEXEC. Apparently Solaris 11 already did this.
Submitted by: Jukka A. Ukkonen <jau iki fi> PR: standards/169962 MFC after: 1 week
Diffstat (limited to 'sys/sys/fcntl.h')
-rw-r--r--sys/sys/fcntl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/fcntl.h b/sys/sys/fcntl.h
index f192d6c..8ecb3c9 100644
--- a/sys/sys/fcntl.h
+++ b/sys/sys/fcntl.h
@@ -232,6 +232,9 @@ typedef __pid_t pid_t;
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200809
#define F_DUPFD_CLOEXEC 17 /* Like F_DUPFD, but FD_CLOEXEC is set */
#endif
+#if __BSD_VISIBLE
+#define F_DUP2FD_CLOEXEC 18 /* Like F_DUP2FD, but FD_CLOEXEC is set */
+#endif
/* file descriptor flags (F_GETFD, F_SETFD) */
#define FD_CLOEXEC 1 /* close-on-exec flag */
OpenPOWER on IntegriCloud