SEMAPHORE.H(3HEAD) Headers SEMAPHORE.H(3HEAD)

semaphore.h, semaphore - semaphores

#include <semaphore.h>

The <semaphore.h> header defines the sem_t type, used in performing semaphore operations. The semaphore can be implemented using a file descriptor, in which case applications are able to open up at least a total of {OPEN_MAX} files and semaphores. The symbol SEM_FAILED is defined (see sem_open(3C)).

Inclusion of the <semaphore.h> header can make visible symbols defined in the headers <fcntl.h> and <sys/types.h>. See fcntl.h(3HEAD) and types.h(3HEAD).

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
Interface Stability Committed
Standard See standards(7).

sem_destroy(3C), sem_getvalue(3C), sem_init(3C), sem_open(3C), sem_post(3C), sem_timedwait(3C), sem_unlink(3C), sem_wait(3C), fcntl.h(3HEAD), types.h(3HEAD), attributes(7), standards(7)

February 5, 2008 OmniOS