Guardian Programming Reference Summary for pTAL and TAL
Procedure Calls Summary (A-C)
Guardian Programming Reference Summary for pTAL and TAL—522631-001
4-10
BINSEM_CLOSE_ 
Closes access to a binary semaphore.
BINSEM_CREATE_ 
Creates, opens, and locks a binary semaphore.
error := BINSEM_CLOSE_ ( semid );
error, INT returned value
0No 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 OSS errno value is 
EINVAL. 
4045 Deadlock. The binary semaphore specified by semid cannot be closed because 
it is locked by the calling process. The corresponding OSS errno value is 
EDEADLK. 
semid, INT(32):value input
error := BINSEM_CREATE_ ( semid
 ,security );
error, INT returned value
0 No error. 
22 Bounds error. The semid parameter cannot be written to by the calling 
process.
29 Required parameter missing. The semid and security parameters must be 
specified.










