Guardian Programming Reference Summary for C
Functions Summary (A-C)
Guardian Programming Reference Summary for C—522630-001
4-7
BINSEM_CLOSE_ 
Closes access to a binary semaphore.
return value:
BINSEM_CREATE_ 
Creates, opens, and locks a binary semaphore.
return value:
#include <cextdecs(BINSEM_CLOSE_)>
short BINSEM_CLOSE_ ( long semid ); /* i */
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 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. 
#include <cextdecs(BINSEM_CREATE_)>
short BINSEM_CREATE_ ( long *semid /* o */
 ,short security ); /* i */
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.
4022 = Invalid parameter. The value of security is not a valid value.  Specifying 
an invalid value for security could cause unpredictable results in future 
releases. The corresponding OSS errno value is EINVAL.  
4024 = Process cannot open the binary semaphore. The process has reached the 
maximum number of binary semaphores it can open, or the process file 
segment (PFS) has reached the maximum limit of available space. The 
corresponding OSS errno value is EMFILE. 
4028 = No space. The processor has reached the maximum limit of space available 
for binary semaphores. The corresponding OSS errno value is ENOSPC. 










