Home
last modified time | relevance | path

Searched refs:MSG_SIZE (Results 1 – 14 of 14) sorted by relevance

/external/strace/tests-m32/
Dmq_sendrecv.c66 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/
Dmq_sendrecv.c66 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/
Dmq_sendrecv.c66 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/
Dsend_rev_2.c30 #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()
Dsend_rev_1.c25 #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/
Dtest_mq.rs12 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/
D5-1.c44 #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()
D1-1.c37 #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()
D4-1.c33 #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()
D3-1.c36 #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/
Dmulti_send_rev_2.c29 #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()
Dmulti_send_rev_1.c28 #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/
Dmq_perf_tests.c87 #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/
Dctest.h155 #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()