Revisión | 9efce41dd3bb5d721a5b771931126f32a85e1958 (tree) |
---|---|
Tiempo | 2021-02-19 08:15:01 |
Autor | Paul Cercueil <paul@crap...> |
Commiter | Waldemar Brodkorb |
fcntl.h: Make F_DUPFD_CLOEXEC if _USE_XOPEN2K8
The F_DUPFD_CLOEXEC flag was added in POSIX 2008.09.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
@@ -105,9 +105,9 @@ | ||
105 | 105 | # define F_SETPIPE_SZ 1031 /* Set pipe page size array. */ |
106 | 106 | # define F_GETPIPE_SZ 1032 /* Set pipe page size array. */ |
107 | 107 | #endif |
108 | -#ifdef __USE_XOPEN2K8 | |
108 | +#if defined __USE_XOPEN2K8 || defined __USE_GNU | |
109 | 109 | # define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with |
110 | - close-on-exit set. */ | |
110 | + close-on-exit set on new fd. */ | |
111 | 111 | #endif |
112 | 112 | |
113 | 113 | /* For F_[GET|SET]FD. */ |
@@ -96,11 +96,13 @@ | ||
96 | 96 | # define F_SETLEASE 1024 /* Set a lease. */ |
97 | 97 | # define F_GETLEASE 1025 /* Enquire what lease is active. */ |
98 | 98 | # define F_NOTIFY 1026 /* Request notfications on a directory. */ |
99 | -# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
100 | - close-on-exit set on new fd. */ | |
101 | 99 | # define F_SETPIPE_SZ 1031 /* Set pipe page size array. */ |
102 | 100 | # define F_GETPIPE_SZ 1032 /* Get pipe page size array. */ |
103 | 101 | #endif |
102 | +#if defined __USE_XOPEN2K8 || defined __USE_GNU | |
103 | +# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
104 | + close-on-exit set on new fd. */ | |
105 | +#endif | |
104 | 106 | |
105 | 107 | /* for F_[GET|SET]FD */ |
106 | 108 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ |
@@ -89,11 +89,13 @@ | ||
89 | 89 | # define F_SETLEASE 1024 /* Set a lease. */ |
90 | 90 | # define F_GETLEASE 1025 /* Enquire what lease is active. */ |
91 | 91 | # define F_NOTIFY 1026 /* Request notfications on a directory. */ |
92 | -# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
93 | - close-on-exit set on new fd. */ | |
94 | 92 | # define F_SETPIPE_SZ 1031 /* Set pipe page size array. */ |
95 | 93 | # define F_GETPIPE_SZ 1032 /* Get pipe page size array. */ |
96 | 94 | #endif |
95 | +#if defined __USE_XOPEN2K8 || defined __USE_GNU | |
96 | +# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
97 | + close-on-exit set on new fd. */ | |
98 | +#endif | |
97 | 99 | |
98 | 100 | /* For F_[GET|SET]FL. */ |
99 | 101 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ |
@@ -101,11 +101,13 @@ | ||
101 | 101 | # define F_SETLEASE 1024 /* Set a lease. */ |
102 | 102 | # define F_GETLEASE 1025 /* Enquire what lease is active. */ |
103 | 103 | # define F_NOTIFY 1026 /* Request notfications on a directory. */ |
104 | -# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
105 | - close-on-exit set on new fd. */ | |
106 | 104 | # define F_SETPIPE_SZ 1031 /* Set pipe page size array. */ |
107 | 105 | # define F_GETPIPE_SZ 1032 /* Get pipe page size array. */ |
108 | 106 | #endif |
107 | +#if defined __USE_XOPEN2K8 || defined __USE_GNU | |
108 | +# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
109 | + close-on-exit set on new fd. */ | |
110 | +#endif | |
109 | 111 | |
110 | 112 | /* For F_[GET|SET]FD. */ |
111 | 113 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ |
@@ -100,11 +100,13 @@ | ||
100 | 100 | # define F_SETLEASE 1024 /* Set a lease. */ |
101 | 101 | # define F_GETLEASE 1025 /* Enquire what lease is active. */ |
102 | 102 | # define F_NOTIFY 1026 /* Request notfications on a directory. */ |
103 | -# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
104 | - close-on-exit set on new fd. */ | |
105 | 103 | # define F_SETPIPE_SZ 1031 /* Set pipe page size array. */ |
106 | 104 | # define F_GETPIPE_SZ 1032 /* Get pipe page size array. */ |
107 | 105 | #endif |
106 | +#if defined __USE_XOPEN2K8 || defined __USE_GNU | |
107 | +# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
108 | + close-on-exit set on new fd. */ | |
109 | +#endif | |
108 | 110 | |
109 | 111 | /* For F_[GET|SET]FL. */ |
110 | 112 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ |
@@ -101,11 +101,13 @@ | ||
101 | 101 | # define F_SETLEASE 1024 /* Set a lease. */ |
102 | 102 | # define F_GETLEASE 1025 /* Enquire what lease is active. */ |
103 | 103 | # define F_NOTIFY 1026 /* Request notfications on a directory. */ |
104 | -# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
105 | - close-on-exit set on new fd. */ | |
106 | 104 | # define F_SETPIPE_SZ 1031 /* Set pipe page size array. */ |
107 | 105 | # define F_GETPIPE_SZ 1032 /* Get pipe page size array. */ |
108 | 106 | #endif |
107 | +#if defined __USE_XOPEN2K8 || defined __USE_GNU | |
108 | +# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
109 | + close-on-exit set on new fd. */ | |
110 | +#endif | |
109 | 111 | |
110 | 112 | /* For F_[GET|SET]FL. */ |
111 | 113 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ |
@@ -89,11 +89,13 @@ | ||
89 | 89 | # define F_SETLEASE 1024 /* Set a lease. */ |
90 | 90 | # define F_GETLEASE 1025 /* Enquire what lease is active. */ |
91 | 91 | # define F_NOTIFY 1026 /* Request notfications on a directory. */ |
92 | -# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
93 | - close-on-exit set on new fd. */ | |
94 | 92 | # define F_SETPIPE_SZ 1031 /* Set pipe page size array. */ |
95 | 93 | # define F_GETPIPE_SZ 1032 /* Get pipe page size array. */ |
96 | 94 | #endif |
95 | +#if defined __USE_XOPEN2K8 || defined __USE_GNU | |
96 | +# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
97 | + close-on-exit set on new fd. */ | |
98 | +#endif | |
97 | 99 | |
98 | 100 | /* For F_[GET|SET]FD. */ |
99 | 101 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ |
@@ -100,11 +100,13 @@ | ||
100 | 100 | # define F_SETLEASE 1024 /* Set a lease. */ |
101 | 101 | # define F_GETLEASE 1025 /* Enquire what lease is active. */ |
102 | 102 | # define F_NOTIFY 1026 /* Request notfications on a directory. */ |
103 | -# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
104 | - close-on-exit set on new fd. */ | |
105 | 103 | # define F_SETPIPE_SZ 1031 /* Set pipe page size array. */ |
106 | 104 | # define F_GETPIPE_SZ 1032 /* Get pipe page size array. */ |
107 | 105 | #endif |
106 | +#if defined __USE_XOPEN2K8 || defined __USE_GNU | |
107 | +# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
108 | + close-on-exit set on new fd. */ | |
109 | +#endif | |
108 | 110 | |
109 | 111 | /* For F_[GET|SET]FL. */ |
110 | 112 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ |
@@ -100,11 +100,13 @@ | ||
100 | 100 | # define F_SETLEASE 1024 /* Set a lease. */ |
101 | 101 | # define F_GETLEASE 1025 /* Enquire what lease is active. */ |
102 | 102 | # define F_NOTIFY 1026 /* Request notfications on a directory. */ |
103 | -# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
104 | - close-on-exit set on new fd. */ | |
105 | 103 | # define F_SETPIPE_SZ 1031 /* Set pipe page size array. */ |
106 | 104 | # define F_GETPIPE_SZ 1032 /* Get pipe page size array. */ |
107 | 105 | #endif |
106 | +#if defined __USE_XOPEN2K8 || defined __USE_GNU | |
107 | +# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
108 | + close-on-exit set on new fd. */ | |
109 | +#endif | |
108 | 110 | |
109 | 111 | /* For F_[GET|SET]FL. */ |
110 | 112 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ |
@@ -97,11 +97,13 @@ | ||
97 | 97 | # define F_SETLEASE 1024 /* Set a lease. */ |
98 | 98 | # define F_GETLEASE 1025 /* Enquire what lease is active. */ |
99 | 99 | # define F_NOTIFY 1026 /* Request notfications on a directory. */ |
100 | -# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
101 | - close-on-exit set on new fd. */ | |
102 | 100 | # define F_SETPIPE_SZ 1031 /* Set pipe page size array. */ |
103 | 101 | # define F_GETPIPE_SZ 1032 /* Get pipe page size array. */ |
104 | 102 | #endif |
103 | +#if defined __USE_XOPEN2K8 || defined __USE_GNU | |
104 | +# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
105 | + close-on-exit set on new fd. */ | |
106 | +#endif | |
105 | 107 | |
106 | 108 | /* for F_[GET|SET]FL */ |
107 | 109 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ |
@@ -101,11 +101,13 @@ | ||
101 | 101 | # define F_SETLEASE 1024 /* Set a lease. */ |
102 | 102 | # define F_GETLEASE 1025 /* Enquire what lease is active. */ |
103 | 103 | # define F_NOTIFY 1026 /* Request notfications on a directory. */ |
104 | -# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
105 | - close-on-exit set on new fd. */ | |
106 | 104 | # define F_SETPIPE_SZ 1031 /* Set pipe page size array. */ |
107 | 105 | # define F_GETPIPE_SZ 1032 /* Get pipe page size array. */ |
108 | 106 | #endif |
107 | +#if defined __USE_XOPEN2K8 || defined __USE_GNU | |
108 | +# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
109 | + close-on-exit set on new fd. */ | |
110 | +#endif | |
109 | 111 | |
110 | 112 | /* For F_[GET|SET]FD. */ |
111 | 113 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ |
@@ -97,11 +97,13 @@ | ||
97 | 97 | # define F_SETLEASE 1024 /* Set a lease. */ |
98 | 98 | # define F_GETLEASE 1025 /* Enquire what lease is active. */ |
99 | 99 | # define F_NOTIFY 1026 /* Request notfications on a directory. */ |
100 | -# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
101 | - close-on-exit set on new fd. */ | |
102 | 100 | # define F_SETPIPE_SZ 1031 /* Set pipe page size array. */ |
103 | 101 | # define F_GETPIPE_SZ 1032 /* Get pipe page size array. */ |
104 | 102 | #endif |
103 | +#if defined __USE_XOPEN2K8 || defined __USE_GNU | |
104 | +# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
105 | + close-on-exit set on new fd. */ | |
106 | +#endif | |
105 | 107 | |
106 | 108 | /* For F_[GET|SET]FD. */ |
107 | 109 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ |
@@ -86,11 +86,13 @@ | ||
86 | 86 | # define F_SETLEASE 1024 /* Set a lease. */ |
87 | 87 | # define F_GETLEASE 1025 /* Enquire what lease is active. */ |
88 | 88 | # define F_NOTIFY 1026 /* Request notfications on a directory. */ |
89 | -# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
90 | - close-on-exit set on new fd. */ | |
91 | 89 | # define F_SETPIPE_SZ 1031 /* Set pipe page size array. */ |
92 | 90 | # define F_GETPIPE_SZ 1032 /* Get pipe page size array. */ |
93 | 91 | #endif |
92 | +#if defined __USE_XOPEN2K8 || defined __USE_GNU | |
93 | +# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
94 | + close-on-exit set on new fd. */ | |
95 | +#endif | |
94 | 96 | |
95 | 97 | /* For F_[GET|SET]FL. */ |
96 | 98 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ |
@@ -100,11 +100,13 @@ | ||
100 | 100 | # define F_SETLEASE 1024 /* Set a lease. */ |
101 | 101 | # define F_GETLEASE 1025 /* Enquire what lease is active. */ |
102 | 102 | # define F_NOTIFY 1026 /* Request notfications on a directory. */ |
103 | -# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
104 | - close-on-exit set on new fd. */ | |
105 | 103 | # define F_SETPIPE_SZ 1031 /* Set of pipe page size array */ |
106 | 104 | # define F_GETPIPE_SZ 1032 /* Get of pipe page size array */ |
107 | 105 | #endif |
106 | +#if defined __USE_XOPEN2K8 || defined __USE_GNU | |
107 | +# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
108 | + close-on-exit set on new fd. */ | |
109 | +#endif | |
108 | 110 | |
109 | 111 | /* For F_[GET|SET]FL. */ |
110 | 112 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ |
@@ -100,11 +100,13 @@ | ||
100 | 100 | # define F_SETLEASE 1024 /* Set a lease. */ |
101 | 101 | # define F_GETLEASE 1025 /* Enquire what lease is active. */ |
102 | 102 | # define F_NOTIFY 1026 /* Request notfications on a directory. */ |
103 | -# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
104 | - close-on-exit set on new fd. */ | |
105 | 103 | # define F_SETPIPE_SZ 1031 /* Set pipe page size array. */ |
106 | 104 | # define F_GETPIPE_SZ 1032 /* Get pipe page size array. */ |
107 | 105 | #endif |
106 | +#if defined __USE_XOPEN2K8 || defined __USE_GNU | |
107 | +# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
108 | + close-on-exit set on new fd. */ | |
109 | +#endif | |
108 | 110 | |
109 | 111 | /* For F_[GET|SET]FL. */ |
110 | 112 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ |
@@ -101,11 +101,13 @@ | ||
101 | 101 | # define F_SETLEASE 1024 /* Set a lease. */ |
102 | 102 | # define F_GETLEASE 1025 /* Enquire what lease is active. */ |
103 | 103 | # define F_NOTIFY 1026 /* Request notfications on a directory. */ |
104 | -# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
105 | - close-on-exit set on new fd. */ | |
106 | 104 | # define F_SETPIPE_SZ 1031 /* Set pipe page size array. */ |
107 | 105 | # define F_GETPIPE_SZ 1032 /* Get pipe page size array. */ |
108 | 106 | #endif |
107 | +#if defined __USE_XOPEN2K8 || defined __USE_GNU | |
108 | +# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
109 | + close-on-exit set on new fd. */ | |
110 | +#endif | |
109 | 111 | |
110 | 112 | /* For F_[GET|SET]FD. */ |
111 | 113 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ |
@@ -100,11 +100,13 @@ | ||
100 | 100 | # define F_SETLEASE 1024 /* Set a lease. */ |
101 | 101 | # define F_GETLEASE 1025 /* Enquire what lease is active. */ |
102 | 102 | # define F_NOTIFY 1026 /* Request notfications on a directory. */ |
103 | -# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
104 | - close-on-exit set on new fd. */ | |
105 | 103 | # define F_SETPIPE_SZ 1031 /* Set pipe page size array. */ |
106 | 104 | # define F_GETPIPE_SZ 1032 /* Get pipe page size array. */ |
107 | 105 | #endif |
106 | +#if defined __USE_XOPEN2K8 || defined __USE_GNU | |
107 | +# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
108 | + close-on-exit set on new fd. */ | |
109 | +#endif | |
108 | 110 | |
109 | 111 | /* For F_[GET|SET]FL. */ |
110 | 112 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ |
@@ -113,11 +113,13 @@ | ||
113 | 113 | # define F_SETLEASE 1024 /* Set a lease. */ |
114 | 114 | # define F_GETLEASE 1025 /* Enquire what lease is active. */ |
115 | 115 | # define F_NOTIFY 1026 /* Request notfications on a directory. */ |
116 | -# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
117 | - close-on-exit set on new fd. */ | |
118 | 116 | # define F_SETPIPE_SZ 1031 /* Set pipe page size array. */ |
119 | 117 | # define F_GETPIPE_SZ 1032 /* Get pipe page size array. */ |
120 | 118 | #endif |
119 | +#if defined __USE_XOPEN2K8 || defined __USE_GNU | |
120 | +# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
121 | + close-on-exit set on new fd. */ | |
122 | +#endif | |
121 | 123 | |
122 | 124 | /* For F_[GET|SET]FL. */ |
123 | 125 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ |
@@ -105,11 +105,13 @@ | ||
105 | 105 | # define F_SETLEASE 1024 /* Set a lease. */ |
106 | 106 | # define F_GETLEASE 1025 /* Enquire what lease is active. */ |
107 | 107 | # define F_NOTIFY 1026 /* Request notfications on a directory. */ |
108 | -# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
109 | - close-on-exit set on new fd. */ | |
110 | 108 | # define F_SETPIPE_SZ 1031 /* Set pipe page size array. */ |
111 | 109 | # define F_GETPIPE_SZ 1032 /* Get pipe page size array. */ |
112 | 110 | #endif |
111 | +#if defined __USE_XOPEN2K8 || defined __USE_GNU | |
112 | +# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
113 | + close-on-exit set on new fd. */ | |
114 | +#endif | |
113 | 115 | |
114 | 116 | /* For F_[GET|SET]FD. */ |
115 | 117 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ |
@@ -100,11 +100,13 @@ | ||
100 | 100 | # define F_SETLEASE 1024 /* Set a lease. */ |
101 | 101 | # define F_GETLEASE 1025 /* Enquire what lease is active. */ |
102 | 102 | # define F_NOTIFY 1026 /* Request notfications on a directory. */ |
103 | -# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
104 | - close-on-exit set on new fd. */ | |
105 | 103 | # define F_SETPIPE_SZ 1031 /* Set pipe page size array. */ |
106 | 104 | # define F_GETPIPE_SZ 1032 /* Get pipe page size array. */ |
107 | 105 | #endif |
106 | +#if defined __USE_XOPEN2K8 || defined __USE_GNU | |
107 | +# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
108 | + close-on-exit set on new fd. */ | |
109 | +#endif | |
108 | 110 | |
109 | 111 | /* For F_[GET|SET]FL. */ |
110 | 112 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ |
@@ -102,11 +102,13 @@ | ||
102 | 102 | # define F_SETLEASE 1024 /* Set a lease. */ |
103 | 103 | # define F_GETLEASE 1025 /* Enquire what lease is active. */ |
104 | 104 | # define F_NOTIFY 1026 /* Request notfications on a directory. */ |
105 | -# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
106 | - close-on-exit set on new fd. */ | |
107 | 105 | # define F_SETPIPE_SZ 1031 /* Set pipe page size array. */ |
108 | 106 | # define F_GETPIPE_SZ 1032 /* Get pipe page size array. */ |
109 | 107 | #endif |
108 | +#if defined __USE_XOPEN2K8 || defined __USE_GNU | |
109 | +# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
110 | + close-on-exit set on new fd. */ | |
111 | +#endif | |
110 | 112 | |
111 | 113 | /* For F_[GET|SET]FL. */ |
112 | 114 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ |
@@ -101,11 +101,13 @@ | ||
101 | 101 | # define F_SETLEASE 1024 /* Set a lease. */ |
102 | 102 | # define F_GETLEASE 1025 /* Enquire what lease is active. */ |
103 | 103 | # define F_NOTIFY 1026 /* Request notfications on a directory. */ |
104 | -# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
105 | - close-on-exit set on new fd. */ | |
106 | 104 | # define F_SETPIPE_SZ 1031 /* Set pipe page size array. */ |
107 | 105 | # define F_GETPIPE_SZ 1032 /* Get pipe page size array. */ |
108 | 106 | #endif |
107 | +#if defined __USE_XOPEN2K8 || defined __USE_GNU | |
108 | +# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
109 | + close-on-exit set on new fd. */ | |
110 | +#endif | |
109 | 111 | |
110 | 112 | /* For F_[GET|SET]FD. */ |
111 | 113 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ |
@@ -88,11 +88,13 @@ | ||
88 | 88 | # define F_SETLEASE 1024 /* Set a lease. */ |
89 | 89 | # define F_GETLEASE 1025 /* Enquire what lease is active. */ |
90 | 90 | # define F_NOTIFY 1026 /* Request notfications on a directory. */ |
91 | -# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
92 | - close-on-exit set on new fd. */ | |
93 | 91 | # define F_SETPIPE_SZ 1031 /* Set pipe page size array. */ |
94 | 92 | # define F_GETPIPE_SZ 1032 /* Get pipe page size array. */ |
95 | 93 | #endif |
94 | +#if defined __USE_XOPEN2K8 || defined __USE_GNU | |
95 | +# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
96 | + close-on-exit set on new fd. */ | |
97 | +#endif | |
96 | 98 | |
97 | 99 | /* For F_[GET|SET]FL. */ |
98 | 100 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ |
@@ -101,11 +101,13 @@ | ||
101 | 101 | # define F_SETLEASE 1024 /* Set a lease. */ |
102 | 102 | # define F_GETLEASE 1025 /* Enquire what lease is active. */ |
103 | 103 | # define F_NOTIFY 1026 /* Request notfications on a directory. */ |
104 | -# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
105 | - close-on-exit set on new fd. */ | |
106 | 104 | # define F_SETPIPE_SZ 1031 /* Set pipe page size array. */ |
107 | 105 | # define F_GETPIPE_SZ 1032 /* Get pipe page size array. */ |
108 | 106 | #endif |
107 | +#if defined __USE_XOPEN2K8 || defined __USE_GNU | |
108 | +# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
109 | + close-on-exit set on new fd. */ | |
110 | +#endif | |
109 | 111 | |
110 | 112 | /* For F_[GET|SET]FD. */ |
111 | 113 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ |
@@ -102,11 +102,13 @@ | ||
102 | 102 | # define F_SETLEASE 1024 /* Set a lease. */ |
103 | 103 | # define F_GETLEASE 1025 /* Enquire what lease is active. */ |
104 | 104 | # define F_NOTIFY 1026 /* Request notfications on a directory. */ |
105 | -# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
106 | - close-on-exit set on new fd. */ | |
107 | 105 | # define F_SETPIPE_SZ 1031 /* Set pipe page size array. */ |
108 | 106 | # define F_GETPIPE_SZ 1032 /* Get pipe page size array. */ |
109 | 107 | #endif |
108 | +#if defined __USE_XOPEN2K8 || defined __USE_GNU | |
109 | +# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
110 | + close-on-exit set on new fd. */ | |
111 | +#endif | |
110 | 112 | |
111 | 113 | #define F_GETLK64 12 /* Get record locking info. */ |
112 | 114 | #define F_SETLK64 13 /* Set record locking info (non-blocking). */ |
@@ -98,11 +98,13 @@ | ||
98 | 98 | # define F_SETLEASE 1024 /* Set a lease. */ |
99 | 99 | # define F_GETLEASE 1025 /* Enquire what lease is active. */ |
100 | 100 | # define F_NOTIFY 1026 /* Request notfications on a directory. */ |
101 | -# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
102 | - close-on-exit set on new fd. */ | |
103 | 101 | # define F_SETPIPE_SZ 1031 /* Set pipe page size array. */ |
104 | 102 | # define F_GETPIPE_SZ 1032 /* Get pipe page size array. */ |
105 | 103 | #endif |
104 | +#if defined __USE_XOPEN2K8 || defined __USE_GNU | |
105 | +# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
106 | + close-on-exit set on new fd. */ | |
107 | +#endif | |
106 | 108 | |
107 | 109 | #define F_GETLK64 7 /* Get record locking info. */ |
108 | 110 | #define F_SETLK64 8 /* Set record locking info (non-blocking). */ |
@@ -88,11 +88,13 @@ | ||
88 | 88 | # define F_SETLEASE 1024 /* Set a lease. */ |
89 | 89 | # define F_GETLEASE 1025 /* Enquire what lease is active. */ |
90 | 90 | # define F_NOTIFY 1026 /* Request notfications on a directory. */ |
91 | -# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
92 | - close-on-exit set on new fd. */ | |
93 | 91 | # define F_SETPIPE_SZ 1031 /* Set pipe page size array. */ |
94 | 92 | # define F_GETPIPE_SZ 1032 /* Get pipe page size array. */ |
95 | 93 | #endif |
94 | +#if defined __USE_XOPEN2K8 || defined __USE_GNU | |
95 | +# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
96 | + close-on-exit set on new fd. */ | |
97 | +#endif | |
96 | 98 | |
97 | 99 | /* For F_[GET|SET]FL. */ |
98 | 100 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ |
@@ -115,11 +115,13 @@ | ||
115 | 115 | # define F_SETLEASE 1024 /* Set a lease. */ |
116 | 116 | # define F_GETLEASE 1025 /* Enquire what lease is active. */ |
117 | 117 | # define F_NOTIFY 1026 /* Request notfications on a directory. */ |
118 | -# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
119 | - close-on-exit set on new fd. */ | |
120 | 118 | # define F_SETPIPE_SZ 1031 /* Set pipe page size array. */ |
121 | 119 | # define F_GETPIPE_SZ 1032 /* Get pipe page size array. */ |
122 | 120 | #endif |
121 | +#if defined __USE_XOPEN2K8 || defined __USE_GNU | |
122 | +# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
123 | + close-on-exit set on new fd. */ | |
124 | +#endif | |
123 | 125 | |
124 | 126 | /* For F_[GET|SET]FD. */ |
125 | 127 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ |
@@ -101,11 +101,13 @@ | ||
101 | 101 | # define F_SETLEASE 1024 /* Set a lease. */ |
102 | 102 | # define F_GETLEASE 1025 /* Enquire what lease is active. */ |
103 | 103 | # define F_NOTIFY 1026 /* Request notfications on a directory. */ |
104 | -# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
105 | - close-on-exit set on new fd. */ | |
106 | 104 | # define F_SETPIPE_SZ 1031 /* Set pipe page size array. */ |
107 | 105 | # define F_GETPIPE_SZ 1032 /* Get pipe page size array. */ |
108 | 106 | #endif |
107 | +#if defined __USE_XOPEN2K8 || defined __USE_GNU | |
108 | +# define F_DUPFD_CLOEXEC 1030 /* Duplicate file descriptor with | |
109 | + close-on-exit set on new fd. */ | |
110 | +#endif | |
109 | 111 | |
110 | 112 | /* For F_[GET|SET]FD. */ |
111 | 113 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ |