Perform semaphore operation.
Source position: ipc.pp line 882
function semop( |
semid: cint; |
sops: PSEMbuf; |
nsops: cuint |
):cint; |
semop performs a set of operations on a message queue. sops points to an array of type TSEMbuf. The array should contain nsops elements.
The fields of the TSEMbuf structure
TSEMbuf = record sem_num : word; sem_op : integer; sem_flg : integer;
should be filled as follows:
The function returns True if the operations were successful, False otherwise.
In case of error, False is returned, and IPCerror is set.
|
Return the ID of a semaphore set, possibly creating the set. |
|
|
Perform various control operations on a semaphore set. |