]> git.proxmox.com Git - rustc.git/blame - vendor/libc/src/unix/linux_like/linux/musl/b32/mod.rs
Merge 1.70 into proxmox/bookworm
[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;
2b03887a 6pub type __s64 = ::c_longlong;
ba9703b0 7pub type regoff_t = ::c_int;
476ff2be
SL
8
9s! {
10 pub struct pthread_attr_t {
11 __size: [u32; 9]
12 }
13
14 pub struct sigset_t {
15 __val: [::c_ulong; 32],
16 }
17
18 pub struct msghdr {
19 pub msg_name: *mut ::c_void,
20 pub msg_namelen: ::socklen_t,
21 pub msg_iov: *mut ::iovec,
22 pub msg_iovlen: ::c_int,
23 pub msg_control: *mut ::c_void,
24 pub msg_controllen: ::socklen_t,
25 pub msg_flags: ::c_int,
26 }
27
8bb4bdeb
XL
28 pub struct cmsghdr {
29 pub cmsg_len: ::socklen_t,
30 pub cmsg_level: ::c_int,
31 pub cmsg_type: ::c_int,
32 }
33
476ff2be
SL
34 pub struct sem_t {
35 __val: [::c_int; 4],
36 }
37}
38
39pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 32;
40pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 24;
353b0b11 41pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 20;
476ff2be
SL
42
43cfg_if! {
44 if #[cfg(any(target_arch = "x86"))] {
45 mod x86;
46 pub use self::x86::*;
47 } else if #[cfg(any(target_arch = "mips"))] {
48 mod mips;
49 pub use self::mips::*;
50 } else if #[cfg(any(target_arch = "arm"))] {
51 mod arm;
52 pub use self::arm::*;
b7449926
XL
53 } else if #[cfg(any(target_arch = "powerpc"))] {
54 mod powerpc;
55 pub use self::powerpc::*;
e1599b0c
XL
56 } else if #[cfg(any(target_arch = "hexagon"))] {
57 mod hexagon;
58 pub use self::hexagon::*;
04454e1e
FG
59 } else if #[cfg(any(target_arch = "riscv32"))] {
60 mod riscv32;
61 pub use self::riscv32::*;
476ff2be
SL
62 } else {
63 // Unknown target_arch
64 }
65}