Home
last modified time | relevance | path

Searched refs:mqstat (Results 1 – 25 of 25) sorted by relevance

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_setattr/
D1-2.c38 struct mq_attr mqstat, nmqstat; in main() local
49 memset(&mqstat, 0, sizeof(mqstat)); in main()
50 memset(&nmqstat, 0, sizeof(mqstat)); in main()
52 if (mq_getattr(mqdes, &mqstat) == -1) { in main()
56 mqstat.mq_maxmsg = mqstat.mq_maxmsg + 1; in main()
57 mqstat.mq_msgsize = mqstat.mq_msgsize + 1; in main()
58 mqstat.mq_curmsgs = mqstat.mq_curmsgs + 1; in main()
60 if (mq_setattr(mqdes, &mqstat, NULL) != 0) { in main()
68 if ((nmqstat.mq_maxmsg == mqstat.mq_maxmsg) || in main()
69 (nmqstat.mq_msgsize == mqstat.mq_msgsize) || in main()
[all …]
D1-1.c37 struct mq_attr mqstat, nmqstat; in main() local
48 memset(&mqstat, 0, sizeof(mqstat)); in main()
50 if (mq_getattr(mqdes, &mqstat) == -1) { in main()
54 mqstat.mq_flags |= MQFLAGS; in main()
55 if (mq_setattr(mqdes, &mqstat, NULL) != 0) { in main()
68 if (nmqstat.mq_flags != mqstat.mq_flags) { in main()
70 "setted is %ld\n", nmqstat.mq_flags, mqstat.mq_flags); in main()
D2-1.c40 struct mq_attr omqstat, mqstat, nmqstat; in main() local
51 memset(&mqstat, 0, sizeof(mqstat)); in main()
68 if (mq_setattr(mqdes, &nmqstat, &mqstat) != 0) { in main()
71 if ((omqstat.mq_flags != mqstat.mq_flags) || in main()
72 (omqstat.mq_maxmsg != mqstat.mq_maxmsg) || in main()
73 (omqstat.mq_msgsize != mqstat.mq_msgsize) || in main()
74 (omqstat.mq_curmsgs != mqstat.mq_curmsgs)) { in main()
D5-1.c39 struct mq_attr mqstat, nmqstat; in main() local
56 memset(&mqstat, 0, sizeof(mqstat)); in main()
60 if (mq_setattr(mqdes, &mqstat, NULL) == -1) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_getattr/
D4-1.c39 struct mq_attr mqstat; in main() local
45 memset(&mqstat, 0, sizeof(mqstat)); in main()
46 mqstat.mq_msgsize = MSGSIZE; in main()
47 mqstat.mq_maxmsg = MAXMSG; in main()
48 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &mqstat); in main()
59 memset(&mqstat, 0, sizeof(mqstat)); in main()
60 if (mq_getattr(mqdes, &mqstat) != 0) { in main()
64 if (mqstat.mq_curmsgs != MSG_NUM) { in main()
D3-1.c39 struct mq_attr mqstat, nmqstat; in main() local
45 memset(&mqstat, 0, sizeof(mqstat)); in main()
46 mqstat.mq_msgsize = MSGSIZE; in main()
47 mqstat.mq_maxmsg = MAXMSG; in main()
48 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &mqstat); in main()
58 if ((mqstat.mq_maxmsg != nmqstat.mq_maxmsg) || in main()
59 (mqstat.mq_msgsize != nmqstat.mq_msgsize)) { in main()
D2-2.c37 struct mq_attr mqstat, nmqstat; in main() local
48 memset(&mqstat, 0, sizeof(mqstat)); in main()
50 if (mq_getattr(mqdes, &mqstat) == -1) { in main()
54 mqstat.mq_flags |= MQFLAGS; in main()
55 if (mq_setattr(mqdes, &mqstat, NULL) == -1) { in main()
63 if (nmqstat.mq_flags != mqstat.mq_flags) { in main()
D2-1.c43 struct mq_attr mqstat; in main() local
55 memset(&mqstat, 0, sizeof(mqstat)); in main()
56 if (mq_getattr(mqdes, &mqstat) != 0) { in main()
65 if (!(mqstat.mq_flags & MQFLAGS)) { in main()
/external/ltp/testcases/open_posix_testsuite/functional/mqueues/
Dsend_rev_1.c30 struct mq_attr mqstat, attr; in main() local
39 memset(&mqstat, 0, sizeof(mqstat)); in main()
40 mqstat.mq_maxmsg = MAX_MSG; in main()
41 mqstat.mq_msgsize = MSG_SIZE; in main()
42 mqstat.mq_flags = 0; in main()
49 if (((mqd_t) - 1) == (mq = mq_open(MQ_NAME, oflag, 0777, &mqstat))) { in main()
Dsend_rev_2.c112 struct mq_attr mqstat; in main() local
115 memset(&mqstat, 0, sizeof(mqstat)); in main()
116 mqstat.mq_maxmsg = MAX_MSG; in main()
117 mqstat.mq_msgsize = MSG_SIZE; in main()
118 mqstat.mq_flags = 0; in main()
120 if ((mq1 = mq_open(MQ_NAME_1, oflag, 0777, &mqstat)) == (mqd_t)-1) { in main()
124 if ((mq2 = mq_open(MQ_NAME_2, oflag, 0777, &mqstat)) == (mqd_t)-1) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_receive/
D2-1.c37 struct mq_attr mqstat; in main() local
41 memset(&mqstat, 0, sizeof(mqstat)); in main()
42 mqstat.mq_msgsize = BUFFER + 1; in main()
43 mqstat.mq_maxmsg = BUFFER + 1; in main()
45 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &mqstat); in main()
D12-1.c38 struct mq_attr mqstat; in main() local
42 memset(&mqstat, 0, sizeof(mqstat)); in main()
43 mqstat.mq_msgsize = BUFFER + 1; in main()
44 mqstat.mq_maxmsg = BUFFER + 1; in main()
46 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &mqstat); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/
D2-1.c38 struct mq_attr mqstat; in main() local
43 memset(&mqstat, 0, sizeof(mqstat)); in main()
44 mqstat.mq_msgsize = BUFFER + 1; in main()
45 mqstat.mq_maxmsg = BUFFER + 1; in main()
47 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &mqstat); in main()
D15-1.c39 struct mq_attr mqstat; in main() local
44 memset(&mqstat, 0, sizeof(mqstat)); in main()
45 mqstat.mq_msgsize = BUFFER + 1; in main()
46 mqstat.mq_maxmsg = BUFFER + 1; in main()
48 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &mqstat); in main()
/external/ltp/testcases/kernel/syscalls/utils/
Dmq.h59 struct mq_attr mqstat; in cleanup_queue() local
63 memset(&mqstat, 0, sizeof(mqstat)); in cleanup_queue()
64 if (mq_getattr(fd, &mqstat) == -1) { in cleanup_queue()
69 for (i = 0; i < mqstat.mq_curmsgs; i++) { in cleanup_queue()
70 tst_res(TINFO, "receive %d/%ld message", i + 1, mqstat.mq_curmsgs); in cleanup_queue()
/external/ltp/testcases/open_posix_testsuite/stress/mqueues/
Dmulti_send_rev_2.c78 struct mq_attr mqstat; in main() local
97 memset(&mqstat, 0, sizeof(mqstat)); in main()
98 mqstat.mq_maxmsg = MAX_MSG; in main()
99 mqstat.mq_msgsize = MSG_SIZE; in main()
100 mqstat.mq_flags = 0; in main()
102 if ((mq = mq_open(MQ_NAME, oflag, 0777, &mqstat)) == (mqd_t)-1) { in main()
Dmulti_send_rev_1.c89 struct mq_attr mqstat; in main() local
108 memset(&mqstat, 0, sizeof(mqstat)); in main()
109 mqstat.mq_maxmsg = MAX_MSG; in main()
110 mqstat.mq_msgsize = MSG_SIZE; in main()
111 mqstat.mq_flags = 0; in main()
114 if ((mq[i] = mq_open(MQ_NAME[i], oflag, 0777, &mqstat)) == (mqd_t)-1) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_getattr/speculative/
D7-1.c35 struct mq_attr mqstat; in main() local
48 memset(&mqstat, 0, sizeof(mqstat)); in main()
50 ret = mq_getattr(mqdes_invalid, &mqstat); in main()
/external/llvm-project/compiler-rt/include/sanitizer/
Dnetbsd_syscall_hooks.h1365 #define __sanitizer_syscall_pre_mq_getattr(mqdes, mqstat) \ argument
1367 (long long)(mqstat))
1368 #define __sanitizer_syscall_post_mq_getattr(res, mqdes, mqstat) \ argument
1370 (long long)(mqstat))
1371 #define __sanitizer_syscall_pre_mq_setattr(mqdes, mqstat, omqstat) \ argument
1373 (long long)(mqdes), (long long)(mqstat), (long long)(omqstat))
1374 #define __sanitizer_syscall_post_mq_setattr(res, mqdes, mqstat, omqstat) \ argument
1376 res, (long long)(mqdes), (long long)(mqstat), (long long)(omqstat))
3876 void __sanitizer_syscall_pre_impl_mq_getattr(long long mqdes, long long mqstat);
3878 long long mqstat);
[all …]
Dlinux_syscall_hooks.h1392 #define __sanitizer_syscall_pre_mq_getsetattr(mqdes, mqstat, omqstat) \ argument
1393 __sanitizer_syscall_pre_impl_mq_getsetattr((long)(mqdes), (long)(mqstat), \
1395 #define __sanitizer_syscall_post_mq_getsetattr(res, mqdes, mqstat, omqstat) \ argument
1397 (long)(mqstat), (long)(omqstat))
2797 void __sanitizer_syscall_pre_impl_mq_getsetattr(long mqdes, long mqstat,
2800 long mqstat, long omqstat);
/external/compiler-rt/include/sanitizer/
Dlinux_syscall_hooks.h1393 #define __sanitizer_syscall_pre_mq_getsetattr(mqdes, mqstat, omqstat) \ argument
1394 __sanitizer_syscall_pre_impl_mq_getsetattr((long)(mqdes), (long)(mqstat), \
1396 #define __sanitizer_syscall_post_mq_getsetattr(res, mqdes, mqstat, omqstat) \ argument
1398 (long)(mqstat), (long)(omqstat))
2796 void __sanitizer_syscall_pre_impl_mq_getsetattr(long mqdes, long mqstat,
2799 long mqstat, long omqstat);
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_syscalls.inc2205 PRE_SYSCALL(mq_getsetattr)(long mqdes, const void *mqstat, void *omqstat) {
2206 if (mqstat) PRE_READ(mqstat, struct_mq_attr_sz);
2209 POST_SYSCALL(mq_getsetattr)(long res, long mqdes, const void *mqstat,
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_syscalls.inc2204 PRE_SYSCALL(mq_getsetattr)(long mqdes, const void *mqstat, void *omqstat) {
2205 if (mqstat) PRE_READ(mqstat, struct_mq_attr_sz);
2208 POST_SYSCALL(mq_getsetattr)(long res, long mqdes, const void *mqstat,
/external/libabigail/tests/data/test-diff-filter/
Dtest-PR27569-v1.abi5173 …<var-decl name="mqstat" type-id="7e411fe7" visibility="default" filepath="kernel/audit.h" line="17…
69282 …<var-decl name="mqstat" type-id="7e411fe7" visibility="default" filepath="kernel/audit.h" line="17…
Dtest-PR27569-v0.abi5173 …<var-decl name="mqstat" type-id="7e411fe7" visibility="default" filepath="kernel/audit.h" line="17…
69268 …<var-decl name="mqstat" type-id="7e411fe7" visibility="default" filepath="kernel/audit.h" line="17…