|
|
#include <sys/types.h> #include <sys/ipc.h> #include <sys/msg.h>int msgctl(int msqid, int cmd, .../
struct msqid_ds
buf
/);
msg_perm.uid msg_perm.gid msg_perm.mode /only access permission bits
/ msg_qbytes
This cmd can only be executed by a process that has an effective user ID equal to the value of msg_perm.cuid or msg_perm.uid in the data structure associated with msqid, or by a process that has the P_OWNER privilege.