]> git.proxmox.com Git - rustc.git/blame - vendor/libc/src/unix/linux_like/linux/musl/b32/mod.rs
New upstream version 1.61.0+dfsg1
[rustc.git] / vendor / libc / src / unix / linux_like / linux / musl / b32 / mod.rs
CommitLineData
476ff2be
SL
1pub type c_long = i32;
2pub type c_ulong = u32;
3pub type nlink_t = u32;
abe05a73 4pub type blksize_t = ::c_long;
041b39d2 5pub type __u64 = ::c_ulonglong;
ba9703b0 6pub type regoff_t = ::c_int;
476ff2be
SL
7
8s! {
9 pub struct pthread_attr_t {
10 __size: [u32; 9]
11 }
12
13 pub struct sigset_t {
14 __val: [::c_ulong; 32],
15 }
16
17 pub struct msghdr {
18 pub msg_name: *mut ::c_void,
19 pub msg_namelen: ::socklen_t,
20 pub msg_iov: *mut ::iovec,
21 pub msg_iovlen: ::c_int,
22 pub msg_control: *mut ::c_void,
23 pub msg_controllen: ::socklen_t,
24 pub msg_flags: ::c_int,
25 }
26
8bb4bdeb
XL
27 pub struct cmsghdr {
28 pub cmsg_len: ::socklen_t,
29 pub cmsg_level: ::c_int,
30 pub cmsg_type: ::c_int,
31 }
32
476ff2be
SL
33 pub struct sem_t {
34 __val: [::c_int; 4],
35 }
36}
37
38pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 32;
39pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 24;
40
41cfg_if! {
42 if #[cfg(any(target_arch = "x86"))] {
43 mod x86;
44 pub use self::x86::*;
45 } else if #[cfg(any(target_arch = "mips"))] {
46 mod mips;
47 pub use self::mips::*;
48 } else if #[cfg(any(target_arch = "arm"))] {
49 mod arm;
50 pub use self::arm::*;
b7449926
XL
51 } else if #[cfg(any(target_arch = "powerpc"))] {
52 mod powerpc;
53 pub use self::powerpc::*;
e1599b0c
XL
54 } else if #[cfg(any(target_arch = "hexagon"))] {
55 mod hexagon;
56 pub use self::hexagon::*;
476ff2be
SL
57 } else {
58 // Unknown target_arch
59 }
60}