using the semaphore, it can use sem_close (3) to close the semaphore. When ... sem_wait (3). SEE ALSO sem_close (3), sem_destroy (3), sem_getvalue (3), sempresent. The following functions are present: sem_close () sem_destroy () sem_getvalue () sem_init () sem