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 is not checked for read access for
.IR msqid , .IR msqid ,
resembing the behaviour of resembing the behaviour of
/proc/sysvipc/msg. .IR /proc/sysvipc/msg .
.PP
.SH RETURN VALUE .SH RETURN VALUE
On success, On success,
.BR IPC_STAT , .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 kernel's internal array recording information about all
message queues. message queues.
(This information can be used with repeated (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.) operations to obtain information about all queues on the system.)
A successful 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 operation returns the identifier of the queue whose index was given in
.IR msqid . .IR msqid .
.PP .PP

View File

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

View File

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