Home
last modified time | relevance | path

Searched refs:MSGSIZE (Results 1 – 22 of 22) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/ipc/msgrcv/
Dmsgrcv02.c42 char mtext[MSGSIZE];
54 {&queue_id, &rcv_buf, MSGSIZE - 1, 2, 0, 0, E2BIG},
55 {&queue_id, &rcv_buf, MSGSIZE, 2, 0, 1, EACCES},
56 {&queue_id, NULL, MSGSIZE, 2, 0, 0, EFAULT},
57 {&bad_id, &rcv_buf, MSGSIZE, 2, 0, 0, EINVAL},
59 {&queue_id, &rcv_buf, MSGSIZE, 3, IPC_NOWAIT, 0, ENOMSG},
60 {&queue_id, &rcv_buf, MSGSIZE, -1, IPC_NOWAIT, 0, ENOMSG},
61 {&queue_id, &rcv_buf, MSGSIZE, -1, IPC_NOWAIT | MSG_EXCEPT, 0, ENOMSG},
77 SAFE_MSGSND(queue_id, &snd_buf, MSGSIZE, 0); in do_test()
Dmsgrcv07.c44 char mtext[MSGSIZE];
53 SAFE_MSGSND(queue_id, &snd_buf[0], MSGSIZE, 0); in prepare_queue()
54 SAFE_MSGSND(queue_id, &snd_buf[1], MSGSIZE, 0); in prepare_queue()
62 TEST(msgrcv(queue_id, &rcv_buf, MSGSIZE, MSGTYPE2, MSG_EXCEPT)); in test_msg_except()
85 SAFE_MSGSND(queue_id, &snd_buf[0], MSGSIZE, 0); in test_msg_noerror()
122 TEST(msgrcv(queue_id, &rcv_buf, MSGSIZE, 0, MSG_COPY | IPC_NOWAIT)); in test_msg_copy()
142 TEST(msgrcv(queue_id, &rcv_buf, MSGSIZE, 1, MSG_COPY | IPC_NOWAIT)); in test_msg_copy()
172 TEST(msgrcv(queue_id, &rcv_buf, MSGSIZE, 0, 0)); in test_zero_msgtyp()
194 TEST(msgrcv(queue_id, &rcv_buf, MSGSIZE, MSGTYPE2, 0)); in test_positive_msgtyp()
219 TEST(msgrcv(queue_id, &rcv_buf, MSGSIZE, -MSGTYPE2, 0)); in test_negative_msgtyp()
Dmsgrcv03.c37 char mtext[MSGSIZE];
62 …TST_EXP_FAIL2(msgrcv(queue_id, &rcv_buf, MSGSIZE, tc->msg_type, MSG_COPY | tc->msg_flag), tc->exp_… in verify_msgrcv()
63 "msgrcv(%i, %p, %i, %i, %i)", queue_id, &rcv_buf, MSGSIZE, tc->msg_type, MSG_COPY | tc->msg_flag); in verify_msgrcv()
70 SAFE_MSGSND(queue_id, &snd_buf, MSGSIZE, 0); in setup()
Dmsgrcv06.c22 char text[MSGSIZE];
27 TST_EXP_FAIL2(msgrcv(queue_id, &rcv_buf, MSGSIZE, 1, 0), EIDRM, in verify_msgrcv()
28 "msgrcv(%i, %p, %d, 1, 0)", queue_id, &rcv_buf, MSGSIZE); in verify_msgrcv()
Dmsgrcv05.c20 char mtext[MSGSIZE];
33 TST_EXP_FAIL2(msgrcv(queue_id, &rcv_buf, MSGSIZE, 1, 0), EINTR, in verify_msgrcv()
34 "msgrcv(%i, %p, %d, 1, 0)", queue_id, &rcv_buf, MSGSIZE); in verify_msgrcv()
Dmsgrcv01.c19 char mtext[MSGSIZE];
27 SAFE_MSGSND(queue_id, &snd_buf, MSGSIZE, 0); in verify_msgrcv()
30 TEST(msgrcv(queue_id, &rcv_buf, MSGSIZE, 1, 0)); in verify_msgrcv()
/third_party/ltp/testcases/kernel/syscalls/ipc/msgsnd/
Dmsgsnd02.c39 char text[MSGSIZE];
54 {&queue_id, &snd_buf[0], MSGSIZE, EACCES, 1},
55 {&queue_id, NULL, MSGSIZE, EFAULT, 0},
56 {&bad_id, &snd_buf[0], MSGSIZE, EINVAL, 0},
57 {&queue_id, &snd_buf[1], MSGSIZE, EINVAL, 0},
58 {&queue_id, &snd_buf[2], MSGSIZE, EINVAL, 0},
Dmsgsnd06.c26 char text[MSGSIZE];
31 TST_EXP_FAIL(msgsnd(queue_id, &snd_buf, MSGSIZE, 0), EIDRM, in verify_msgsnd()
32 "msgsnd(%i, %p, %i, 0)", queue_id, &snd_buf, MSGSIZE); in verify_msgsnd()
41 while (msgsnd(queue_id, &snd_buf, MSGSIZE, IPC_NOWAIT) != -1) in do_test()
Dmsgsnd01.c25 char text[MSGSIZE];
34 TEST(msgsnd(queue_id, &snd_buf, MSGSIZE, 0)); in verify_msgsnd()
43 if (qs_buf.msg_cbytes == MSGSIZE && qs_buf.msg_qnum == 1) in verify_msgsnd()
63 SAFE_MSGRCV(queue_id, &rcv_buf, MSGSIZE, 1, 0); in verify_msgsnd()
Dmsgsnd05.c29 char text[MSGSIZE];
44 TST_EXP_FAIL(msgsnd(queue_id, &snd_buf, MSGSIZE, tc->flag), tc->exp_err, in verify_msgsnd()
45 "msgsnd(%i, %p, %i, %i)", queue_id, &snd_buf, MSGSIZE, tc->flag); in verify_msgsnd()
84 while (msgsnd(queue_id, &snd_buf, MSGSIZE, IPC_NOWAIT) != -1) in setup()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_send/
D2-1.c24 #define MSGSIZE 10 // < strlen(MSGSTR) macro
36 attr.mq_msgsize = MSGSIZE; in main()
37 attr.mq_maxmsg = MSGSIZE; in main()
/third_party/ltp/testcases/kernel/syscalls/ipc/msgget/
Dmsgget01.c28 char text[MSGSIZE];
41 SAFE_MSGSND(queue_id, &snd_buf, MSGSIZE, 0); in verify_msgget()
43 SAFE_MSGRCV(queue_id, &rcv_buf, MSGSIZE, MSGTYPE, IPC_NOWAIT); in verify_msgget()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/
D2-1.c25 #define MSGSIZE 10 // < strlen(MSGSTR) macro
38 attr.mq_msgsize = MSGSIZE; in main()
39 attr.mq_maxmsg = MSGSIZE; in main()
/third_party/python/PC/
Dlauncher.c17 #define MSGSIZE 1024 macro
90 wchar_t message[MSGSIZE]; in error()
91 wchar_t win_message[MSGSIZE]; in error()
95 len = _vsnwprintf_s(message, MSGSIZE, _TRUNCATE, format, va); in error()
99 winerror(GetLastError(), win_message, MSGSIZE); in error()
101 _snwprintf_s(&message[len], MSGSIZE - len, _TRUNCATE, L": %ls", in error()
254 wchar_t message[MSGSIZE]; in _locate_pythons_for_key()
276 winerror(status, message, MSGSIZE); in _locate_pythons_for_key()
297 winerror(status, message, MSGSIZE); in _locate_pythons_for_key()
316 winerror(status, message, MSGSIZE); in _locate_pythons_for_key()
[all …]
/third_party/ltp/include/
Dipcmsg.h41 #define MSGSIZE 1024 /* a resonable size for a message */ macro
50 char mtext[MSGSIZE + 1]; /* add 1 here so the message can be 1024 */
Dlibnewipc.h31 #define MSGSIZE 1024 macro
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/
D13-1.c25 #define MSGSIZE 5 macro
37 attr.mq_msgsize = MSGSIZE; in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_getattr/
D3-1.c33 #define MSGSIZE 50 macro
46 mqstat.mq_msgsize = MSGSIZE; in main()
D4-1.c31 #define MSGSIZE 50 macro
46 mqstat.mq_msgsize = MSGSIZE; in main()
/third_party/ltp/testcases/kernel/containers/sysvipc/
Dmsg_comm.c41 #define MSGSIZE 50 macro
47 char mtext[MSGSIZE];
/third_party/rust/crates/rustix/src/backend/linux_raw/io/
Derrno.rs369 pub const MSGSIZE: Self = Self::from_errno(errno::EMSGSIZE); constant
/third_party/rust/crates/rustix/src/backend/libc/io/
Derrno.rs542 pub const MSGSIZE: Self = Self(c::EMSGSIZE); constant