Guardian Programming Reference Summary for pTAL and TAL

Procedure Calls Summary (A-C)
Guardian Programming Reference Summary for pTAL and TAL522631-001
4-12
BINSEM_LOCK_
Locks a binary semaphore.
BINSEM_OPEN_
Opens a binary semaphore.
status := BINSEM_LOCK_ ( semid
,timeout );
status, INT returned value
0 No error. The binary semaphore becomes locked.
4011 Operation timed out. The time-out value was reached before the binary
semaphore could be locked. The corresponding OSS errno value is EAGAIN.
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 was forsaken before the procedure call, and it
is now locked. The corresponding OSS errno value is EDEADLK.
semid, INT(32):value input
timeout, INT(32):value input
error := BINSEM_OPEN_ ( semid
,processhandle
,proc-semid );
error, INT returned value
0 No error.
22 Bounds error. The semid parameter cannot be written by the calling process, or
the processhandle parameter 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 processhandle parameters do not identify
a binary semaphore in the processor. The corresponding OSS errno value is
ENOENT.