blob: cb3516a6371c11865e97fd13cf2d1896736b209e (
plain)
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
|
#ifndef _SYS_SEM_H
#define _SYS_SEM_H
#include <bits/ansi/time_t.h>
#include <sys/ipc.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
#define GETALL 13
#define SETVAL 16
#define SETALL 17
#define SEM_UNDO 0x1000
struct sembuf {
unsigned short int sem_num;
short int sem_op;
short int sem_flg;
};
struct semid_ds {
struct ipc_perm sem_perm;
time_t sem_otime;
time_t sem_ctime;
unsigned long sem_nsems;
};
#ifndef __MLIBC_ABI_ONLY
int semget(key_t, int, int);
int semop(int, struct sembuf *, size_t);
int semctl(int, int, int, ...);
#endif /* !__MLIBC_ABI_ONLY */
#ifdef __cplusplus
}
#endif
#endif // _SYS_SEM_H
|