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