Searched refs:msg_q_1 (Results 1 - 11 of 11) sorted by relevance

/external/ltp/testcases/kernel/syscalls/ipc/msgctl/
H A Dmsgctl03.c65 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);
H A Dmsgctl01.c66 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);
H A Dmsgctl02.c66 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);
H A Dmsgctl05.c67 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) {
H A Dmsgctl04.c69 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/msgrcv/
H A Dmsgrcv06.c78 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);
H A Dmsgrcv01.c74 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);
H A Dmsgrcv05.c77 int msg_q_1 = -1; /* The message queue id created in setup */ variable
89 maybe_run_child(&do_child_uclinux, "d", &msg_q_1);
111 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);
H A Dmsgrcv04.c65 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);
H A Dmsgrcv03.c63 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);
H A Dmsgrcv02.c75 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);

Completed in 111 milliseconds