man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: July 2014
 
 

Please tell us how to improve our documentation:


0 of 500

0 of 500



0 of 500
Thank you for your feedback! If you want to participate in content improvement and share additional information, please click Feedback button.
Rate this document:

semaphore(3HEAD)

Name

semaphore.h, semaphore - semaphores

Synopsis

#include <semaphore.h>

Description

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).

Attributes

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

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
Standard

See also

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