Query: msem_remove
OS: osf1
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
msem_remove(3) Library Functions Manual msem_remove(3)NAMEmsem_remove - Removes a semaphoreLIBRARYStandard C Library (libc.a)SYNOPSIS#include <sys/mman.h> int msem_remove ( msemaphore *sem );PARAMETERSPoints to an msemaphore structure which specifies the semaphore to be removed.DESCRIPTIONThe msem_remove() function removes a binary semaphore. Any subsequent use of the msemaphore structure before it is again initialized by calling the msem_init() function will have undefined results. The msem_remove() function also causes any process waiting in the msem_lock() function on the removed semaphore to return with an error. If the msemaphore structure contains any value not resulting from a call to the msem_init() function followed by a (possibly empty) sequence of calls to the msem_lock() and msem_unlock() functions, the result is undefined. The address of an msemaphore structure may be significant. If the msemaphore structure contains any value copied from an msemaphore structure at a different address, the result is undefined.NOTESTrial useRETURN VALUESOn successful completion, the msem_remove() function returns 0 (zero). On error, the msem_remove() function returns -1 and sets errno to indicate the error.ERRORSIf the msem_remove() function fails, errno may be set to the following value: The sem parameter points to an msemaphore structure which specifies a semaphore which has been removed.RELATED INFORMATIONFunctions: msem_init(3), msem_lock(3), msem_unlock(3), munmap(2) delim off msem_remove(3)
Related Man Pages |
---|
sem_close(3c) - opensolaris |
msem_init(2) - hpux |
msem_lock(2) - hpux |
msem_lock(3) - osf1 |
msem_unlock(3) - osf1 |
Similar Topics in the Unix Linux Community |
---|
Day 5 of the SCO v. Novell Trial and Some Help for Journalists Covering the Trial - Updated |