5
# include <sys/types.h>
16
int val; /* value for SETVAL */
17
struct semid_ds *buf; /* buffer for IPC_STAT, IPC_SET */
18
unsigned short int *array; /* array for GETALL, SETALL */
19
struct seminfo *__buf; /* buffer for IPC_INFO */
23
/* how many semaphores are available ? */
32
/* on HPUX 10.2 SEMMSL is much bigger than realistically we can allocate */
38
extern struct sembuf sops;
39
extern int semaphoreID;
45
#define P_semaphore(s) \
48
sops.sem_op = _P_code;\
50
semop(semaphoreID,&sops,1);\
52
#define V_semaphore(s) \
55
sops.sem_op = _V_code;\
57
semop(semaphoreID,&sops,1);\
60
typedef int lockset_t;