Lines Matching defs:msg
9 #include <sys/msg.h>
36 } msg = {1, "test message"};
74 T(msgsnd(qid, &msg, sizeof msg.data, IPC_NOWAIT));
91 } msg;
98 if (msgrcv(qid, &msg, 0, msgtyp, 0) != -1 || errno != E2BIG)
102 T(msgrcv(qid, &msg, sizeof msg.data, msgtyp, IPC_NOWAIT));
103 if (strcmp(msg.data,"test message") != 0)
104 t_error("received \"%s\" instead of \"%s\"\n", msg.data, "test message");
107 if (msgrcv(qid, &msg, sizeof msg.data, msgtyp, MSG_NOERROR|IPC_NOWAIT) != -1 || errno != ENOMSG)
108 t_error("msgrcv should have failed when ther is no msg with ENOMSG, got %s\n", strerror(errno));