Unix and Linux Discussions Tagged with undefined |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
3 |
22,697 |
Shell Programming and Scripting |
|
|
|
6 |
20,208 |
Programming |
|
|
|
4 |
5,869 |
Shell Programming and Scripting |
|
|
|
2 |
3,841 |
Programming |
|
|
|
0 |
6,107 |
AIX |
|
|
|
4 |
17,478 |
Programming |
|
|
|
6 |
19,627 |
Shell Programming and Scripting |
|
|
|
1 |
2,907 |
Shell Programming and Scripting |
|
|
|
0 |
6,213 |
Programming |
|
|
|
2 |
5,105 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
3,780 |
Programming |
|
|
|
3 |
5,400 |
Programming |
|
|
|
2 |
6,299 |
UNIX for Dummies Questions & Answers |
msem_remove(2) System Calls Manual msem_remove(2)
NAME
msem_remove - remove a semaphore in mapped file or anonymous region
SYNOPSIS
DESCRIPTION
removes a binary semaphore.
sem points to an structure that specifies the semaphore to be removed. Any subsequent use of the structure before it is again initialized
by calling produces undefined results.
also causes any process waiting in the function on the removed semaphore to return with an error.
If the structure contains any value not resulting from a call to followed by a (possibly empty) sequence of calls to and the results are
undefined. The address of an uniquely identifies the semaphore. If the structure contains any value copied from a structure at a differ-
ent address, the result is undefined.
RETURN VALUE
Upon success, returns zero; otherwise, it returns -1 and sets to indicate the error.
ERRORS
fails if any of the following conditions are encountered:
[EINVAL] sem points to an structure that has been removed.
[EFAULT] sem is an invalid pointer.
AUTHOR
was developed by HP and OSF.
SEE ALSO
msem_init(2), msem_lock(2), msem_remove(2), mman(5).
STANDARDS CONFORMANCE
msem_remove(2)