@@ -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
@@ -3611,6 +3612,8 @@ pub mod consts {
3611
3612
pub const RUSAGE_THREAD : c_int = 1 ;
3612
3613
}
3613
3614
pub mod posix08 {
3615
+ use types:: os:: arch:: c95:: c_int;
3616
+ pub const O_CLOEXEC : c_int = 0x80000 ;
3614
3617
}
3615
3618
#[ cfg( any( target_arch = "arm" ,
3616
3619
target_arch = "aarch64" ,
@@ -4270,7 +4273,15 @@ pub mod consts {
4270
4273
pub const RUSAGE_CHILDREN : c_int = -1 ;
4271
4274
pub const RUSAGE_THREAD : c_int = 1 ;
4272
4275
}
4276
+ #[ cfg( target_os = "freebsd" ) ]
4273
4277
pub mod posix08 {
4278
+ use types:: os:: arch:: c95:: c_int;
4279
+ pub const O_CLOEXEC : c_int = 0x100000 ;
4280
+ }
4281
+ #[ cfg( target_os = "dragonfly" ) ]
4282
+ pub mod posix08 {
4283
+ use types:: os:: arch:: c95:: c_int;
4284
+ pub const O_CLOEXEC : c_int = 0x20000 ;
4274
4285
}
4275
4286
pub mod bsd44 {
4276
4287
use types:: os:: arch:: c95:: c_int;
@@ -4713,7 +4724,15 @@ pub mod consts {
4713
4724
pub const RUSAGE_CHILDREN : c_int = -1 ;
4714
4725
pub const RUSAGE_THREAD : c_int = 1 ;
4715
4726
}
4727
+ #[ cfg( any( target_os = "bitrig" , target_os = "openbsd" ) ) ]
4716
4728
pub mod posix08 {
4729
+ use types:: os:: arch:: c95:: c_int;
4730
+ pub const O_CLOEXEC : c_int = 0x10000 ;
4731
+ }
4732
+ #[ cfg( target_os = "netbsd" ) ]
4733
+ pub mod posix08 {
4734
+ use types:: os:: arch:: c95:: c_int;
4735
+ pub const O_CLOEXEC : c_int = 0x400000 ;
4717
4736
}
4718
4737
pub mod bsd44 {
4719
4738
use types:: os:: arch:: c95:: c_int;
@@ -5151,6 +5170,8 @@ pub mod consts {
5151
5170
pub const RUSAGE_THREAD : c_int = 1 ;
5152
5171
}
5153
5172
pub mod posix08 {
5173
+ use types:: os:: arch:: c95:: c_int;
5174
+ pub const O_CLOEXEC : c_int = 0x1000000 ;
5154
5175
}
5155
5176
pub mod bsd44 {
5156
5177
use types:: os:: arch:: c95:: c_int;
0 commit comments