]> git.proxmox.com Git - rustc.git/blame - src/liblibc/src/unix/notbsd/linux/musl/b32/mod.rs
New upstream version 1.23.0+dfsg1
[rustc.git] / src / liblibc / src / unix / notbsd / linux / musl / b32 / mod.rs
CommitLineData
7453a54e
SL
1pub type c_long = i32;
2pub type c_ulong = u32;
3pub type nlink_t = u32;
abe05a73 4pub type blksize_t = ::c_long;
3b2f2976 5pub type __u64 = ::c_ulonglong;
7453a54e 6
7453a54e
SL
7s! {
8 pub struct pthread_attr_t {
9 __size: [u32; 9]
10 }
11
12 pub struct sigset_t {
13 __val: [::c_ulong; 32],
14 }
15
16 pub struct msghdr {
17 pub msg_name: *mut ::c_void,
18 pub msg_namelen: ::socklen_t,
19 pub msg_iov: *mut ::iovec,
20 pub msg_iovlen: ::c_int,
21 pub msg_control: *mut ::c_void,
22 pub msg_controllen: ::socklen_t,
23 pub msg_flags: ::c_int,
24 }
5bcae85e 25
32a655c1
SL
26 pub struct cmsghdr {
27 pub cmsg_len: ::socklen_t,
28 pub cmsg_level: ::c_int,
29 pub cmsg_type: ::c_int,
30 }
31
5bcae85e
SL
32 pub struct sem_t {
33 __val: [::c_int; 4],
34 }
abe05a73
XL
35
36 pub struct ipc_perm {
37 pub __ipc_perm_key: ::key_t,
38 pub uid: ::uid_t,
39 pub gid: ::gid_t,
40 pub cuid: ::uid_t,
41 pub cgid: ::gid_t,
42 pub mode: ::mode_t,
43 pub __seq: ::c_int,
44 __unused1: ::c_long,
45 __unused2: ::c_long
46 }
7453a54e
SL
47}
48
abe05a73
XL
49pub const SIGSTKSZ: ::size_t = 8192;
50pub const MINSIGSTKSZ: ::size_t = 2048;
51
54a0048b
SL
52pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 32;
53pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 24;
54
7453a54e
SL
55cfg_if! {
56 if #[cfg(any(target_arch = "x86"))] {
57 mod x86;
58 pub use self::x86::*;
59 } else if #[cfg(any(target_arch = "mips"))] {
60 mod mips;
61 pub use self::mips::*;
62 } else if #[cfg(any(target_arch = "arm"))] {
63 mod arm;
64 pub use self::arm::*;
54a0048b
SL
65 } else {
66 // Unknown target_arch
67 }
7453a54e 68}