|
|
#include <semaphore.h>
The symbol SEM_FAILED is defined (see sem_open(3pthread)).
The following are declared as functions and may also be declared as macros.
int sem_close(sem_t *); int sem_destroy(sem_t *); int sem_getvalue(sem_t *, int *); int sem_init(sem_t *, int, unsigned int); sem_t *sem_open(const char *, int, ...); int sem_post(sem_t *); int sem_trywait(sem_t *); int sem_unlink(const char *); int sem_wait(sem_t *);
Inclusion of the semaphore.h header may make visible symbols defined in the headers fcntl.h and sys/types.h.