@@ -102,6 +102,7 @@ pub use types::os::arch::extra::*;
102
102
pub use consts:: os:: c95:: * ;
103
103
pub use consts:: os:: posix88:: * ;
104
104
pub use consts:: os:: posix01:: * ;
105
+ pub use consts:: os:: posix08:: * ;
105
106
pub use consts:: os:: bsd44:: * ;
106
107
pub use consts:: os:: extra:: * ;
107
108
@@ -3608,6 +3609,8 @@ pub mod consts {
3608
3609
pub const RUSAGE_THREAD : c_int = 1 ;
3609
3610
}
3610
3611
pub mod posix08 {
3612
+ use types:: os:: arch:: c95:: c_int;
3613
+ pub const O_CLOEXEC : c_int = 0x80000 ;
3611
3614
}
3612
3615
#[ cfg( any( target_arch = "arm" ,
3613
3616
target_arch = "aarch64" ,
@@ -4267,7 +4270,15 @@ pub mod consts {
4267
4270
pub const RUSAGE_CHILDREN : c_int = -1 ;
4268
4271
pub const RUSAGE_THREAD : c_int = 1 ;
4269
4272
}
4273
+ #[ cfg( target_os = "freebsd" ) ]
4270
4274
pub mod posix08 {
4275
+ use types:: os:: arch:: c95:: c_int;
4276
+ pub const O_CLOEXEC : c_int = 0x100000 ;
4277
+ }
4278
+ #[ cfg( target_os = "dragonfly" ) ]
4279
+ pub mod posix08 {
4280
+ use types:: os:: arch:: c95:: c_int;
4281
+ pub const O_CLOEXEC : c_int = 0x20000 ;
4271
4282
}
4272
4283
pub mod bsd44 {
4273
4284
use types:: os:: arch:: c95:: c_int;
@@ -4710,7 +4721,15 @@ pub mod consts {
4710
4721
pub const RUSAGE_CHILDREN : c_int = -1 ;
4711
4722
pub const RUSAGE_THREAD : c_int = 1 ;
4712
4723
}
4724
+ #[ cfg( any( target_os = "bitrig" , target_os = "openbsd" ) ) ]
4713
4725
pub mod posix08 {
4726
+ use types:: os:: arch:: c95:: c_int;
4727
+ pub const O_CLOEXEC : c_int = 0x10000 ;
4728
+ }
4729
+ #[ cfg( target_os = "netbsd" ) ]
4730
+ pub mod posix08 {
4731
+ use types:: os:: arch:: c95:: c_int;
4732
+ pub const O_CLOEXEC : c_int = 0x400000 ;
4714
4733
}
4715
4734
pub mod bsd44 {
4716
4735
use types:: os:: arch:: c95:: c_int;
@@ -5148,6 +5167,8 @@ pub mod consts {
5148
5167
pub const RUSAGE_THREAD : c_int = 1 ;
5149
5168
}
5150
5169
pub mod posix08 {
5170
+ use types:: os:: arch:: c95:: c_int;
5171
+ pub const O_CLOEXEC : c_int = 0x1000000 ;
5151
5172
}
5152
5173
pub mod bsd44 {
5153
5174
use types:: os:: arch:: c95:: c_int;
0 commit comments