sem_destroy - destroy an unnamed semaphore
Library Synopsis Description Return Values Errors See Also Standards
.In semaphore.h int sem_destroy "sem_t *sem"
The sem_destroy function destroys the unnamed semaphore pointed to by sem. After a successful call to sem_destroy, sem is unusable until re-initialized by another call to sem_init(3).
.Rv -std sem_destroy
The sem_destroy function will fail if: