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;
1462
1462
pub const TIOCMODG : :: c_ulong = 0x40047403 ;
1463
1463
pub const TIOCMODS : :: c_ulong = 0x80047404 ;
1464
1464
pub const TIOCREMOTE : :: c_ulong = 0x80047469 ;
1465
+ pub const TIOCTIMESTAMP : :: c_ulong = 0x40107459 ;
1465
1466
1466
1467
// Constants used by "at" family of system calls.
1467
1468
pub const AT_FDCWD : :: c_int = 0xFFFAFDCD ; // invalid file descriptor
Original file line number Diff line number Diff line change 1
1
pub type c_char = u8 ;
2
2
pub type c_long = i64 ;
3
3
pub type c_ulong = u64 ;
4
+ pub type clock_t = i32 ;
4
5
pub type wchar_t = u32 ;
5
6
pub type time_t = i64 ;
6
7
pub type suseconds_t = i64 ;
@@ -133,5 +134,8 @@ cfg_if! {
133
134
}
134
135
}
135
136
137
+ pub const BIOCSRTIMEOUT : :: c_ulong = 0x8010426d ;
138
+ pub const BIOCGRTIMEOUT : :: c_ulong = 0x4010426e ;
136
139
pub const MAP_32BIT : :: c_int = 0x00080000 ;
137
140
pub const MINSIGSTKSZ : :: size_t = 4096 ; // 1024 * 4
141
+ pub const TIOCTIMESTAMP : :: c_ulong = 0x40107459 ;
Original file line number Diff line number Diff line change 1
1
pub type c_char = u8 ;
2
2
pub type c_long = i32 ;
3
3
pub type c_ulong = u32 ;
4
+ pub type clock_t = u32 ;
4
5
pub type wchar_t = u32 ;
5
6
pub type time_t = i64 ;
6
7
pub type suseconds_t = i32 ;
@@ -50,5 +51,8 @@ cfg_if! {
50
51
}
51
52
52
53
pub ( crate ) const _ALIGNBYTES: usize = :: mem:: size_of :: < :: c_int > ( ) - 1 ;
54
+ pub const BIOCSRTIMEOUT : :: c_ulong = 0x8010426d ;
55
+ pub const BIOCGRTIMEOUT : :: c_ulong = 0x4010426e ;
53
56
pub const MAP_32BIT : :: c_int = 0x00080000 ;
54
57
pub const MINSIGSTKSZ : :: size_t = 4096 ; // 1024 * 4
58
+ pub const TIOCTIMESTAMP : :: c_ulong = 0x40107459 ;
Original file line number Diff line number Diff line change 41
41
}
42
42
43
43
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 ] ,
45
48
}
46
49
47
50
pub struct kinfo_proc {
Original file line number Diff line number Diff line change 41
41
}
42
42
43
43
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 ] ,
45
48
}
46
49
47
50
pub struct kinfo_proc {
Original file line number Diff line number Diff line change 41
41
}
42
42
43
43
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 ] ,
45
48
}
46
49
47
50
pub struct kinfo_proc {
Original file line number Diff line number Diff line change 1
1
pub type fflags_t = u32 ;
2
- pub type clock_t = i32 ;
3
2
4
3
pub type vm_prot_t = u_char ;
5
4
pub type kvaddr_t = u64 ;
@@ -1630,7 +1629,7 @@ s_no_extra_traits! {
1630
1629
pub kf_flags: :: c_int,
1631
1630
_kf_pad0: :: c_int,
1632
1631
pub kf_offset: i64 ,
1633
- _priv: [ :: uintptr_t ; 38 ] , // FIXME if needed
1632
+ _priv: [ u8 ; 304 ] , // FIXME: this is really a giant union
1634
1633
pub kf_status: u16 ,
1635
1634
_kf_pad1: u16 ,
1636
1635
_kf_ispare0: :: c_int,
@@ -3146,9 +3145,22 @@ pub const H4DISC: ::c_int = 0x7;
3146
3145
3147
3146
pub const VM_TOTAL : :: c_int = 1 ;
3148
3147
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
+ }
3150
3163
3151
- pub const FIODGNAME : :: c_ulong = 0x80106678 ;
3152
3164
pub const FIONWRITE : :: c_ulong = 0x40046677 ;
3153
3165
pub const FIONSPACE : :: c_ulong = 0x40046676 ;
3154
3166
pub const FIOSEEKDATA : :: c_ulong = 0xc0086661 ;
Original file line number Diff line number Diff line change 1
1
pub type c_char = u8 ;
2
2
pub type c_long = i32 ;
3
3
pub type c_ulong = u32 ;
4
+ pub type clock_t = u32 ;
4
5
pub type wchar_t = i32 ;
5
6
pub type time_t = i64 ;
6
7
pub type suseconds_t = i32 ;
@@ -69,5 +70,8 @@ cfg_if! {
69
70
}
70
71
71
72
pub ( crate ) const _ALIGNBYTES: usize = :: mem:: size_of :: < :: c_int > ( ) - 1 ;
73
+ pub const BIOCSRTIMEOUT : :: c_ulong = 0x8010426d ;
74
+ pub const BIOCGRTIMEOUT : :: c_ulong = 0x4010426e ;
72
75
pub const MAP_32BIT : :: c_int = 0x00080000 ;
73
76
pub const MINSIGSTKSZ : :: size_t = 2048 ; // 512 * 4
77
+ pub const TIOCTIMESTAMP : :: c_ulong = 0x40107459 ;
Original file line number Diff line number Diff line change 1
1
pub type c_char = u8 ;
2
2
pub type c_long = i64 ;
3
3
pub type c_ulong = u64 ;
4
+ pub type clock_t = u32 ;
4
5
pub type wchar_t = i32 ;
5
6
pub type time_t = i64 ;
6
7
pub type suseconds_t = i64 ;
@@ -69,5 +70,8 @@ cfg_if! {
69
70
}
70
71
71
72
pub ( crate ) const _ALIGNBYTES: usize = :: mem:: size_of :: < :: c_long > ( ) - 1 ;
73
+ pub const BIOCSRTIMEOUT : :: c_ulong = 0x8010426d ;
74
+ pub const BIOCGRTIMEOUT : :: c_ulong = 0x4010426e ;
72
75
pub const MAP_32BIT : :: c_int = 0x00080000 ;
73
76
pub const MINSIGSTKSZ : :: size_t = 2048 ; // 512 * 4
77
+ pub const TIOCTIMESTAMP : :: c_ulong = 0x40107459 ;
Original file line number Diff line number Diff line change 1
1
pub type c_char = u8 ;
2
2
pub type c_long = i64 ;
3
3
pub type c_ulong = u64 ;
4
+ pub type clock_t = i32 ;
4
5
pub type wchar_t = :: c_int ;
5
6
pub type time_t = i64 ;
6
7
pub type suseconds_t = :: c_long ;
@@ -141,5 +142,8 @@ cfg_if! {
141
142
}
142
143
}
143
144
145
+ pub const BIOCSRTIMEOUT : :: c_ulong = 0x8010426d ;
146
+ pub const BIOCGRTIMEOUT : :: c_ulong = 0x4010426e ;
144
147
pub const MAP_32BIT : :: c_int = 0x00080000 ;
145
148
pub 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