Guardian Procedure Calls Reference Manual
BINSEM_CREATE_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Returned Value
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
#include <cextdecs(BINSEM_CREATE_)>
short BINSEM_CREATE_ ( __int32_t *semid
,short security );
Syntax for TAL Programmers
error := BINSEM_CREATE_ ( semid ! o
,security ); ! i
Parameters
semid
output
INT (32) .EXT:ref:1
returns the binary semaphore ID that identifies the created binary semaphore locally in this
process.
security
input
INT:value
specifies the binary semaphore security. The security determines which processes on the same
processor can open the binary semaphore. Values are:
Any. Any process.0
Group. Any process with the same process access ID group as the binary semaphore’s owner, or a
process with the super ID (255,255).
1
Owner. Any process with the same process access ID (group and member) as the binary semaphore’s
owner, or a process with the super ID.
2
88 Guardian Procedure Calls (A-B)