Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (A-B)
Guardian Procedure Calls Reference Manual—522629-013
2-70
BINSEM_UNLOCK_ Procedure
BINSEM_UNLOCK_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Considerations
Example
Related Programming Manuals
Summary
The BINSEM_UNLOCK_ procedure unlocks a binary semaphore.
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
error returned value
INT
indicates the outcome of the call:
0 No error.
4001 Cannot unlock. The
semid parameter is not locked by the calling
process. The corresponding
errno value is EPERM.
4022 Invalid parameter. The
semid parameter does not identify a binary
semaphore that is opened by the calling process. The corresponding
errno value is EINVAL.
semid input
INT (32):value
specifies a binary semaphore ID.
#include <cextdecs(BINSEM_UNLOCK_)>
short BINSEM_UNLOCK_ ( __int32_t semid );
error := BINSEM_UNLOCK_ ( semid ); ! i