Home
last modified time | relevance | path

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

/kernel/liteos_a/testsuites/unittest/libc/posix/mqueue/full/
DIt_posix_queue_064.cpp39 struct mq_attr mqstat; in Testcase() local
45 ret = memset_s(&mqstat, sizeof(mqstat), 0, sizeof(mqstat)); in Testcase()
47 mqstat.mq_msgsize = MQUEUE_STANDARD_NAME_LENGTH; in Testcase()
48 mqstat.mq_maxmsg = MQUEUE_STANDARD_NAME_LENGTH; in Testcase()
49 mqueue = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &mqstat); in Testcase()
56 ret = memset_s(&mqstat, sizeof(mqstat), 0, sizeof(mqstat)); in Testcase()
58 ret = mq_getattr(mqueue, &mqstat); in Testcase()
60 ICUNIT_GOTO_EQUAL(mqstat.mq_curmsgs, 5, mqstat.mq_curmsgs, EXIT1); // 5, assert the curmsgs. in Testcase()
DIt_posix_queue_063.cpp37 struct mq_attr mqstat, nmqstat; in Testcase() local
45 ret = memset_s(&mqstat, sizeof(mqstat), 0, sizeof(mqstat)); in Testcase()
47 mqstat.mq_msgsize = MQUEUE_STANDARD_NAME_LENGTH; in Testcase()
48 mqstat.mq_maxmsg = 40; // 40, queue max message size. in Testcase()
49 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &mqstat); in Testcase()
58 if ((mqstat.mq_maxmsg != nmqstat.mq_maxmsg) || (mqstat.mq_msgsize != nmqstat.mq_msgsize)) { in Testcase()
DIt_posix_queue_066.cpp37 struct mq_attr mqstat = { 0 }; in Testcase() local
49 ret = memset_s(&mqstat, sizeof(mqstat), 0, sizeof(mqstat)); in Testcase()
54 ret = mq_getattr(mqdes, &mqstat); in Testcase()
57 mqstat.mq_flags |= O_NONBLOCK; in Testcase()
59 ret = mq_setattr(mqdes, &mqstat, NULL); in Testcase()
71 if (nmqstat.mq_flags != mqstat.mq_flags) { in Testcase()
DIt_posix_queue_061.cpp37 struct mq_attr mqstat; in Testcase() local
48 ret = memset_s(&mqstat, sizeof(mqstat), 0, sizeof(mqstat)); in Testcase()
51 ret = mq_getattr(mqdes, &mqstat); in Testcase()
60 if (!(mqstat.mq_flags & O_NONBLOCK)) { in Testcase()
DIt_posix_queue_162.cpp83 struct mq_attr mqstat; in Testcase() local
92 (void)memset_s(&mqstat, sizeof(mqstat), 0, sizeof(mqstat)); in Testcase()
93 mqstat.mq_maxmsg = MQUEUE_PTHREAD_NUM_TEST; in Testcase()
94 mqstat.mq_msgsize = MQUEUE_STANDARD_NAME_LENGTH; in Testcase()
95 mqstat.mq_flags = 0; in Testcase()
98 g_gqueue = mq_open(mqname, oflag, S_IRWXU | S_IRWXG | S_IRWXO, &mqstat); in Testcase()
DIt_posix_queue_144.cpp91 struct mq_attr mqstat, attr; in Testcase() local
95 ret = memset_s(&mqstat, sizeof(mqstat), 0, sizeof(mqstat)); in Testcase()
97 mqstat.mq_maxmsg = MQUEUE_SHORT_ARRAY_LENGTH; in Testcase()
98 mqstat.mq_msgsize = MQUEUE_SHORT_ARRAY_LENGTH * 2; // 2, mqueue message size. in Testcase()
99 mqstat.mq_flags = 0; in Testcase()
105 g_gqueue = mq_open(mqname, O_CREAT | O_RDWR, S_IRWXU | S_IRWXG | S_IRWXO, &mqstat); in Testcase()
DIt_posix_queue_146.cpp92 struct mq_attr mqstat; in Testcase() local
101 ret = memset_s(&mqstat, sizeof(mqstat), 0, sizeof(mqstat)); in Testcase()
103 mqstat.mq_maxmsg = MQUEUE_SHORT_ARRAY_LENGTH; in Testcase()
104 mqstat.mq_msgsize = MQUEUE_STANDARD_NAME_LENGTH; in Testcase()
105 mqstat.mq_flags = 0; in Testcase()
108 mqueue[i] = mq_open(mqname[i], oflag, S_IRWXU | S_IRWXG | S_IRWXO, &mqstat); in Testcase()
DIt_posix_queue_065.cpp38 struct mq_attr mqstat; in Testcase() local
48 ret = memset_s(&mqstat, sizeof(mqstat), 0, sizeof(mqstat)); in Testcase()
51 ret = mq_getattr(mqdesInvalid, &mqstat); in Testcase()
DIt_posix_queue_145.cpp125 struct mq_attr mqstat; in Testcase() local
135 (void)memset_s(&mqstat, sizeof(mqstat), 0, sizeof(mqstat)); in Testcase()
136 mqstat.mq_maxmsg = MQUEUE_SHORT_ARRAY_LENGTH; in Testcase()
137 mqstat.mq_msgsize = MQUEUE_STANDARD_NAME_LENGTH; in Testcase()
138 mqstat.mq_flags = 0; in Testcase()
142 mqueue1 = mq_open(mqname1, oflag, S_IRWXU | S_IRWXG | S_IRWXO, &mqstat); in Testcase()
145 mqueue2 = mq_open(mqname2, oflag, S_IRWXU | S_IRWXG | S_IRWXO, &mqstat); in Testcase()
/kernel/linux/linux-5.10/include/linux/
Daudit.h33 struct mqstat;
401 extern void __audit_mq_getsetattr(mqd_t mqdes, struct mq_attr *mqstat);
475 static inline void audit_mq_getsetattr(mqd_t mqdes, struct mq_attr *mqstat) in audit_mq_getsetattr() argument
478 __audit_mq_getsetattr(mqdes, mqstat); in audit_mq_getsetattr()
642 static inline void audit_mq_getsetattr(mqd_t mqdes, struct mq_attr *mqstat) in audit_mq_getsetattr() argument
Dsyscalls.h787 asmlinkage long sys_mq_getsetattr(mqd_t mqdes, const struct mq_attr __user *mqstat, struct mq_attr …
/kernel/linux/linux-5.10/kernel/
Daudit.h163 struct mq_attr mqstat; member
Dauditsc.c1292 struct mq_attr *attr = &context->mq_getsetattr.mqstat; in show_special()
2302 void __audit_mq_getsetattr(mqd_t mqdes, struct mq_attr *mqstat) in __audit_mq_getsetattr() argument
2306 context->mq_getsetattr.mqstat = *mqstat; in __audit_mq_getsetattr()
/kernel/linux/linux-5.10/ipc/
Dmqueue.c1487 struct mq_attr mqstat, omqstat; in SYSCALL_DEFINE3() local
1491 new = &mqstat; in SYSCALL_DEFINE3()
1580 struct mq_attr mqstat, omqstat; in COMPAT_SYSCALL_DEFINE3() local
1584 new = &mqstat; in COMPAT_SYSCALL_DEFINE3()