]>
Commit | Line | Data |
---|---|---|
532ac7d7 | 1 | pub type c_char = i8; |
476ff2be SL |
2 | pub type c_long = i64; |
3 | pub type c_ulong = u64; | |
4 | pub type time_t = i64; | |
5 | pub type suseconds_t = i64; | |
6 | ||
532ac7d7 XL |
7 | // should be pub(crate), but that requires Rust 1.18.0 |
8 | cfg_if! { | |
9 | if #[cfg(libc_const_size_of)] { | |
10 | #[doc(hidden)] | |
11 | pub const _ALIGNBYTES: usize = ::mem::size_of::<::c_long>() - 1; | |
12 | } else { | |
13 | #[doc(hidden)] | |
14 | pub const _ALIGNBYTES: usize = 8 - 1; | |
15 | } | |
16 | } | |
ea8adc8c | 17 | pub const MAP_32BIT: ::c_int = 0x00080000; |
e74abb32 XL |
18 | |
19 | cfg_if! { | |
20 | if #[cfg(libc_align)] { | |
21 | mod align; | |
22 | pub use self::align::*; | |
23 | } | |
24 | } |