sem_close2
Close a named semaphore
Usage
#include <semaphore.h>
int
sem_close(sem_t *sem);
Overview
The system resources associated with the named semaphore referenced by sem are deallocated and the descriptor is invalidated.
If successful, sem_close() will return 0. Otherwise, -1 is returned and errno is set.
Errors
sem_close() succeeds unless:
- [EINVAL]
-
sem is not a valid semaphore descriptor.
Releases
161 releases since Mac OS X 10.0; the text changed 3 times.