 |
» |
|
|
|
Macros |  |
- SEM_UNDO
Set up adjust on exit entry
- GETNCNT
Get semncnt
- GETPID
Get sempid
- GETVAL
Get semval
- GETALL
Get all semvals
- GETZCNT
Get semzcnt
- SETVAL
Set semval
- SETALL
Set all semvals
Functions |  |
If __STDC__ is defined:
extern int semctl( int, int, int, union semun );
extern int semget( key_t, int, int );
extern int semop ( int, struct sembuf *, unsigned int );
|
If __STDC__ is not defined:
extern int semctl( );
extern int semget( );
extern int semop ( );
|
Structures |  |
Semaphore set id data structure:
struct semid_ds {
struct ipc_perm sem_perm; /* operation permission struct */
void *sem_base; /* not used on MPE/iX */
int sem_nsems; /* # of semaphores in set */
time_t sem_otime; /* last semop time */
time_t sem_ctime; /* last change time */
};
|
Semaphore semop array element template structure:
struct sembuf {
int sem_num; /* semaphore # */
int sem_op; /* semaphore operation */
long sem_flg; /* operation flags */
};
|
|