1 pub type c_long = i64; 2 pub type c_ulong = u64; 3 pub type c_char = u8; 4 5 // should be pub(crate), but that requires Rust 1.18.0 6 cfg_if! { 7 if #[cfg(libc_const_size_of)] { 8 #[doc(hidden)] 9 pub const _ALIGNBYTES: usize = ::mem::size_of::<::c_long>() - 1; 10 } else { 11 #[doc(hidden)] 12 pub const _ALIGNBYTES: usize = 8 - 1; 13 } 14 } 15 16 pub const _MAX_PAGE_SHIFT: u32 = 12; 17