aboutsummaryrefslogtreecommitdiffstats
path: root/man2/msgctl.2
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2020-02-25 16:29:19 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2020-02-25 16:53:25 +0100
commita63243b9e2ae4c704b3a781bc35a802be41d7dd9 (patch)
treeb75ce90d4a410b796172e3de1081f8b9e560fef8 /man2/msgctl.2
parentcce90cf33ae6094832725c40c649b7dd0dcdf0d1 (diff)
downloadman-pages-a63243b9e2ae4c704b3a781bc35a802be41d7dd9.tar.gz
msgctl.2: Add information on permission bits (based on sysvipc(7) text)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man2/msgctl.2')
-rw-r--r--man2/msgctl.218
1 files changed, 18 insertions, 0 deletions
diff --git a/man2/msgctl.2 b/man2/msgctl.2
index ac59ff8627..753f68acaf 100644
--- a/man2/msgctl.2
+++ b/man2/msgctl.2
@@ -139,6 +139,24 @@ struct ipc_perm {
.EE
.in
.PP
+The least significant 9 bits of the
+.I mode
+field of the
+.I ipc_perm
+structure define the access permissions for the message queue.
+The permission bits are as follows:
+.TS
+l l.
+0400 Read by user
+0200 Write by user
+0040 Read by group
+0020 Write by group
+0004 Read by others
+0002 Write by others
+.TE
+.PP
+Bits 0100, 0010, and 0001 (the execute bits) are unused by the system.
+.PP
Valid values for
.I cmd
are: