From cce90cf33ae6094832725c40c649b7dd0dcdf0d1 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Tue, 25 Feb 2020 16:27:56 +0100 Subject: [PATCH] msgctl.2: Copy information on 'msqid_ds' fields from sysvipc(7) Signed-off-by: Michael Kerrisk --- man2/msgctl.2 | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/man2/msgctl.2 b/man2/msgctl.2 index bead7b34c..ac59ff862 100644 --- a/man2/msgctl.2 +++ b/man2/msgctl.2 @@ -76,6 +76,49 @@ struct msqid_ds { .EE .in .PP +The fields of the +.I msgid_ds +structure are as follows: +.TP 11 +.I msg_perm +This is an +.I ipc_perm +structure (see below) that specifies the access permissions on the message +queue. +.TP +.I msg_qnum +Number of messages currently on the message queue. +.TP +.I msg_qbytes +Maximum number of bytes of message text allowed on the message +queue. +.TP +.I msg_lspid +ID of the process that performed the last +.BR msgsnd (2) +system call. +.TP +.I msg_lrpid +ID of the process that performed the last +.BR msgrcv (2) +system call. +.TP +.I msg_stime +Time of the last +.BR msgsnd (2) +system call. +.TP +.I msg_rtime +Time of the last +.BR msgrcv (2) +system call. +.TP +.I msg_ctime +Time of the last +system call that changed a member of the +.I msqid_ds +structure. +.PP The .I ipc_perm structure is defined as follows