1#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008
2constant SEM_UNDO
3
4constant GETNCNT
5constant GETPID
6constant GETVAL
7constant GETALL
8constant GETZCNT
9constant SETVAL
10constant SETALL
11
12type {struct semid_ds}
13
14element {struct semid_ds} {struct ipc_perm} sem_perm
15// Bug 18232: wrong type for sem_nsems member.
16xfail-element {struct semid_ds} {unsigned short int} sem_nsems
17element {struct semid_ds} time_t sem_otime
18element {struct semid_ds} time_t sem_ctime
19
20type pid_t
21type time_t
22type key_t
23type size_t
24
25type {struct sembuf}
26
27element {struct sembuf} {unsigned short int} sem_num
28element {struct sembuf} {short int} sem_op
29element {struct sembuf} {short int} sem_flg
30
31function int semctl (int, int, int, ...)
32function int semget (key_t, int, int)
33function int semop (int, struct sembuf*, size_t)
34
35allow-header sys/ipc.h
36
37allow sem*
38allow SEM_*
39allow *_t
40#endif
41