Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/syscalls/ipc/msgrcv/
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); 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()
Dmsgrcv01.c74 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()
Dmsgrcv05.c76 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()
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, 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()
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) { in setup()
180 if (msgsnd(msg_q_1, &snd_buf, MSGSIZE, IPC_NOWAIT) == -1) { in setup()
197 rm_queue(msg_q_1); in cleanup()
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) { in setup()
158 rm_queue(msg_q_1); in cleanup()
/external/ltp/testcases/kernel/syscalls/ipc/msgctl/
Dmsgctl03.c65 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()
Dmsgctl02.c66 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()
Dmsgctl01.c66 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()
Dmsgctl05.c67 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()
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) { in setup()
197 rm_queue(msg_q_1); in cleanup()