semop.2 (2010 09)

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 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 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, 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: September 2010 3 Hewlett-Packard Company 3