/kernel/liteos_a/testsuites/unittest/libc/posix/mqueue/full/ |
D | It_posix_queue_064.cpp | 39 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()
|
D | It_posix_queue_063.cpp | 37 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()
|
D | It_posix_queue_066.cpp | 37 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()
|
D | It_posix_queue_061.cpp | 37 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()
|
D | It_posix_queue_162.cpp | 83 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()
|
D | It_posix_queue_144.cpp | 91 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()
|
D | It_posix_queue_146.cpp | 92 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()
|
D | It_posix_queue_065.cpp | 38 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()
|
D | It_posix_queue_145.cpp | 125 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/liteos_m/testsuites/sample/posix/mqueue/ |
D | It_posix_queue_046.c | 39 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()
|
D | It_posix_queue_045.c | 36 struct mq_attr mqstat, nmqstat; in Testcase() local 43 ret = memset_s(&mqstat, sizeof(mqstat), 0, sizeof(mqstat)); in Testcase() 45 mqstat.mq_msgsize = MQUEUE_STANDARD_NAME_LENGTH; in Testcase() 46 mqstat.mq_maxmsg = 40; // 40, queue max message size. in Testcase() 47 mqdes = mq_open(mqname, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &mqstat); in Testcase() 56 ICUNIT_GOTO_EQUAL(mqstat.mq_maxmsg, nmqstat.mq_maxmsg, mqstat.mq_maxmsg, EXIT); in Testcase() 57 ICUNIT_GOTO_EQUAL(mqstat.mq_msgsize, nmqstat.mq_msgsize, mqstat.mq_msgsize, EXIT); in Testcase()
|
D | It_posix_queue_048.c | 36 struct mq_attr mqstat = {0}; in Testcase() local 47 ret = memset_s(&mqstat, sizeof(mqstat), 0, sizeof(mqstat)); in Testcase() 52 ret = mq_getattr(mqdes, &mqstat); in Testcase() 55 mqstat.mq_flags |= O_NONBLOCK; in Testcase() 57 ret = mq_setattr(mqdes, &mqstat, NULL); in Testcase() 69 ICUNIT_GOTO_EQUAL(nmqstat.mq_flags, mqstat.mq_flags, nmqstat.mq_flags, EXIT1); in Testcase()
|
D | It_posix_queue_043.c | 36 struct mq_attr mqstat; in Testcase() local 46 ret = memset_s(&mqstat, sizeof(mqstat), 0, sizeof(mqstat)); in Testcase() 49 ret = mq_getattr(mqdes, &mqstat); in Testcase() 58 ICUNIT_ASSERT_NOT_EQUAL((mqstat.mq_flags & O_NONBLOCK), 0, ret); in Testcase()
|
D | It_posix_queue_047.c | 37 struct mq_attr mqstat; in Testcase() local 47 ret = memset_s(&mqstat, sizeof(mqstat), 0, sizeof(mqstat)); in Testcase() 50 ret = mq_getattr(mqdesInvalid, &mqstat); in Testcase()
|
/kernel/linux/linux-5.10/include/linux/ |
D | audit.h | 33 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
|
D | syscalls.h | 787 asmlinkage long sys_mq_getsetattr(mqd_t mqdes, const struct mq_attr __user *mqstat, struct mq_attr …
|
/kernel/liteos_m/testsuites/unittest/xts/ipc/msg_queue/ |
D | mq_exp_test.c | 584 struct mq_attr mqstat = { 0 }; variable 587 memset_s(&mqstat, sizeof(mqstat), 0, sizeof(mqstat)); 592 ret = mq_getattr(NULL, &mqstat);
|
/kernel/linux/linux-5.10/kernel/ |
D | audit.h | 163 struct mq_attr mqstat; member
|
D | auditsc.c | 1339 struct mq_attr *attr = &context->mq_getsetattr.mqstat; in show_special() 2354 void __audit_mq_getsetattr(mqd_t mqdes, struct mq_attr *mqstat) in __audit_mq_getsetattr() argument 2358 context->mq_getsetattr.mqstat = *mqstat; in __audit_mq_getsetattr()
|
/kernel/linux/linux-5.10/ipc/ |
D | mqueue.c | 1501 struct mq_attr mqstat, omqstat; in SYSCALL_DEFINE3() local 1505 new = &mqstat; in SYSCALL_DEFINE3() 1594 struct mq_attr mqstat, omqstat; in COMPAT_SYSCALL_DEFINE3() local 1598 new = &mqstat; in COMPAT_SYSCALL_DEFINE3()
|