/external/ltp/testcases/kernel/syscalls/ipc/msgrcv/ |
D | msgrcv06.c | 78 int msg_q_1 = -1; /* The message queue id created in setup */ variable 90 maybe_run_child(&do_child_uclinux, "d", &msg_q_1); in main() 108 if ((msg_q_1 = msgget(msgkey, IPC_CREAT | IPC_EXCL | MSG_RW)) in main() 128 if (self_exec(av[0], "d", msg_q_1) < 0) { in main() 138 rm_queue(msg_q_1); in main() 152 TEST(msgrcv(msg_q_1, &rcv_buf, MSGSIZE, 1, 0)); in do_child() 165 msg_q_1 = -1; in do_child() 175 rm_queue(msg_q_1); in do_child()
|
D | msgrcv01.c | 74 int msg_q_1; variable 88 maybe_run_child(&do_child, "d", &msg_q_1); in main() 109 if (self_exec(av[0], "d", msg_q_1) < 0) { in main() 117 if (msgsnd(msg_q_1, &snd_buf, MSGSIZE, 0) == -1) { in main() 146 TEST(msgrcv(msg_q_1, &rcv_buf, MSGSIZE, 1, 0)); in do_child() 191 if ((msg_q_1 = msgget(msgkey, IPC_CREAT | IPC_EXCL | MSG_RW)) == -1) { in setup() 206 rm_queue(msg_q_1); in cleanup()
|
D | msgrcv05.c | 76 int msg_q_1 = -1; /* The message queue id created in setup */ variable 88 maybe_run_child(&do_child_uclinux, "d", &msg_q_1); in main() 110 if (self_exec(av[0], "d", msg_q_1) < 0) in main() 133 TEST(msgrcv(msg_q_1, &rcv_buf, MSGSIZE, 1, 0)); in do_child() 191 if ((msg_q_1 = msgget(msgkey, IPC_CREAT | IPC_EXCL | MSG_RW)) == -1) in setup() 202 rm_queue(msg_q_1); in cleanup()
|
D | msgrcv04.c | 65 int msg_q_1 = -1; /* The message queue id created in setup */ variable 112 TEST(msgrcv(msg_q_1, &rcv_buf, TC[i].size, TC[i].type, in main() 157 if ((msg_q_1 = msgget(msgkey, IPC_CREAT | IPC_EXCL | MSG_RW)) == -1) { in setup() 165 if (msgsnd(msg_q_1, &snd_buf, MSGSIZE, 0) == -1) { in setup() 177 rm_queue(msg_q_1); in cleanup()
|
D | msgrcv02.c | 75 int msg_q_1 = -1; /* The message queue ID created in setup */ variable 89 &msg_q_1, (MSGBUF *) - 1, EFAULT} 172 if ((msg_q_1 = msgget(msgkey, IPC_CREAT | IPC_EXCL | MSG_RW)) == -1) { in setup() 180 if (msgsnd(msg_q_1, &snd_buf, MSGSIZE, IPC_NOWAIT) == -1) { in setup() 197 rm_queue(msg_q_1); in cleanup()
|
D | msgrcv03.c | 63 int msg_q_1 = -1; /* The message queue id created in setup */ variable 77 &msg_q_1, -1, EINVAL} 146 if ((msg_q_1 = msgget(msgkey, IPC_CREAT | IPC_EXCL | MSG_RW)) == -1) { in setup() 158 rm_queue(msg_q_1); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/ipc/msgctl/ |
D | msgctl03.c | 65 int msg_q_1 = -1; /* to hold the message queue id */ variable 80 TEST(msgctl(msg_q_1, IPC_RMID, NULL)); in main() 89 if ((msgctl(msg_q_1, IPC_STAT, &qs_buf) == -1)) { in main() 100 msg_q_1 = -1; in main() 127 if ((msg_q_1 = msgget(msgkey, IPC_CREAT | IPC_EXCL | MSG_RW)) == -1) { in setup() 139 rm_queue(msg_q_1); in cleanup()
|
D | msgctl02.c | 66 int msg_q_1 = -1; /* to hold the message queue id */ variable 90 TEST(msgctl(msg_q_1, IPC_SET, &qs_buf)); in main() 96 if ((msgctl(msg_q_1, IPC_STAT, &qs_buf) == -1)) { in main() 150 if ((msg_q_1 = msgget(msgkey, IPC_CREAT | IPC_EXCL | MSG_RW)) == -1) { in setup() 155 if ((msgctl(msg_q_1, IPC_STAT, &qs_buf)) == -1) { in setup() 171 rm_queue(msg_q_1); in cleanup()
|
D | msgctl01.c | 66 int msg_q_1 = -1; /* to hold the message queue id */ variable 88 TEST(msgctl(msg_q_1, IPC_STAT, &qs_buf)); in main() 137 if ((msg_q_1 = msgget(msgkey, IPC_CREAT | IPC_EXCL | MSG_RW)) == -1) { in setup() 149 rm_queue(msg_q_1); in cleanup()
|
D | msgctl05.c | 67 int msg_q_1 = -1; /* The message queue id created in setup */ variable 100 rm_queue(msg_q_1); in main() 127 TEST(msgctl(msg_q_1, IPC_RMID, NULL)); in do_child() 171 if ((msg_q_1 = msgget(msgkey, IPC_CREAT | IPC_EXCL | MSG_RW)) == -1) { in setup()
|
D | msgctl04.c | 69 int msg_q_1 = -1; /* The message queue id created in setup */ variable 83 &msg_q_1, IPC_STAT, &q_buf, EACCES}, 175 if ((msg_q_1 = msgget(msgkey, IPC_CREAT | IPC_EXCL)) == -1) { in setup() 197 rm_queue(msg_q_1); in cleanup()
|