Lines Matching refs:msgID
26 remove_msg_queue(int msgID) in remove_msg_queue() argument
28 return msgctl(msgID, IPC_RMID, 0); in remove_msg_queue()
46 int msgID = msgget(IPC_PRIVATE, S_IRUSR | S_IWUSR); in test_msgget() local
47 assert_posix_bool_success(msgID != -1); in test_msgget()
51 status_t status = remove_msg_queue(msgID); in test_msgget()
56 msgID = msgget(KEY, IPC_CREAT | IPC_EXCL | S_IRUSR | S_IWUSR in test_msgget()
63 assert_equals(msgID, returnID); in test_msgget()
72 status = remove_msg_queue(msgID); in test_msgget()
77 msgID = msgget(KEY, IPC_EXCL | S_IRUSR | S_IWUSR in test_msgget()
83 status = remove_msg_queue(msgID); in test_msgget()
99 int msgID = msgget(KEY, IPC_CREAT | IPC_EXCL | S_IRUSR | S_IWUSR in test_msgctl() local
101 assert_posix_bool_success(msgID != -1); in test_msgctl()
111 status_t status = msgctl(msgID, IPC_SET, &msg_queue); in test_msgctl()
117 status = msgctl(msgID, IPC_STAT, &msg_queue); in test_msgctl()
128 status = remove_msg_queue(msgID); in test_msgctl()
144 int msgID = msgget(KEY, IPC_CREAT | IPC_EXCL | S_IRUSR | S_IWUSR in test_msgsnd() local
146 assert_posix_bool_success(msgID != -1); in test_msgsnd()
153 status_t status = msgsnd((key_t)msgID, (void *)&msg, 20, 0); in test_msgsnd()
164 status = msgctl(msgID, IPC_SET, &msg_queue); in test_msgsnd()
169 msgsnd((key_t)msgID, (void *)&msg, 500, IPC_NOWAIT); in test_msgsnd()
174 status = remove_msg_queue(msgID); in test_msgsnd()
190 int msgID = msgget(KEY, IPC_CREAT | IPC_EXCL | S_IRUSR | S_IWUSR in test_msgrcv() local
192 assert_posix_bool_success(msgID != -1); in test_msgrcv()
198 msgrcv((key_t)msgID, (void *)&msg, 20, 0, IPC_NOWAIT); in test_msgrcv()
208 status_t status = msgsnd((key_t)msgID, (void *)&smsg, 20, 0); in test_msgrcv()
215 msgrcv((key_t)msgID, (void *)&msg, 10, 0, IPC_NOWAIT); in test_msgrcv()
220 = msgrcv((key_t)msgID, (void *)&msg, 10, 0, IPC_NOWAIT | MSG_NOERROR); in test_msgrcv()
225 status = remove_msg_queue(msgID); in test_msgrcv()