Open System Services System Calls Reference Manual (G06.25+, H06.03+)

System Functions (k - m) msgctl(2)
NAME
msgctl - Performs message control operations
LIBRARY
G-series native OSS processes: /G/system/sysnn/zossksrl
H-series OSS processes: /G/system/zdllnnn/zosskdll
SYNOPSIS
#include <sys/msg.h>
int msgctl(
int msqid,
int cmd,
struct msqid_ds *buf);
PARAMETERS
msqid Species the message queue identier.
cmd Species the type of operation. The possible values for cmd and the operations
they perform are as follows:
IPC_RMID Removes the message queue identier and deallocates its asso-
ciated msqid_ds structure.
This is a restricted operation. The effective user ID of the calling
process either must have appropriate privileges or must be equal
to the value of the owners user ID (msg_perm.uid eld) or the
creators user ID (msg_perm.cuid eld) in the associated
msqid_ds structure.
IPC_SET Sets the message queue identier by copying selected values in
the structure specied by the buf parameter into corresponding
elds in the msqid_ds structure associated with the message
queue identier.
This is a restricted operation. The effective user ID of the calling
process must have appropriate privileges or must be equal to the
value of the owners user ID (msg_perm.uid eld) or the
creators user ID (msg_perm.cuid eld) in the associated
msqid_ds structure.
Only a process with appropriate privileges can increase the
value of msg_qbytes.
IPC_SETNONFT
Disables fault tolerance for the message queue specied by the
msqid parameter. The default operation of message queues
makes them fault tolerant so that interprocess communication
does not lose data.
This is a restricted operation. The effective user ID of the cal-
ling process must have appropriate privileges or must be equal
to the value of the owners user ID (msg_perm.uid eld) or the
creators user ID (msg_perm.cuid eld) in the associated
msqid_ds structure.
527186-003 Hewlett-Packard Company 433