]>
Commit | Line | Data |
---|---|---|
92a42be0 SL |
1 | //! 64-bit specific definitions for linux-like values |
2 | ||
3 | pub type c_long = i64; | |
4 | pub type c_ulong = u64; | |
5 | pub type clock_t = i64; | |
6 | pub type time_t = i64; | |
7 | pub type suseconds_t = i64; | |
8 | pub type ino_t = u64; | |
9 | pub type off_t = i64; | |
10 | pub type blkcnt_t = i64; | |
9cc50fc6 | 11 | pub type __fsword_t = ::c_long; |
92a42be0 SL |
12 | |
13 | s! { | |
14 | pub struct sigset_t { | |
15 | __val: [::c_ulong; 16], | |
16 | } | |
17 | } | |
18 | ||
19 | pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56; | |
20 | ||
21 | cfg_if! { | |
22 | if #[cfg(target_arch = "aarch64")] { | |
23 | mod aarch64; | |
24 | pub use self::aarch64::*; | |
7453a54e | 25 | } else if #[cfg(any(target_arch = "powerpc64"))] { |
9cc50fc6 SL |
26 | mod powerpc64; |
27 | pub use self::powerpc64::*; | |
54a0048b | 28 | } else if #[cfg(any(target_arch = "x86_64"))] { |
92a42be0 SL |
29 | mod x86_64; |
30 | pub use self::x86_64::*; | |
54a0048b SL |
31 | } else { |
32 | // Unknown target_arch | |
92a42be0 SL |
33 | } |
34 | } |