/third_party/ltp/testcases/kernel/syscalls/ipc/msgctl/ |
H A D | msgctl04.c | 29 return msgctl(msqid, cmd, buf); in libc_msgctl() 60 int (*msgctl)(int msqid, int cmd, void *buf); member 63 { .msgctl = libc_msgctl, .desc = "libc msgctl()"}, 65 { .msgctl = sys_msgctl, .desc = "__NR_msgctl syscall"}, 74 tv->msgctl == libc_msgctl) { in verify_msgctl() 79 TST_EXP_FAIL(tv->msgctl(*(tc[i].msg_id), tc[i].cmd, tc[i].buf), in verify_msgctl() 81 "msgctl(%i, %i, %p)", in verify_msgctl()
|
H A D | msgctl06.c | 9 * Call msgctl() with MSG_INFO flag and check that: 15 * There is a possible race between the call to the msgctl() and read from the 108 TEST(msgctl(0, MSG_INFO, (struct msqid_ds *)&info)); in verify_msgctl() 111 tst_res(TFAIL | TTERRNO, "msgctl(0, MSG_INFO, ...)"); in verify_msgctl() 115 msgid = msgctl(TST_RET, MSG_STAT_ANY, &buf); in verify_msgctl() 125 if (msgctl(i, MSG_STAT_ANY, &buf) != -1) in verify_msgctl() 149 TEST(msgctl(msg_id, MSG_STAT_ANY, &temp_buf)); in setup()
|
H A D | msgctl03.c | 24 TEST(msgctl(msg_q, IPC_RMID, NULL)); in verify_msgctl() 26 tst_res(TFAIL | TTERRNO, "msgctl(IPC_RMID) failed"); in verify_msgctl() 30 tst_res(TPASS, "msgctl(IPC_RMID)"); in verify_msgctl() 32 TEST(msgctl(msg_q, IPC_STAT, &buf)); in verify_msgctl() 34 tst_res(TPASS | TTERRNO, "msgctl(IPC_STAT)"); in verify_msgctl() 37 "msgctl(IPC_STAT) returned %li", TST_RET); in verify_msgctl()
|
H A D | msgctl05.c | 30 TEST(msgctl(msqid, IPC_STAT, (struct msqid_ds *)&buf_ds)); in run()
|
H A D | msgctl12.c | 36 TEST(msgctl(*tc[i].msg_id, tc[i].cmd, tc[i].buf)); in verify_msgctl() 40 "msgctl() test %s failed with errno: " in verify_msgctl() 44 tst_res(TPASS, "msgctl() test %s succeeded", tc[i].name); in verify_msgctl()
|
H A D | msgctl02.c | 27 TEST(msgctl(msg_id, IPC_SET, &buf)); in verify_msgctl() 30 tst_res(TFAIL | TTERRNO, "msgctl(IPC_SET) failed"); in verify_msgctl() 34 tst_res(TPASS, "msgctl(IPC_SET) msg_qbytes - 1"); in verify_msgctl()
|
H A D | msgctl01.c | 30 TEST(msgctl(msg_id, IPC_STAT, &buf)); in verify_msgctl() 33 tst_res(TFAIL | TTERRNO, "msgctl() returned %li", TST_RET); in verify_msgctl() 37 tst_res(TPASS, "msgctl(IPC_STAT)"); in verify_msgctl()
|
/third_party/ltp/testcases/kernel/syscalls/ipc/msgstress/ |
H A D | msgstress01.c | 221 TEST(msgctl(tid, IPC_RMID, 0)); in dotest() 243 TEST(msgctl(id, IPC_RMID, 0)); in dotest() 245 printf("msgctl() errno %d: %s\n", in dotest() 293 (void)msgctl(tid, IPC_RMID, NULL); in cleanup() 294 if ((status = msgctl(tid, IPC_STAT, NULL)) != -1) { in cleanup() 295 (void)msgctl(tid, IPC_RMID, NULL); in cleanup() 296 tst_resm(TFAIL, "msgctl(tid, IPC_RMID) failed"); in cleanup()
|
H A D | msgstress04.c | 255 if (msgctl(tid, IPC_RMID, 0) < 0) { in cleanup_msgqueue() 321 if (msgctl(tid, IPC_RMID, 0) < 0) { in dotest() 322 printf("msgctl() error: %s\n", in dotest() 338 if (msgctl(tid, IPC_RMID, 0) < 0) { in dotest() 339 printf("msgctl() error: %s\n", strerror(errno)); in dotest() 343 if (msgctl(id, IPC_RMID, 0) < 0) { in dotest() 344 printf("msgctl() failure in child group %d: %s\n", in dotest() 436 (void)msgctl(tid, IPC_RMID, NULL); in cleanup() 437 if ((status = msgctl(tid, IPC_STAT, NULL)) != -1) { in cleanup() 438 (void)msgctl(ti in cleanup() [all...] |
H A D | msgstress02.c | 229 if (msgctl(tid, IPC_RMID, 0) < 0) { in cleanup_msgqueue() 296 if (msgctl(tid, IPC_RMID, 0) < 0) { in dotest() 297 printf("msgctl() error: %s\n", in dotest() 313 if (msgctl(tid, IPC_RMID, 0) < 0) { in dotest() 314 printf("msgctl() error: %s\n", strerror(errno)); in dotest() 318 if (msgctl(id, IPC_RMID, 0) < 0) { in dotest() 319 printf("msgctl() failure in child group %d: %s\n", in dotest() 399 (void)msgctl(tid, IPC_RMID, NULL); in cleanup() 400 if ((status = msgctl(tid, IPC_STAT, NULL)) != -1) { in cleanup() 401 (void)msgctl(ti in cleanup() [all...] |
H A D | msgstress03.c | 226 TEST(msgctl(tid, IPC_RMID, 0)); in dotest() 228 printf("msgctl() error in cleanup: %s\n", in dotest() 247 TEST(msgctl(id, IPC_RMID, 0)); in dotest() 249 printf("msgctl() failed: %s\n", in dotest() 291 (void)msgctl(tid, IPC_RMID, NULL); in cleanup() 292 if ((status = msgctl(tid, IPC_STAT, NULL)) != -1) { in cleanup() 293 (void)msgctl(tid, IPC_RMID, NULL); in cleanup() 294 tst_resm(TFAIL, "msgctl(tid, IPC_RMID) failed"); in cleanup()
|
/third_party/musl/libc-test/src/functional/ |
H A D | ipc_msg.c | 43 T(msgctl(qid, IPC_RMID, 0)); in snd() 55 T(msgctl(qid, IPC_STAT, &qid_ds)); in snd() 75 T(msgctl(qid, IPC_STAT, &qid_ds)); in snd() 111 T(msgctl(qid, IPC_RMID, 0)); in rcv()
|
/third_party/toybox/toys/pending/ |
H A D | ipcs.c | 55 if ((ret = msgctl(TT.id, IPC_STAT, &buf)) < 0) { in show_msg_id() 56 perror_msg("msgctl"); in show_msg_id() 345 if ((max_nr = msgctl(0, MSG_INFO, (struct msqid_ds*)&info_buf)) < 0) { in msg_array() 359 if ((msgctl(0, 3, (struct msqid_ds*)&info_buf)) < 0) return; //IPC_INFO in msg_array() 387 if ((msqid = msgctl(i, MSG_STAT, &buf)) < 0 ) continue; in msg_array()
|
H A D | ipcrm.c | 63 else if (ipc == 2) ret = msgctl(id, IPC_RMID, NULL); in do_ipcrm()
|
/third_party/musl/porting/liteos_m/kernel/include/sys/ |
H A D | msg.h | 37 int msgctl (int, int, struct msqid_ds *);
|
/third_party/musl/porting/uniproton/kernel/include/sys/ |
H A D | msg.h | 37 int msgctl (int, int, struct msqid_ds *);
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/ |
H A D | msg.h | 37 int msgctl (int, int, struct msqid_ds *);
|
/third_party/musl/include/sys/ |
H A D | msg.h | 37 int msgctl (int, int, struct msqid_ds *);
|
/third_party/musl/libc-test/src/api/ |
H A D | sys_msg.c | 25 {int(*p)(int,int,struct msqid_ds*) = msgctl;} in f()
|
/third_party/musl/porting/liteos_a/user/src/ipc/ |
H A D | msgctl.c | 12 int msgctl(int q, int cmd, struct msqid_ds *buf) in msgctl() function
|
/third_party/musl/src/ipc/ |
H A D | msgctl.c | 11 int msgctl(int q, int cmd, struct msqid_ds *buf) in msgctl() function
|
/third_party/ltp/libs/libltpipc/ |
H A D | libipc.c | 89 if (msgctl(queue_id, IPC_RMID, NULL) == -1) { in rm_queue()
|
/third_party/libuv/src/unix/ |
H A D | os390-syscalls.c | 140 msgctl(uv_backend_fd(uv_default_loop()), IPC_RMID, NULL); in uv__os390_cleanup() 378 msgctl(lst->msg_queue, IPC_RMID, NULL); in epoll_queue_close()
|
/third_party/node/deps/uv/src/unix/ |
H A D | os390-syscalls.c | 140 msgctl(uv_backend_fd(uv_default_loop()), IPC_RMID, NULL); in uv__os390_cleanup() 378 msgctl(lst->msg_queue, IPC_RMID, NULL); in epoll_queue_close()
|
/third_party/ltp/lib/ |
H A D | tst_safe_sysv_ipc.c | 127 rval = msgctl(msqid, cmd, buf); in safe_msgctl() 131 "msgctl(%i, %i, %p) failed", msqid, cmd, buf); in safe_msgctl() 134 "Invalid msgctl(%i, %i, %p) return value %d", msqid, in safe_msgctl()
|