1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
use super::ipcbuf::*;
use super::types::*;
#[cfg(target_pointer_width = "64")]
#[repr(C)]
pub struct shmid64_ds_t {
pub shm_perm: ipc64_perm_t,
pub shm_segsz: size_t,
pub shm_atime: time_t,
pub shm_dtime: time_t,
pub shm_ctime: time_t,
pub shm_cpid: pid_t,
pub shm_lpid: pid_t,
pub shm_nattch: usize,
unused4: usize,
unused5: usize,
}
#[cfg(target_pointer_width = "32")]
#[repr(C)]
pub struct shmid64_ds_t {
pub shm_perm: ipc64_perm_t,
pub shm_segsz: size_t,
pub shm_atime: usize,
pub shm_atime_high: usize,
pub shm_dtime: usize,
pub shm_dtime_high: usize,
pub shm_ctime: usize,
pub shm_ctime_high: usize,
pub shm_cpid: pid_t,
pub shm_lpid: pid_t,
pub shm_nattch: usize,
unused4: usize,
unused5: usize,
}
#[repr(C)]
pub struct shminfo64_t {
pub shmmax: usize,
pub shmmin: usize,
pub shmmni: usize,
pub shmseg: usize,
pub shmall: usize,
unused1: usize,
unused2: usize,
unused3: usize,
unused4: usize,
}