File tree 6 files changed +13
-11
lines changed
src/unix/notbsd/linux/other/b64
6 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 1
1
//! AArch64-specific definitions for 64-bit linux-like values
2
2
3
+ pub type c_long = i64 ;
4
+ pub type c_ulong = u64 ;
3
5
pub type c_char = u8 ;
4
6
pub type wchar_t = u32 ;
5
7
pub type nlink_t = u32 ;
Original file line number Diff line number Diff line change 1
1
//! 64-bit specific definitions for linux-like values
2
2
3
- cfg_if ! {
4
- if #[ cfg( target_pointer_width = "32" ) ] {
5
- pub type c_long = i32 ;
6
- pub type c_ulong = u32 ;
7
- } else {
8
- pub type c_long = i64 ;
9
- pub type c_ulong = u64 ;
10
- }
11
- }
12
-
13
3
pub type clock_t = i64 ;
14
4
pub type time_t = i64 ;
15
5
pub type ino_t = u64 ;
@@ -74,7 +64,8 @@ cfg_if! {
74
64
pub use self :: x86_64:: * ;
75
65
cfg_if! {
76
66
if #[ cfg( target_pointer_width = "32" ) ] {
77
- // x32
67
+ mod x32;
68
+ pub use self :: x32:: * ;
78
69
} else {
79
70
mod not_x32;
80
71
pub use self :: not_x32:: * ;
Original file line number Diff line number Diff line change
1
+ pub type c_long = i64 ;
2
+ pub type c_ulong = u64 ;
3
+
1
4
pub const SYS_uselib : :: c_long = 134 ;
2
5
pub const SYS__sysctl : :: c_long = 156 ;
3
6
pub const SYS_create_module : :: c_long = 174 ;
Original file line number Diff line number Diff line change 1
1
//! PowerPC64-specific definitions for 64-bit linux-like values
2
2
3
+ pub type c_long = i64 ;
4
+ pub type c_ulong = u64 ;
3
5
pub type c_char = u8 ;
4
6
pub type wchar_t = i32 ;
5
7
pub type nlink_t = u64 ;
Original file line number Diff line number Diff line change 1
1
//! SPARC64-specific definitions for 64-bit linux-like values
2
2
3
+ pub type c_long = i64 ;
4
+ pub type c_ulong = u64 ;
3
5
pub type c_char = i8 ;
4
6
pub type wchar_t = i32 ;
5
7
pub type nlink_t = u32 ;
Original file line number Diff line number Diff line change
1
+ pub type c_long = i32 ;
2
+ pub type c_ulong = u32 ;
You can’t perform that action at this time.
0 commit comments