операции управления семафором System V (System V semaphore control operations)
Ошибки (Error)
EACCES
The argument cmd has one of the values GETALL
, GETPID
,
GETVAL
, GETNCNT
, GETZCNT
, IPC_STAT
, SEM_STAT
,
SEM_STAT_ANY
, SETALL
, or SETVAL
and the calling process
does not have the required permissions on the semaphore
set and does not have the CAP_IPC_OWNER
capability in the
user namespace that governs its IPC namespace.
EFAULT
The address pointed to by arg.buf or arg.array isn't
accessible.
EIDRM
The semaphore set was removed.
EINVAL
Invalid value for cmd or semid. Or: for a SEM_STAT
operation, the index value specified in semid referred to
an array slot that is currently unused.
EPERM
The argument cmd has the value IPC_SET
or IPC_RMID
but the
effective user ID of the calling process is not the
creator (as found in sem_perm.cuid) or the owner (as found
in sem_perm.uid) of the semaphore set, and the process
does not have the CAP_SYS_ADMIN
capability.
ERANGE
The argument cmd has the value SETALL
or SETVAL
and the
value to which semval
is to be set (for some semaphore of
the set) is less than 0 or greater than the implementation
limit SEMVMX
.