]> git.proxmox.com Git - rustc.git/blob - src/vendor/libc/src/unix/notbsd/linux/other/b64/mod.rs
352dba843d2b58d82c5649f30b9d5553f4027ac8
[rustc.git] / src / vendor / libc / src / unix / notbsd / linux / other / b64 / mod.rs
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;
11 pub type __fsword_t = ::c_long;
12
13 s! {
14 pub struct sigset_t {
15 __val: [::c_ulong; 16],
16 }
17
18 pub struct sysinfo {
19 pub uptime: ::c_long,
20 pub loads: [::c_ulong; 3],
21 pub totalram: ::c_ulong,
22 pub freeram: ::c_ulong,
23 pub sharedram: ::c_ulong,
24 pub bufferram: ::c_ulong,
25 pub totalswap: ::c_ulong,
26 pub freeswap: ::c_ulong,
27 pub procs: ::c_ushort,
28 pub pad: ::c_ushort,
29 pub totalhigh: ::c_ulong,
30 pub freehigh: ::c_ulong,
31 pub mem_unit: ::c_uint,
32 pub _f: [::c_char; 0],
33 }
34
35 pub struct msqid_ds {
36 pub msg_perm: ::ipc_perm,
37 pub msg_stime: ::time_t,
38 pub msg_rtime: ::time_t,
39 pub msg_ctime: ::time_t,
40 __msg_cbytes: ::c_ulong,
41 pub msg_qnum: ::msgqnum_t,
42 pub msg_qbytes: ::msglen_t,
43 pub msg_lspid: ::pid_t,
44 pub msg_lrpid: ::pid_t,
45 __glibc_reserved4: ::c_ulong,
46 __glibc_reserved5: ::c_ulong,
47 }
48 }
49
50 pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56;
51
52 cfg_if! {
53 if #[cfg(target_arch = "aarch64")] {
54 mod aarch64;
55 pub use self::aarch64::*;
56 } else if #[cfg(any(target_arch = "powerpc64"))] {
57 mod powerpc64;
58 pub use self::powerpc64::*;
59 } else if #[cfg(any(target_arch = "x86_64"))] {
60 mod x86_64;
61 pub use self::x86_64::*;
62 } else {
63 // Unknown target_arch
64 }
65 }