Debian Codegraph @

debian/missing-sources/libc/src/unix/linux_like/linux/musl/b64/mod.rs

raw
1 use crate::prelude::*;
2
3 pub type regoff_t = c_long;
4
5 s! {
6 // MIPS implementation is special, see the subfolder.
7 #[cfg(not(target_arch = "mips64"))]
8 pub struct stack_t {
9 pub ss_sp: *mut c_void,
10 pub ss_flags: c_int,
11 pub ss_size: size_t,
12 }
13
14 pub struct pthread_attr_t {
15 __size: [u64; 7],
16 }
17
18 pub struct sigset_t {
19 __val: [c_ulong; 16],
20 }
21
22 // PowerPC implementation is special, see the subfolder.
23 #[cfg(not(target_arch = "powerpc64"))]
24 pub struct shmid_ds {
25 pub shm_perm: crate::ipc_perm,
26 pub shm_segsz: size_t,
27 pub shm_atime: crate::time_t,
28 pub shm_dtime: crate::time_t,
29 pub shm_ctime: crate::time_t,
30 pub shm_cpid: crate::pid_t,
31 pub shm_lpid: crate::pid_t,
32 pub shm_nattch: c_ulong,
33 __pad1: Padding<c_ulong>,
34 __pad2: Padding<c_ulong>,
35 }
36
37 pub struct msqid_ds {
38 pub msg_perm: crate::ipc_perm,
39 pub msg_stime: crate::time_t,
40 pub msg_rtime: crate::time_t,
41 pub msg_ctime: crate::time_t,
42 pub __msg_cbytes: c_ulong,
43 pub msg_qnum: crate::msgqnum_t,
44 pub msg_qbytes: crate::msglen_t,
45 pub msg_lspid: crate::pid_t,
46 pub msg_lrpid: crate::pid_t,
47 __pad1: Padding<c_ulong>,
48 __pad2: Padding<c_ulong>,
49 }
50
51 pub struct sem_t {
52 __val: [c_int; 8],
53 }
54 }
55
56 pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56;
57 pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40;
58 pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 32;
59
60 cfg_if! {
61 if #[cfg(target_arch = "aarch64")] {
62 mod aarch64;
63 pub use self::aarch64::*;
64 } else if #[cfg(target_arch = "mips64")] {
65 mod mips64;
66 pub use self::mips64::*;
67 } else if #[cfg(any(target_arch = "powerpc64"))] {
68 mod powerpc64;
69 pub use self::powerpc64::*;
70 } else if #[cfg(any(target_arch = "s390x"))] {
71 mod s390x;
72 pub use self::s390x::*;
73 } else if #[cfg(any(target_arch = "x86_64"))] {
74 mod x86_64;
75 pub use self::x86_64::*;
76 } else if #[cfg(any(target_arch = "riscv64"))] {
77 mod riscv64;
78 pub use self::riscv64::*;
79 } else if #[cfg(any(target_arch = "loongarch64"))] {
80 mod loongarch64;
81 pub use self::loongarch64::*;
82 } else if #[cfg(any(target_arch = "wasm32"))] {
83 mod wasm32;
84 pub use self::wasm32::*;
85 } else {
86 // Unknown target_arch
87 }
88 }