File tree Expand file tree Collapse file tree 6 files changed +9
-2
lines changed Expand file tree Collapse file tree 6 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,7 @@ pub const O_CREAT: ::c_int = 512;
161
161
pub const O_EXCL : :: c_int = 2048 ;
162
162
pub const O_NOCTTY : :: c_int = 131072 ;
163
163
pub const O_TRUNC : :: c_int = 1024 ;
164
+ pub const O_CLOEXEC : :: c_int = 0x1000000 ;
164
165
pub const S_IFIFO : mode_t = 4096 ;
165
166
pub const S_IFCHR : mode_t = 8192 ;
166
167
pub const S_IFBLK : mode_t = 24576 ;
@@ -195,6 +196,7 @@ pub const F_LOCK: ::c_int = 1;
195
196
pub const F_TEST : :: c_int = 3 ;
196
197
pub const F_TLOCK : :: c_int = 2 ;
197
198
pub const F_ULOCK : :: c_int = 0 ;
199
+ pub const F_DUPFD_CLOEXEC : :: c_int = 67 ;
198
200
pub const SIGHUP : :: c_int = 1 ;
199
201
pub const SIGINT : :: c_int = 2 ;
200
202
pub const SIGQUIT : :: c_int = 3 ;
Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ pub const O_CREAT: ::c_int = 512;
111
111
pub const O_EXCL : :: c_int = 2048 ;
112
112
pub const O_NOCTTY : :: c_int = 32768 ;
113
113
pub const O_TRUNC : :: c_int = 1024 ;
114
+ pub const O_CLOEXEC : :: c_int = 0x00100000 ;
114
115
pub const S_IFIFO : mode_t = 4096 ;
115
116
pub const S_IFCHR : mode_t = 8192 ;
116
117
pub const S_IFBLK : mode_t = 24576 ;
@@ -145,6 +146,7 @@ pub const F_LOCK: ::c_int = 1;
145
146
pub const F_TEST : :: c_int = 3 ;
146
147
pub const F_TLOCK : :: c_int = 2 ;
147
148
pub const F_ULOCK : :: c_int = 0 ;
149
+ pub const F_DUPFD_CLOEXEC : :: c_int = 17 ;
148
150
pub const SIGHUP : :: c_int = 1 ;
149
151
pub const SIGINT : :: c_int = 2 ;
150
152
pub const SIGQUIT : :: c_int = 3 ;
Original file line number Diff line number Diff line change @@ -123,6 +123,7 @@ pub const O_CREAT : c_int = 512;
123
123
pub const O_EXCL : c_int = 2048 ;
124
124
pub const O_NOCTTY : c_int = 32768 ;
125
125
pub const O_TRUNC : c_int = 1024 ;
126
+ pub const O_CLOEXEC : :: c_int = 0x10000 ;
126
127
pub const S_IFIFO : mode_t = 4096 ;
127
128
pub const S_IFCHR : mode_t = 8192 ;
128
129
pub const S_IFBLK : mode_t = 24576 ;
Original file line number Diff line number Diff line change @@ -181,8 +181,6 @@ pub const PTHREAD_RWLOCK_INITIALIZER: pthread_rwlock_t = pthread_rwlock_t {
181
181
} ;
182
182
pub const PTHREAD_MUTEX_RECURSIVE : :: c_int = 1 ;
183
183
184
- pub const O_SYNC : :: c_int = 0x1000 ;
185
-
186
184
pub const FIOCLEX : :: c_ulong = 0x5451 ;
187
185
188
186
pub const SA_ONSTACK : :: c_ulong = 0x08000000 ;
@@ -194,6 +192,7 @@ pub const SIGBUS: ::c_int = 7;
194
192
pub const SIG_SETMASK : :: c_int = 2 ;
195
193
196
194
pub const O_ACCMODE : :: c_int = 3 ;
195
+ pub const O_SYNC : :: c_int = 0x1000 ;
197
196
198
197
pub const RUSAGE_CHILDREN : :: c_int = -1 ;
199
198
Original file line number Diff line number Diff line change @@ -223,6 +223,8 @@ pub const MAP_32BIT: ::c_int = 0x0040;
223
223
224
224
pub const TCP_MD5SIG : :: c_int = 14 ;
225
225
226
+ pub const F_DUPFD_CLOEXEC : :: c_int = 1030 ;
227
+
226
228
pub const PTHREAD_MUTEX_INITIALIZER : pthread_mutex_t = pthread_mutex_t {
227
229
__align : [ ] ,
228
230
size : [ 0 ; __SIZEOF_PTHREAD_MUTEX_T] ,
Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ pub const O_RDONLY: ::c_int = 0;
122
122
pub const O_WRONLY : :: c_int = 1 ;
123
123
pub const O_RDWR : :: c_int = 2 ;
124
124
pub const O_TRUNC : :: c_int = 512 ;
125
+ pub const O_CLOEXEC : :: c_int = 0x80000 ;
125
126
pub const S_IFIFO : :: mode_t = 4096 ;
126
127
pub const S_IFCHR : :: mode_t = 8192 ;
127
128
pub const S_IFBLK : :: mode_t = 24576 ;
You can’t perform that action at this time.
0 commit comments