/external/ltp/testcases/kernel/syscalls/ipc/msgctl/ |
msgctl03.c | 65 int msg_q_1 = -1; /* to hold the message queue id */ variable 80 TEST(msgctl(msg_q_1, IPC_RMID, NULL)); 89 if ((msgctl(msg_q_1, IPC_STAT, &qs_buf) == -1)) { 100 msg_q_1 = -1; 127 if ((msg_q_1 = msgget(msgkey, IPC_CREAT | IPC_EXCL | MSG_RW)) == -1) { 139 rm_queue(msg_q_1);
|
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)); 137 if ((msg_q_1 = msgget(msgkey, IPC_CREAT | IPC_EXCL | MSG_RW)) == -1) { 149 rm_queue(msg_q_1);
|
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)); 96 if ((msgctl(msg_q_1, IPC_STAT, &qs_buf) == -1)) { 150 if ((msg_q_1 = msgget(msgkey, IPC_CREAT | IPC_EXCL | MSG_RW)) == -1) { 155 if ((msgctl(msg_q_1, IPC_STAT, &qs_buf)) == -1) { 171 rm_queue(msg_q_1);
|
msgctl05.c | 67 int msg_q_1 = -1; /* The message queue id created in setup */ variable 100 rm_queue(msg_q_1); 127 TEST(msgctl(msg_q_1, IPC_RMID, NULL)); 171 if ((msg_q_1 = msgget(msgkey, IPC_CREAT | IPC_EXCL | MSG_RW)) == -1) {
|
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) { 197 rm_queue(msg_q_1);
|
/external/ltp/testcases/kernel/syscalls/ipc/msgget/ |
msgget01.c | 65 int msg_q_1 = -1; /* to hold the message queue ID */ variable 92 msg_q_1 = TEST_RETURN; 105 if (msg_q_1 != -1) { 106 rm_queue(msg_q_1); 107 msg_q_1 = -1; 137 if (msgsnd(msg_q_1, &snd_buf, MSGSIZE, 0) == -1) { 143 if (msgrcv(msg_q_1, &rcv_buf, MSGSIZE, MSGTYPE, IPC_NOWAIT) == -1) { 182 rm_queue(msg_q_1);
|
msgget02.c | 79 int msg_q_1 = -1; /* The message queue id created in setup */ variable 158 if ((msg_q_1 = msgget(msgkey, IPC_CREAT | IPC_EXCL)) == -1) { 172 rm_queue(msg_q_1);
|
msgget04.c | 66 int msg_q_1 = -1; /* to hold the message queue id */ variable 152 if ((msg_q_1 = msgget(msgkey, IPC_CREAT | IPC_EXCL)) == -1) { 165 rm_queue(msg_q_1);
|
/external/ltp/testcases/kernel/syscalls/ipc/msgrcv/ |
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); 108 if ((msg_q_1 = msgget(msgkey, IPC_CREAT | IPC_EXCL | MSG_RW)) 128 if (self_exec(av[0], "d", msg_q_1) < 0) { 138 rm_queue(msg_q_1); 152 TEST(msgrcv(msg_q_1, &rcv_buf, MSGSIZE, 1, 0)); 165 msg_q_1 = -1; 175 rm_queue(msg_q_1);
|
msgrcv01.c | 74 int msg_q_1; variable 88 maybe_run_child(&do_child, "d", &msg_q_1); 109 if (self_exec(av[0], "d", msg_q_1) < 0) { 117 if (msgsnd(msg_q_1, &snd_buf, MSGSIZE, 0) == -1) { 146 TEST(msgrcv(msg_q_1, &rcv_buf, MSGSIZE, 1, 0)); 191 if ((msg_q_1 = msgget(msgkey, IPC_CREAT | IPC_EXCL | MSG_RW)) == -1) { 206 rm_queue(msg_q_1);
|
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); 110 if (self_exec(av[0], "d", msg_q_1) < 0) 133 TEST(msgrcv(msg_q_1, &rcv_buf, MSGSIZE, 1, 0)); 191 if ((msg_q_1 = msgget(msgkey, IPC_CREAT | IPC_EXCL | MSG_RW)) == -1) 202 rm_queue(msg_q_1);
|
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, 157 if ((msg_q_1 = msgget(msgkey, IPC_CREAT | IPC_EXCL | MSG_RW)) == -1) { 165 if (msgsnd(msg_q_1, &snd_buf, MSGSIZE, 0) == -1) { 177 rm_queue(msg_q_1);
|
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) { 158 rm_queue(msg_q_1);
|
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) { 180 if (msgsnd(msg_q_1, &snd_buf, MSGSIZE, IPC_NOWAIT) == -1) { 197 rm_queue(msg_q_1);
|
/external/ltp/testcases/kernel/syscalls/ipc/msgsnd/ |
msgsnd06.c | 74 int msg_q_1 = -1; /* The message queue id created in setup */ variable 88 maybe_run_child(&do_child, "d", &msg_q_1); 102 if ((msg_q_1 = msgget(msgkey, IPC_CREAT | IPC_EXCL | MSG_RW)) 111 while (msgsnd(msg_q_1, &msg_buf, MSGSIZE, IPC_NOWAIT) != -1) { 126 if (self_exec(av[0], "d", msg_q_1) < 0) { 136 rm_queue(msg_q_1); 169 TEST(msgsnd(msg_q_1, &msg_buf, MSGSIZE, 0)); 183 msg_q_1 = -1;
|
msgsnd04.c | 65 int msg_q_1 = -1; /* The message queue id created in setup */ variable 86 TEST(msgsnd(msg_q_1, &msg_buf, MSGSIZE, IPC_NOWAIT)); 131 if ((msg_q_1 = msgget(msgkey, IPC_CREAT | IPC_EXCL | MSG_RW)) == -1) { 139 while (msgsnd(msg_q_1, &msg_buf, MSGSIZE, IPC_NOWAIT) != -1) { 151 rm_queue(msg_q_1);
|
msgsnd01.c | 70 int msg_q_1; variable 93 TEST(msgsnd(msg_q_1, &msg_buf, MSGSIZE, 0)); 102 if (msgctl(msg_q_1, IPC_STAT, &qs_buf) == -1) { 121 if (msgrcv(msg_q_1, &rd_buf, MSGSIZE, 1, 0) == -1) { 150 if ((msg_q_1 = msgget(msgkey, IPC_CREAT | IPC_EXCL | MSG_RW)) == -1) { 165 rm_queue(msg_q_1);
|
msgsnd03.c | 64 int msg_q_1 = -1; /* The message queue id created in setup */ variable 80 &msg_q_1, &msg_buf, 0, 1, EINVAL}, 83 &msg_q_1, &msg_buf, -1, 1, EINVAL}, 86 &msg_q_1, &msg_buf, 1, -1, EINVAL} 158 if ((msg_q_1 = msgget(msgkey, IPC_CREAT | IPC_EXCL | MSG_RW)) == -1) { 174 rm_queue(msg_q_1);
|
msgsnd05.c | 80 int msg_q_1 = -1; /* The message queue id created in setup */ variable 92 maybe_run_child(&do_child_uclinux, "d", &msg_q_1); 118 if (self_exec(av[0], "d", msg_q_1) < 0) { 145 TEST(msgsnd(msg_q_1, &msg_buf, MSGSIZE, 0)); 210 if ((msg_q_1 = msgget(msgkey, IPC_CREAT | IPC_EXCL | MSG_RW)) == -1) { 218 while (msgsnd(msg_q_1, &msg_buf, MSGSIZE, IPC_NOWAIT) != -1) { 230 rm_queue(msg_q_1);
|
msgsnd02.c | 67 int msg_q_1 = -1; /* The message queue id created in setup */ variable 78 &msg_q_1, &msg_buf, EACCES}, 81 &msg_q_1, NULL, EFAULT},}; 155 if ((msg_q_1 = msgget(msgkey, IPC_CREAT | IPC_EXCL | MSG_RD)) == -1) { 171 rm_queue(msg_q_1);
|