File tree Expand file tree Collapse file tree 13 files changed +70
-13
lines changed Expand file tree Collapse file tree 13 files changed +70
-13
lines changed Original file line number Diff line number Diff line change @@ -1462,6 +1462,7 @@ pub const TIOCISPTMASTER: ::c_ulong = 0x20007455;
14621462pub const TIOCMODG : :: c_ulong = 0x40047403 ;
14631463pub const TIOCMODS : :: c_ulong = 0x80047404 ;
14641464pub const TIOCREMOTE : :: c_ulong = 0x80047469 ;
1465+ pub const TIOCTIMESTAMP : :: c_ulong = 0x40107459 ;
14651466
14661467// Constants used by "at" family of system calls.
14671468pub const AT_FDCWD : :: c_int = 0xFFFAFDCD ; // invalid file descriptor
Original file line number Diff line number Diff line change 11pub type c_char = u8 ;
22pub type c_long = i64 ;
33pub type c_ulong = u64 ;
4+ pub type clock_t = i32 ;
45pub type wchar_t = u32 ;
56pub type time_t = i64 ;
67pub type suseconds_t = i64 ;
@@ -133,5 +134,8 @@ cfg_if! {
133134 }
134135}
135136
137+ pub const BIOCSRTIMEOUT : :: c_ulong = 0x8010426d ;
138+ pub const BIOCGRTIMEOUT : :: c_ulong = 0x4010426e ;
136139pub const MAP_32BIT : :: c_int = 0x00080000 ;
137140pub const MINSIGSTKSZ : :: size_t = 4096 ; // 1024 * 4
141+ pub const TIOCTIMESTAMP : :: c_ulong = 0x40107459 ;
Original file line number Diff line number Diff line change 11pub type c_char = u8 ;
22pub type c_long = i32 ;
33pub type c_ulong = u32 ;
4+ pub type clock_t = u32 ;
45pub type wchar_t = u32 ;
56pub type time_t = i64 ;
67pub type suseconds_t = i32 ;
@@ -50,5 +51,8 @@ cfg_if! {
5051}
5152
5253pub ( crate ) const _ALIGNBYTES: usize = :: mem:: size_of :: < :: c_int > ( ) - 1 ;
54+ pub const BIOCSRTIMEOUT : :: c_ulong = 0x8010426d ;
55+ pub const BIOCGRTIMEOUT : :: c_ulong = 0x4010426e ;
5356pub const MAP_32BIT : :: c_int = 0x00080000 ;
5457pub const MINSIGSTKSZ : :: size_t = 4096 ; // 1024 * 4
58+ pub const TIOCTIMESTAMP : :: c_ulong = 0x40107459 ;
Original file line number Diff line number Diff line change 4141 }
4242
4343 pub struct __c_anonymous_domainset {
44- _priv: [ :: uintptr_t; 4 ] ,
44+ #[ cfg( target_pointer_width = "64" ) ]
45+ _priv: [ :: c_ulong; 4 ] ,
46+ #[ cfg( target_pointer_width = "32" ) ]
47+ _priv: [ :: c_ulong; 8 ] ,
4548 }
4649
4750 pub struct kinfo_proc {
Original file line number Diff line number Diff line change 4141 }
4242
4343 pub struct __c_anonymous_domainset {
44- _priv: [ :: uintptr_t; 4 ] ,
44+ #[ cfg( target_pointer_width = "64" ) ]
45+ _priv: [ :: c_ulong; 4 ] ,
46+ #[ cfg( target_pointer_width = "32" ) ]
47+ _priv: [ :: c_ulong; 8 ] ,
4548 }
4649
4750 pub struct kinfo_proc {
Original file line number Diff line number Diff line change 4141 }
4242
4343 pub struct __c_anonymous_domainset {
44- _priv: [ :: uintptr_t; 4 ] ,
44+ #[ cfg( target_pointer_width = "64" ) ]
45+ _priv: [ :: c_ulong; 4 ] ,
46+ #[ cfg( target_pointer_width = "32" ) ]
47+ _priv: [ :: c_ulong; 8 ] ,
4548 }
4649
4750 pub struct kinfo_proc {
Original file line number Diff line number Diff line change 11pub type fflags_t = u32 ;
2- pub type clock_t = i32 ;
32
43pub type vm_prot_t = u_char ;
54pub type kvaddr_t = u64 ;
@@ -1630,7 +1629,7 @@ s_no_extra_traits! {
16301629 pub kf_flags: :: c_int,
16311630 _kf_pad0: :: c_int,
16321631 pub kf_offset: i64 ,
1633- _priv: [ :: uintptr_t ; 38 ] , // FIXME if needed
1632+ _priv: [ u8 ; 304 ] , // FIXME: this is really a giant union
16341633 pub kf_status: u16 ,
16351634 _kf_pad1: u16 ,
16361635 _kf_ispare0: :: c_int,
@@ -3146,9 +3145,22 @@ pub const H4DISC: ::c_int = 0x7;
31463145
31473146pub const VM_TOTAL : :: c_int = 1 ;
31483147
3149- pub const BIOCSETFNR : :: c_ulong = 0x80104282 ;
3148+ cfg_if ! {
3149+ if #[ cfg( target_pointer_width = "64" ) ] {
3150+ pub const BIOCSETFNR : :: c_ulong = 0x80104282 ;
3151+ } else {
3152+ pub const BIOCSETFNR : :: c_ulong = 0x80084282 ;
3153+ }
3154+ }
3155+
3156+ cfg_if ! {
3157+ if #[ cfg( target_pointer_width = "64" ) ] {
3158+ pub const FIODGNAME : :: c_ulong = 0x80106678 ;
3159+ } else {
3160+ pub const FIODGNAME : :: c_ulong = 0x80086678 ;
3161+ }
3162+ }
31503163
3151- pub const FIODGNAME : :: c_ulong = 0x80106678 ;
31523164pub const FIONWRITE : :: c_ulong = 0x40046677 ;
31533165pub const FIONSPACE : :: c_ulong = 0x40046676 ;
31543166pub const FIOSEEKDATA : :: c_ulong = 0xc0086661 ;
Original file line number Diff line number Diff line change 11pub type c_char = u8 ;
22pub type c_long = i32 ;
33pub type c_ulong = u32 ;
4+ pub type clock_t = u32 ;
45pub type wchar_t = i32 ;
56pub type time_t = i64 ;
67pub type suseconds_t = i32 ;
@@ -69,5 +70,8 @@ cfg_if! {
6970}
7071
7172pub ( crate ) const _ALIGNBYTES: usize = :: mem:: size_of :: < :: c_int > ( ) - 1 ;
73+ pub const BIOCSRTIMEOUT : :: c_ulong = 0x8010426d ;
74+ pub const BIOCGRTIMEOUT : :: c_ulong = 0x4010426e ;
7275pub const MAP_32BIT : :: c_int = 0x00080000 ;
7376pub const MINSIGSTKSZ : :: size_t = 2048 ; // 512 * 4
77+ pub const TIOCTIMESTAMP : :: c_ulong = 0x40107459 ;
Original file line number Diff line number Diff line change 11pub type c_char = u8 ;
22pub type c_long = i64 ;
33pub type c_ulong = u64 ;
4+ pub type clock_t = u32 ;
45pub type wchar_t = i32 ;
56pub type time_t = i64 ;
67pub type suseconds_t = i64 ;
@@ -69,5 +70,8 @@ cfg_if! {
6970}
7071
7172pub ( crate ) const _ALIGNBYTES: usize = :: mem:: size_of :: < :: c_long > ( ) - 1 ;
73+ pub const BIOCSRTIMEOUT : :: c_ulong = 0x8010426d ;
74+ pub const BIOCGRTIMEOUT : :: c_ulong = 0x4010426e ;
7275pub const MAP_32BIT : :: c_int = 0x00080000 ;
7376pub const MINSIGSTKSZ : :: size_t = 2048 ; // 512 * 4
77+ pub const TIOCTIMESTAMP : :: c_ulong = 0x40107459 ;
Original file line number Diff line number Diff line change 11pub type c_char = u8 ;
22pub type c_long = i64 ;
33pub type c_ulong = u64 ;
4+ pub type clock_t = i32 ;
45pub type wchar_t = :: c_int ;
56pub type time_t = i64 ;
67pub type suseconds_t = :: c_long ;
@@ -141,5 +142,8 @@ cfg_if! {
141142 }
142143}
143144
145+ pub const BIOCSRTIMEOUT : :: c_ulong = 0x8010426d ;
146+ pub const BIOCGRTIMEOUT : :: c_ulong = 0x4010426e ;
144147pub const MAP_32BIT : :: c_int = 0x00080000 ;
145148pub const MINSIGSTKSZ : :: size_t = 4096 ; // 1024 * 4
149+ pub const TIOCTIMESTAMP : :: c_ulong = 0x40107459 ;
You can’t perform that action at this time.
0 commit comments