Module Name: src Committed By: kamil Date: Mon Mar 30 20:17:42 UTC 2020
Modified Files: src/sys/sys: fcntl.h Log Message: Expose F_DUPFD_CLOEXEC to POSIX >= 200809 To generate a diff of this commit: cvs rdiff -u -r1.53 -r1.54 src/sys/sys/fcntl.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/sys/fcntl.h diff -u src/sys/sys/fcntl.h:1.53 src/sys/sys/fcntl.h:1.54 --- src/sys/sys/fcntl.h:1.53 Sun Sep 15 23:55:22 2019 +++ src/sys/sys/fcntl.h Mon Mar 30 20:17:42 2020 @@ -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 */