Guardian Procedure Calls Reference Manual
BINSEM_UNLOCK_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameter
Returned Value
Considerations
Example
Related Programming Manuals
Summary
The BINSEM_UNLOCK_ procedure unlocks a binary semaphore.
Syntax for C Programmers
#include <cextdecs(BINSEM_UNLOCK_)>
short BINSEM_UNLOCK_ ( __int32_t semid );
Syntax for TAL Programmers
error := BINSEM_UNLOCK_ ( semid ); ! i
Parameter
semid
input
INT (32):value
specifies a binary semaphore ID.
Returned Value
INT
Outcome of the call:
No error.0
Cannot unlock. The semid parameter is not locked by the calling process. The corresponding errno value
is EPERM.
4001
Invalid parameter. The semid parameter does not identify a binary semaphore that is opened by the calling
process. The corresponding errno value is EINVAL.
4022
BINSEM_UNLOCK_ Procedure 105