1#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008
2constant SHM_RDONLY
3symbol SHMLBA
4constant SHM_RND
5
6type shmatt_t
7
8type {struct shmid_ds}
9
10element {struct shmid_ds} {struct ipc_perm} shm_perm
11element {struct shmid_ds} size_t shm_segsz
12// Bug 23085: shm_lpid/shm_cpid have type unsigned short instead of pid_t
13xfail[i386-gnu]-element {struct shmid_ds} pid_t shm_lpid
14xfail[i386-gnu]-element {struct shmid_ds} pid_t shm_cpid
15element {struct shmid_ds} shmatt_t shm_nattch
16element {struct shmid_ds} time_t shm_atime
17element {struct shmid_ds} time_t shm_dtime
18element {struct shmid_ds} time_t shm_ctime
19
20type pid_t
21type time_t
22type key_t
23type size_t
24
25function {void*} shmat (int, const void*, int)
26function int shmctl (int, int, struct shmid_ds*)
27function int shmdt (const void*)
28function int shmget (key_t, size_t, int)
29
30allow-header sys/ipc.h
31
32allow shm*
33allow SHM*
34allow *_t
35#endif
36