Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (A-B)
Guardian Procedure Calls Reference Manual—522629-013
2-67
BINSEM_OPEN_ Procedure
BINSEM_OPEN_ Procedure 
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Considerations
Example
Related Programming Manuals
Summary
The BINSEM_OPEN_ procedure opens 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.
22 Bounds error. 
The semid parameter cannot be written by the calling 
process
 or processhandle cannot be read from the calling process.
29 Required parameter missing. The 
semid, processhandle, and 
proc-semid parameters must be specified.
4002 No entry. The 
proc-semid and processhandl parameters e do 
not identify a binary semaphore in the processor. The corresponding 
errno value is ENOENT.
4013 Invalid access. The calling process does not have access to the binary 
semaphore because of its security. The security for a binary semaphore is 
#include <cextdecs(BINSEM_OPEN_)>
short BINSEM_OPEN_ ( __int32_t *semid 
  ,short *processhandle 
  ,__int32_t proc-semid );
error := BINSEM_OPEN_ ( semid ! o
 ,processhandle ! i
 ,proc-semid ); ! i










