Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (A-B)
Guardian Procedure Calls Reference Manual—522629-013
2-55
BINSEM_CLOSE_ Procedure
BINSEM_CLOSE_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Considerations
Example
Related Programming Manuals
Summary
The BINSEM_CLOSE_ procedure closes access to 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.
29 Required parameter missing. The 
semid  parameter must be specified.
4022 Invalid parameter. The 
semid  parameter does not identify a binary 
semaphore that is opened by the calling process. The corresponding 
errno value is ENOENT. 
4045 Deadlock. The binary semaphore specified by 
semid cannot be closed 
because it is locked by the calling process. The corresponding 
errno 
value is 
EDEADLK. 
semid  input
INT (32):value
specifies a binary semaphore ID.
#include <cextdecs(BINSEM_CLOSE_)>
short BINSEM_CLOSE_ ( __int32_t semid );
error := BINSEM_CLOSE_ ( semid ); ! i










