Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Expose F_DUPFD_CLOEXEC to POSIX >= 200809



details:   https://anonhg.NetBSD.org/src/rev/18649e78b0e8
branches:  trunk
changeset: 746410:18649e78b0e8
user:      kamil <kamil%NetBSD.org@localhost>
date:      Mon Mar 30 20:17:42 2020 +0000

description:
Expose F_DUPFD_CLOEXEC to POSIX >= 200809

diffstat:

 sys/sys/fcntl.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r e804b3cb0f89 -r 18649e78b0e8 sys/sys/fcntl.h
--- a/sys/sys/fcntl.h   Mon Mar 30 19:15:28 2020 +0000
+++ b/sys/sys/fcntl.h   Mon Mar 30 20:17:42 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fcntl.h,v 1.53 2019/09/15 23:55:22 christos Exp $      */
+/*     $NetBSD: fcntl.h,v 1.54 2020/03/30 20:17:42 kamil Exp $ */
 
 /*-
  * Copyright (c) 1983, 1990, 1993
@@ -192,7 +192,11 @@
 #if defined(_NETBSD_SOURCE)
 #define        F_CLOSEM        10              /* close all fds >= to the one given */
 #define        F_MAXFD         11              /* return the max open fd */
+#endif
+#if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE)
 #define        F_DUPFD_CLOEXEC 12              /* close on exec duplicated fd */
+#endif
+#if defined(_NETBSD_SOURCE)
 #define        F_GETNOSIGPIPE  13              /* get SIGPIPE disposition */
 #define        F_SETNOSIGPIPE  14              /* set SIGPIPE disposition */
 #define        F_GETPATH       15              /* get pathname associated with fd */



Home | Main Index | Thread Index | Old Index