HP-UX Reference (11i v3 07/02) - 2 System Calls (vol 5)
s
semop(2) semop(2)
[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 semaphore value 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 implementa-
tion 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, each semaphore specified in the array pointed to sops will be updated to record
the current time as the last operation time and the process ID of the calling process as the last to have
modified that semaphore.
SEE ALSO
ipcs(1), exec(2), exit(2), fork(2), semctl(2), semget(2), stdipc(3C), privileges(5), signal(5).
STANDARDS CONFORMANCE
semop(): SVID2, SVID3, XPG2, XPG3, XPG4
HP-UX 11i Version 3: February 2007 − 3 − Hewlett-Packard Company 375