Move down c_long and c_ulong of linux/other/b64 to accommodate x32
This commit is contained in:
parent
1994be3183
commit
1ff3817887
|
@ -1,5 +1,7 @@
|
|||
//! AArch64-specific definitions for 64-bit linux-like values
|
||||
|
||||
pub type c_long = i64;
|
||||
pub type c_ulong = u64;
|
||||
pub type c_char = u8;
|
||||
pub type wchar_t = u32;
|
||||
pub type nlink_t = u32;
|
||||
|
|
|
@ -1,15 +1,5 @@
|
|||
//! 64-bit specific definitions for linux-like values
|
||||
|
||||
cfg_if! {
|
||||
if #[cfg(target_pointer_width = "32")] {
|
||||
pub type c_long = i32;
|
||||
pub type c_ulong = u32;
|
||||
} else {
|
||||
pub type c_long = i64;
|
||||
pub type c_ulong = u64;
|
||||
}
|
||||
}
|
||||
|
||||
pub type clock_t = i64;
|
||||
pub type time_t = i64;
|
||||
pub type ino_t = u64;
|
||||
|
@ -74,7 +64,8 @@ cfg_if! {
|
|||
pub use self::x86_64::*;
|
||||
cfg_if! {
|
||||
if #[cfg(target_pointer_width = "32")] {
|
||||
// x32
|
||||
mod x32;
|
||||
pub use self::x32::*;
|
||||
} else {
|
||||
mod not_x32;
|
||||
pub use self::not_x32::*;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
pub type c_long = i64;
|
||||
pub type c_ulong = u64;
|
||||
|
||||
pub const SYS_uselib: ::c_long = 134;
|
||||
pub const SYS__sysctl: ::c_long = 156;
|
||||
pub const SYS_create_module: ::c_long = 174;
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
//! PowerPC64-specific definitions for 64-bit linux-like values
|
||||
|
||||
pub type c_long = i64;
|
||||
pub type c_ulong = u64;
|
||||
pub type c_char = u8;
|
||||
pub type wchar_t = i32;
|
||||
pub type nlink_t = u64;
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
//! SPARC64-specific definitions for 64-bit linux-like values
|
||||
|
||||
pub type c_long = i64;
|
||||
pub type c_ulong = u64;
|
||||
pub type c_char = i8;
|
||||
pub type wchar_t = i32;
|
||||
pub type nlink_t = u32;
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
pub type c_long = i32;
|
||||
pub type c_ulong = u32;
|
Loading…
Reference in New Issue