01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SEMOP (2) SEMOP (2)<br />

Operation permission is denied to the calling process (see<br />

intro(2)). IEACCES]<br />

The operation would result in suspension of the calling<br />

process but (sem_flg & IPC_NO\VAIT) is "true".<br />

lEA GAIN]<br />

The limit on the number of individual processes requesting<br />

an SEM_UNDO would be exceeded. IENOSPC]<br />

The number of individual semaphores for which the calling<br />

process requests a SEM_UNDO would exceed the<br />

limit. IEINV AL]<br />

An operation would cause a semval to overflow the system<br />

imposed limit. IERANGE]<br />

An operation would cause a semadj value to overflow the<br />

system imposed limit. IERANGE]<br />

Sops points to an illegal address. IEFAULT]<br />

Upon successful completion, the value of sempid for each semaphore<br />

specified in the array pointed to by sops is set equal to the<br />

process ID of the calling process.<br />

RETURN VALUE<br />

If semop returns due to the receipt of a signal, a value of -1 is<br />

returned to the calling process and errno is set to EINTR. If it<br />

returns due to the removal of a semid from the system, a value of<br />

-1 is returned and errno is set to EIDRM.<br />

Upon successful completion, the value of semval at the time of the<br />

call for the last operation in the array pointed to by sops is<br />

returned. Otherwise, a value of -1 is returned and errno is set to<br />

indicate the error.<br />

SEE ALSO<br />

exec(2), exit(2), fork(2), semct1(2), semget(2), stdipc(3C).<br />

- 3-

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!