Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
.I msqid_ds
structure as for
.BR MSG_STAT .
-However, the
+However,
.I msg_perm.mode
is not checked for read access for
-.IR msqid ,
-resembing the behaviour of
-.IR /proc/sysvipc/msg .
+.IR msqid
+meaning that any user can employ this operation (just as any user may read
+.IR /proc/sysvipc/msg
+to obtain the same information).
.SH RETURN VALUE
On success,
.BR IPC_STAT ,
.I seminfo
structure containing the same information as for
.BR SEM_STAT .
-However, the
+However,
.I sem_perm.mode
is not checked for read access for
-.IR semid ,
-resembing the behaviour of
-.IR /proc/sysvipc/sem .
+.IR semid
+meaning that any user can employ this operation (just as any user may read
+.IR /proc/sysvipc/sem
+to obtain the same information).
.TP
.B GETALL
Return
.I shmid_ds
structure as for
.BR SHM_STAT .
-However, the
+However,
.I shm_perm.mode
is not checked for read access for
.IR shmid ,
-resembing the behaviour of
-.IR /proc/sysvipc/shm .
+meaning that any user can employ this operation (just as any user may read
+.IR /proc/sysvipc/shm
+to obtain the same information).
.PP
The caller can prevent or allow swapping of a shared
memory segment with the following \fIcmd\fP values: