Section: Linux Programmer's Manual (3)
Return to Main Contents
sem_close - close a named semaphore
int sem_close(sem_t *sem);
Link with -pthread.
closes the named semaphore referred to by
allowing any resources that the system has allocated to
the calling process for this semaphore to be freed.
returns 0; on error, -1 is returned, with
set to indicate the error.
is not a valid semaphore.
All open named semaphores are automatically closed on process
termination, or upon
This page is part of release 3.54 of the Linux
A description of the project,
and information about reporting bugs,
can be found at
- RETURN VALUE
- CONFORMING TO
- SEE ALSO
This document was created by
using the manual pages.
Time: 02:03:25 GMT, January 18, 2018