Definition in file SimpleSemSysV.c.
Go to the source code of this file.
Functions | |
SimpleSem * | SimpleSemOpen (const char *name) |
bool | SimpleSemPost (struct SimpleSem *sem) |
bool | SimpleSemWait (struct SimpleSem *sem) |
bool | SimpleSemClose (struct SimpleSem *sem) |
bool | SimpleSemRemove (const char *name) |
|
Definition at line 117 of file SimpleSemSysV.c. Referenced by main(), process1(), and process2(). |
|
Definition at line 25 of file SimpleSemSysV.c. References close(), EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FAIL, ec_neg1, ec_null, errno, ftok(), open(), PERM_FILE, sembuf::sem_flg, sembuf::sem_num, sembuf::sem_op, semid_ds::sem_otime, semctl(), semget(), semop(), SimpleSemOpen(), sleep(), SimpleSem::sm, and val. Referenced by main(), process1(), process2(), and SimpleSemOpen(). |
|
Definition at line 87 of file SimpleSemSysV.c. References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_neg1, sembuf::sem_flg, sembuf::sem_num, sembuf::sem_op, semop(), and SimpleSem::sm. Referenced by main(), process1(), process2(), and store(). |
|
Definition at line 123 of file SimpleSemSysV.c. References EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FAIL, ec_neg1, errno, ftok(), PERM_FILE, semctl(), and semget(). Referenced by main(). |
|
Definition at line 102 of file SimpleSemSysV.c. References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_neg1, sembuf::sem_flg, sembuf::sem_num, sembuf::sem_op, semop(), and SimpleSem::sm. Referenced by main(), process2(), and store(). |