1 pub type c_char = u8; 2 pub type c_long = i64; 3 pub type c_ulong = u64; 4 pub type wchar_t = u32; 5 pub type time_t = i64; 6 pub type suseconds_t = i64; 7 pub type register_t = i64; 8 9 // should be pub(crate), but that requires Rust 1.18.0 10 cfg_if! { 11 if #[cfg(libc_const_size_of)] { 12 #[doc(hidden)] 13 pub const _ALIGNBYTES: usize = ::mem::size_of::<::c_longlong>() - 1; 14 } else { 15 #[doc(hidden)] 16 pub const _ALIGNBYTES: usize = 8 - 1; 17 } 18 } 19 20 pub const MAP_32BIT: ::c_int = 0x00080000; 21 pub const MINSIGSTKSZ: ::size_t = 4096; // 1024 * 4 22