Skip to content
Snippets Groups Projects
Commit 1ff38178 authored by Marco A L Barbosa's avatar Marco A L Barbosa
Browse files

Move down c_long and c_ulong of linux/other/b64 to accommodate x32

parent 1994be31
No related branches found
No related tags found
No related merge requests found
//! 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;
......
//! 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::*;
......
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;
......
//! 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;
......
//! 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;
......
pub type c_long = i32;
pub type c_ulong = u32;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment