msgctl.2, semctl.2, shmctl.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2018-11-04 17:17:07 +01:00
parent d2ff4f8619
commit 14cbb25e36
3 changed files with 19 additions and 9 deletions

View File

@ -238,8 +238,7 @@ However, the
is not checked for read access for
.IR msqid ,
resembing the behaviour of
/proc/sysvipc/msg.
.PP
.IR /proc/sysvipc/msg .
.SH RETURN VALUE
On success,
.BR IPC_STAT ,
@ -255,10 +254,14 @@ operation returns the index of the highest used entry in the
kernel's internal array recording information about all
message queues.
(This information can be used with repeated
.B MSG_STAT or MSG_STAT_ANY
.B MSG_STAT
or
.B MSG_STAT_ANY
operations to obtain information about all queues on the system.)
A successful
.B MSG_STAT or MSG_STAT_ANY
.B MSG_STAT
or
.B MSG_STAT_ANY
operation returns the identifier of the queue whose index was given in
.IR msqid .
.PP

View File

@ -251,7 +251,8 @@ However, the
is not checked for read access for
.IR semid ,
resembing the behaviour of
/proc/sysvipc/sem.
.IR /proc/sysvipc/sem .
.TP
.B GETALL
Return
.B semval
@ -379,7 +380,9 @@ the index of the highest used entry in the
kernel's internal array recording information about all
semaphore sets.
(This information can be used with repeated
.B SEM_STAT or SEM_STAT_ANY
.B SEM_STAT
or
.B SEM_STAT_ANY
operations to obtain information about all semaphore sets on the system.)
.TP
.B SEM_INFO

View File

@ -254,7 +254,7 @@ However, the
is not checked for read access for
.IR shmid ,
resembing the behaviour of
/proc/sysvipc/shm.
.IR /proc/sysvipc/shm .
.PP
The caller can prevent or allow swapping of a shared
memory segment with the following \fIcmd\fP values:
@ -300,7 +300,9 @@ operation returns the index of the highest used entry in the
kernel's internal array recording information about all
shared memory segments.
(This information can be used with repeated
.B SHM_STAT or SHM_STAT_ANY
.B SHM_STAT
or
.B SHM_STAT_ANY
operations to obtain information about all shared memory segments
on the system.)
A successful
@ -341,7 +343,9 @@ isn't accessible.
\fIshmid\fP is not a valid identifier, or \fIcmd\fP
is not a valid command.
Or: for a
.B SHM_STAT or SHM_STAT_ANY
.B SHM_STAT
or
.B SHM_STAT_ANY
operation, the index value specified in
.I shmid
referred to an array slot that is currently unused.