Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (A-B)
Guardian Procedure Calls Reference Manual—522629-013
2-57
BINSEM_CREATE_ Procedure
BINSEM_CREATE_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
General Considerations for Binary Semaphores
Considerations
Example
Related Programming Manuals
Summary
The BINSEM_CREATE_ procedure creates, opens, and locks 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 to by the calling
process.
29 Required parameter missing. The
semid and security parameters
must be specified.
4022 Invalid parameter. The
security parameter is not a valid value.
Specifying an invalid value for
security could cause unpredictable
results in future RVUs. The corresponding
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
#include <cextdecs(BINSEM_CREATE_)>
short BINSEM_CREATE_ ( __int32_t *semid
,short security );
error := BINSEM_CREATE_ ( semid ! o
,security ); ! i