msgctl
} else if (msgctl(ipc_id, IPC_RMID, NULL_MSG) == -1) {
if (msgctl(ipc_id, IPC_RMID, NULL_MSG) == -1) {
if (msgctl(msqid, IPC_STAT, &buf) == -1) {
msgctl(msqid, IPC_RMID, NULL) != -1)
error = msgctl((int)a1, (int)a2, (void *)a3);
error = msgctl((int)a1, (int)a2, (void *)(uintptr_t)a3);
int msgctl(int, int, struct msqid_ds *);
struct strbuf msgctl, msgdata;
copyin(ctl, &msgctl, sizeof (struct strbuf))) {
msgctl.maxlen = -1;
error = sock_getmsg(vp, &msgctl, &msgdata, prip,
error = strgetmsg(vp, &msgctl, &msgdata, prip,
copyout(&msgctl, ctl, sizeof (struct strbuf))) ||
msgctl.len = -1;
error = sock_putmsg(vp, &msgctl, &msgdata, *prip, *flagsp,
error = strputmsg(vp, &msgctl, &msgdata, *prip, *flagsp, flag);
struct strbuf msgctl, msgdata;
msgctl.len = msgctl32.len;
msgctl.maxlen = msgctl32.maxlen;
msgctl.buf = (caddr_t)(uintptr_t)msgctl32.buf;
msgctl.maxlen = -1;
error = sock_getmsg(vp, &msgctl, &msgdata, prip,
error = strgetmsg(vp, &msgctl, &msgdata, prip,
msgctl32.len = msgctl.len;
msgctl32.maxlen = msgctl.maxlen;
msgctl32.buf = (caddr32_t)(uintptr_t)msgctl.buf;
msgctl.len = -1;
error = sock_putmsg(vp, &msgctl, &msgdata, *prip, *flagsp,
error = strputmsg(vp, &msgctl, &msgdata, *prip, *flagsp, flag);