msgctl
int msgctl(int, int, struct msqid_ds *);
struct msgctl_args msgctl;
if (msgctl(sender_msqid, IPC_STAT, &m_ds) == -1)
if (msgctl(sender_msqid, IPC_SET, &m_ds) == -1)
if (msgctl(sender_msqid, IPC_STAT, &m_ds) == -1)
if (msgctl(sender_msqid, IPC_STAT, &m_ds) == -1)
if (msgctl(sender_msqid, IPC_RMID, NULL) == -1)
return msgctl(id, IPC_RMID, NULL);