Query: sem_destroy
OS: osf1
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
sem_destroy(3) Library Functions Manual sem_destroy(3)NAMEsem_destroy - Destroys an unnamed semaphore (P1003.1b)LIBRARYRealtime Library (librt.so, librt.a)SYNOPSIS#include <semaphore.h> int sem_destroy ( sem_t *sem);PARAMETERSsem References the unnamed semaphore to be destroyed. Use the sem argument that was supplied to, and filled in by, the previous call to sem_init.DESCRIPTIONThe sem_destroy function destroys an unnamed semaphore indicated by sem. Only a semaphore created using sem_init may be destroyed using sem_destroy. The potential for deadlock exists if a process calls sem_destroy for a semaphore while there is a pending sem_wait, because a process may be waiting for a poster that has not yet opened the semaphore.RETURN VALUESOn successful completion, the function returns the value 0 (zero); otherwise, the function returns the value -1 and sets errno to indicate the error, without destroying the semaphore indicated by the sem argument.ERRORSThe sem_destroy function fails under the following condition: [EINVAL] The sem argument is not a valid semaphore.RELATED INFORMATIONFunctions: sem_init(3), sem_open(3) Guide to Realtime Programming delim off sem_destroy(3)
| Related Man Pages |
|---|
| sem_destroy(3c) - opensolaris |
| sem_destroy(3) - suse |
| sem_init(3) - osf1 |
| sem_destroy(3) - freebsd |
| sem_destroy(3) - osx |
| Similar Topics in the Unix Linux Community |
|---|
| Internal heap ERROR 17113 addr=0x0 |
| Not Realtime |
| semaphore memory |
| gobbledegook poster |
| Controller is not going into IF test |