Guardian Procedure Calls Reference Manual
BINSEM_CLOSE_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Returned Value
Considerations
Example
Related Programming Manuals
Summary
The BINSEM_CLOSE_ procedure closes access to a binary semaphore.
Syntax for C Programmers
#include <cextdecs(BINSEM_CLOSE_)>
short BINSEM_CLOSE_ ( __int32_t semid );
Syntax for TAL Programmers
error := BINSEM_CLOSE_ ( semid ); ! i
Parameters
semid
input
INT (32):value
specifies a binary semaphore ID.
Returned Value
INT
Outcome of the call:
No error.0
Required parameter missing. The semid parameter must be specified.29
Invalid parameter. The semid parameter does not identify a binary semaphore that is opened by the calling
process. The corresponding errno value is ENOENT.
4022
Deadlock. The binary semaphore specified by semid cannot be closed because it is locked by the calling
process. The corresponding errno value is EDEADLK.
4045
86 Guardian Procedure Calls (A-B)