/external/strace/tests-m32/ |
D | mq_sendrecv.c | 66 MSG_SIZE = 64, enumerator 172 rc = syscall(__NR_mq_timedreceive, fd, msg, MSG_SIZE, &prio, in do_recv() 185 printf(", %u, [42], {tv_sec=%lld, tv_nsec=%llu}) = %s\n", MSG_SIZE, in do_recv() 241 char *msg = tail_alloc(MSG_SIZE); in main() 252 fill_memory_ex(msg, MSG_SIZE, MSG_START, MSG_SIZE); in main() 295 rc = syscall(__NR_mq_timedsend, bogus_fd, msg + MSG_SIZE, bogus_size, in main() 298 (int) bogus_fd, msg + MSG_SIZE, (unsigned long long) bogus_size, in main() 302 rc = syscall(__NR_mq_timedsend, bogus_fd, msg + MSG_SIZE - MSG_CUT, in main() 303 MSG_SIZE, bogus_prio, bogus_tmout); in main() 306 (int) bogus_fd, msg + MSG_SIZE - MSG_CUT, in main() [all …]
|
/external/strace/tests/ |
D | mq_sendrecv.c | 66 MSG_SIZE = 64, enumerator 172 rc = syscall(__NR_mq_timedreceive, fd, msg, MSG_SIZE, &prio, in do_recv() 185 printf(", %u, [42], {tv_sec=%lld, tv_nsec=%llu}) = %s\n", MSG_SIZE, in do_recv() 241 char *msg = tail_alloc(MSG_SIZE); in main() 252 fill_memory_ex(msg, MSG_SIZE, MSG_START, MSG_SIZE); in main() 295 rc = syscall(__NR_mq_timedsend, bogus_fd, msg + MSG_SIZE, bogus_size, in main() 298 (int) bogus_fd, msg + MSG_SIZE, (unsigned long long) bogus_size, in main() 302 rc = syscall(__NR_mq_timedsend, bogus_fd, msg + MSG_SIZE - MSG_CUT, in main() 303 MSG_SIZE, bogus_prio, bogus_tmout); in main() 306 (int) bogus_fd, msg + MSG_SIZE - MSG_CUT, in main() [all …]
|
/external/strace/tests-mx32/ |
D | mq_sendrecv.c | 66 MSG_SIZE = 64, enumerator 172 rc = syscall(__NR_mq_timedreceive, fd, msg, MSG_SIZE, &prio, in do_recv() 185 printf(", %u, [42], {tv_sec=%lld, tv_nsec=%llu}) = %s\n", MSG_SIZE, in do_recv() 241 char *msg = tail_alloc(MSG_SIZE); in main() 252 fill_memory_ex(msg, MSG_SIZE, MSG_START, MSG_SIZE); in main() 295 rc = syscall(__NR_mq_timedsend, bogus_fd, msg + MSG_SIZE, bogus_size, in main() 298 (int) bogus_fd, msg + MSG_SIZE, (unsigned long long) bogus_size, in main() 302 rc = syscall(__NR_mq_timedsend, bogus_fd, msg + MSG_SIZE - MSG_CUT, in main() 303 MSG_SIZE, bogus_prio, bogus_tmout); in main() 306 (int) bogus_fd, msg + MSG_SIZE - MSG_CUT, in main() [all …]
|
/external/ltp/testcases/open_posix_testsuite/functional/mqueues/ |
D | send_rev_2.c | 30 #define MSG_SIZE 128 macro 35 char r_msg_ptr_1[MAX_MSG][MSG_SIZE]; 36 char r_msg_ptr_2[MAX_MSG][MSG_SIZE]; 46 if (-1 == mq_send(mq1, s_msg_ptr[i], MSG_SIZE, i)) { in send_1() 64 if (-1 == mq_send(mq2, s_msg_ptr[i], MSG_SIZE, i)) { in send_2() 81 if (-1 == mq_receive(mq1, r_msg_ptr_1[i], MSG_SIZE, NULL)) { in receive_1() 98 if (-1 == mq_receive(mq2, r_msg_ptr_2[i], MSG_SIZE, NULL)) { in receive_2() 117 mqstat.mq_msgsize = MSG_SIZE; in main()
|
D | send_rev_1.c | 25 #define MSG_SIZE 128 macro 31 char r_msg_ptr[MAX_MSG][MSG_SIZE]; in main() 41 mqstat.mq_msgsize = MSG_SIZE; in main()
|
/external/rust/crates/nix/test/ |
D | test_mq.rs | 12 const MSG_SIZE: mq_attr_member_t = 32; in test_mq_send_and_receive() constant 13 let attr = MqAttr::new(0, 10, MSG_SIZE, 0); in test_mq_send_and_receive() 44 const MSG_SIZE: mq_attr_member_t = 32; in test_mq_getattr() constant 45 let initial_attr = MqAttr::new(0, 10, MSG_SIZE, 0); in test_mq_getattr() 67 const MSG_SIZE: mq_attr_member_t = 32; in test_mq_setattr() constant 68 let initial_attr = MqAttr::new(0, 10, MSG_SIZE, 0); in test_mq_setattr() 79 let new_attr = MqAttr::new(0, 20, MSG_SIZE * 2, 100); in test_mq_setattr() 88 …attr_non_blocking = MqAttr::new(MQ_OFlag::O_NONBLOCK.bits() as mq_attr_member_t, 10, MSG_SIZE, 0); in test_mq_setattr() 104 const MSG_SIZE: mq_attr_member_t = 32; in test_mq_set_nonblocking() constant 105 let initial_attr = MqAttr::new(0, 10, MSG_SIZE, 0); in test_mq_set_nonblocking() [all …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_notify/ |
D | 5-1.c | 44 #define MSG_SIZE 40 macro 64 const char s_msg_ptr[MSG_SIZE] = "test message \n"; in main() 65 char r_msg_ptr[MSG_SIZE]; in main() 91 mq_receive(mqdes, r_msg_ptr, MSG_SIZE, NULL); in main() 106 if (mq_send(mqdes, s_msg_ptr, MSG_SIZE, prio) == -1) { in main()
|
D | 1-1.c | 37 #define MSG_SIZE 50 macro 56 const char s_msg_ptr[MSG_SIZE] = "test message \n"; in main() 79 if (mq_send(mqdes, s_msg_ptr, MSG_SIZE, prio) == -1) { in main()
|
D | 4-1.c | 33 #define MSG_SIZE 50 macro 53 const char s_msg_ptr[MSG_SIZE] = "test message \n"; in main() 76 if (mq_send(mqdes, s_msg_ptr, MSG_SIZE, prio) == -1) { in main()
|
D | 3-1.c | 36 #define MSG_SIZE 50 macro 56 const char s_msg_ptr[MSG_SIZE] = "test message \n"; in main() 82 if (mq_send(mqdes, s_msg_ptr, MSG_SIZE, prio) == -1) { in main()
|
/external/ltp/testcases/open_posix_testsuite/stress/mqueues/ |
D | multi_send_rev_2.c | 29 #define MSG_SIZE 128 macro 35 char r_msg_ptr[Max_Threads][MAX_MSG][MSG_SIZE]; 45 if (-1 == mq_send(mq, s_msg_ptr[i], MSG_SIZE, i)) { in send() 64 mq_receive(mq, r_msg_ptr[ThreadID][i], MSG_SIZE, NULL)) { in receive() 99 mqstat.mq_msgsize = MSG_SIZE; in main()
|
D | multi_send_rev_1.c | 28 #define MSG_SIZE 128 macro 49 if (-1 == mq_send(send_info.mqID, s_msg_ptr[i], MSG_SIZE, i)) { in send() 63 char r_msg_ptr[MAX_MSG][MSG_SIZE]; in receive() 72 mq_receive(recv_info.mqID, r_msg_ptr[i], MSG_SIZE, NULL)) { in receive() 110 mqstat.mq_msgsize = MSG_SIZE; in main()
|
/external/linux-kselftest/tools/testing/selftests/mqueue/ |
D | mq_perf_tests.c | 87 #define MSG_SIZE 16 macro 322 char buff[MSG_SIZE]; in cont_thread() 338 while (mq_receive(queue, buff, MSG_SIZE, &prio_in) == MSG_SIZE) 342 if (mq_send(queue, buff, MSG_SIZE, prio_out)) \ 349 if (mq_send(queue, buff, MSG_SIZE, prio_out)) \ 352 if (mq_receive(queue, buff, MSG_SIZE, &prio_in) != MSG_SIZE) \ 424 char buff[MSG_SIZE]; in perf_test_thread() 710 attr.mq_msgsize = MSG_SIZE; in main()
|
/external/cn-cbor/test/ |
D | ctest.h | 155 #define MSG_SIZE 4096 macro 156 static char ctest_errorbuffer[MSG_SIZE]; 407 ctest_errorsize = MSG_SIZE-1; in ctest_main() 443 if (ctest_errorsize != MSG_SIZE-1) printf("%s", ctest_errorbuffer); in ctest_main()
|