|
34 | 34 | __pad2: c_ulong,
|
35 | 35 | }
|
36 | 36 |
|
| 37 | + pub struct semid_ds { |
| 38 | + pub sem_perm: crate::ipc_perm, |
| 39 | + pub sem_otime: crate::time_t, |
| 40 | + pub sem_ctime: crate::time_t, |
| 41 | + #[cfg(any( |
| 42 | + target_arch = "aarch64", |
| 43 | + target_arch = "loongarch64", |
| 44 | + target_arch = "mips64", |
| 45 | + target_arch = "mips64r6", |
| 46 | + target_arch = "powerpc64", |
| 47 | + target_arch = "riscv64", |
| 48 | + target_arch = "sparc64", |
| 49 | + target_arch = "s390x", |
| 50 | + ))] |
| 51 | + __sem_nsems_pad: crate::c_char, |
| 52 | + #[cfg(any( |
| 53 | + target_arch = "aarch64", |
| 54 | + target_arch = "loongarch64", |
| 55 | + target_arch = "mips64", |
| 56 | + target_arch = "mips64r6", |
| 57 | + target_arch = "powerpc64", |
| 58 | + target_arch = "riscv64", |
| 59 | + target_arch = "sparc64", |
| 60 | + target_arch = "s390x", |
| 61 | + ))] |
| 62 | + pub sem_nsems: crate::c_ushort, |
| 63 | + #[cfg(not(any( |
| 64 | + target_arch = "aarch64", |
| 65 | + target_arch = "loongarch64", |
| 66 | + target_arch = "mips64", |
| 67 | + target_arch = "mips64r6", |
| 68 | + target_arch = "powerpc64", |
| 69 | + target_arch = "riscv64", |
| 70 | + target_arch = "sparc64", |
| 71 | + target_arch = "s390x", |
| 72 | + )))] |
| 73 | + __sem_nsems_pad: crate::c_char, |
| 74 | + #[cfg(not(any( |
| 75 | + target_arch = "aarch64", |
| 76 | + target_arch = "loongarch64", |
| 77 | + target_arch = "mips64", |
| 78 | + target_arch = "mips64r6", |
| 79 | + target_arch = "powerpc64", |
| 80 | + target_arch = "riscv64", |
| 81 | + target_arch = "sparc64", |
| 82 | + target_arch = "s390x", |
| 83 | + )))] |
| 84 | + pub sem_nsems: crate::c_ushort, |
| 85 | + __unused3: crate::c_ulong, |
| 86 | + __unused4: crate::c_ulong, |
| 87 | + } |
| 88 | + |
37 | 89 | pub struct msqid_ds {
|
38 | 90 | pub msg_perm: crate::ipc_perm,
|
39 | 91 | pub msg_stime: crate::time_t,
|
|
0 commit comments