HP-UX Reference (11i v2 03/08) - 2 System Calls (vol 5)
s
semop(2) semop(2)
[EAGAIN] The operation would result in suspension of the calling process but (sem_flg &
IPC_NOWAIT) is ‘‘true’’.
[ENOSPC] The limit on the number of individual processes requesting an
SEM_UNDO would
be exceeded.
[EINVAL] The number of individual semaphores for which the calling process requests a
SEM_UNDO would exceed the limit.
[ERANGE] An operation would cause a semval to overflow the system-imposed limit.
[ERANGE] An operation would cause a semadj value to overflow the system-imposed limit.
[EFAULT] sops points to an illegal address. The reliable detection of this error will be imple-
mentation dependent.
semtimedop() fails if one or more of the following is true:
[EFAULT] The timeout argument points to an illegal address.
[EINVAL] The timeout argument has one or more invalid fields. For example, tv_sec or
tv_nsec is less than 0 or tv_nsec is greater than or equal to one billion.
[EAGAIN] The timeout expired before the semaphore operations could be completed.
Upon successful completion, the value of sempid for each semaphore specified in the array pointed to by
sops is set equal to the process ID of the calling process. The value of
sem_otime in the data structure
associated with the semaphore identifier will be set to the current time.
WARNINGS
Check all references to signal (5) for appropriateness on systems that support sigvector (2). sigvector (2)
can affect the behavior described on this page.
SEE ALSO
ipcs(1), exec(2), exit(2), fork(2), semctl(2), semget(2), stdipc(3C), signal(5).
STANDARDS CONFORMANCE
semop(): SVID2, SVID3, XPG2, XPG3, XPG4
HP-UX 11i Version 2: August 2003 − 3 − Hewlett-Packard Company Section 2−−309