POSIX message queues: Move mq_setattr() and mq_getattr() from nuttx/libc/mqueue to nuttx/sched/mqueue. Also add sysyscall support for mq_setattr() and mq_getattr(). This is necessary in protected and kernel builds because in those cases the message queue structure is protect and cannot be accessed directly from user mode code. Noted by Jouko Holopainen.

This commit is contained in:
Gregory Nutt
2015-06-03 09:24:17 -06:00
parent 3ee2902c3e
commit d8db596b3b
11 changed files with 23 additions and 105 deletions
-2
View File
@@ -75,8 +75,6 @@
"memmove","string.h","","FAR void","FAR void *","FAR const void *","size_t"
"memset","string.h","","FAR void","FAR void *","int c","size_t"
"mktime","time.h","","time_t","const struct tm *"
"mq_getattr","mqueue.h","!defined(CONFIG_DISABLE_MQUEUE)","int","mqd_t","struct mq_attr *"
"mq_setattr","mqueue.h","!defined(CONFIG_DISABLE_MQUEUE)","int","mqd_t","const struct mq_attr *","struct mq_attr *"
"ntohl","arpa/inet.h","","uint32_t","uint32_t"
"ntohs","arpa/inet.h","","uint16_t","uint16_t"
"perror","stdio.h","CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_NFILE_STREAMS > 0","void","FAR const char *"
1 _inet_ntoa arpa/inet.h defined(CONFIG_NET_IPv4) && !defined(CONFIG_CAN_PASS_STRUCTS) FAR char in_addr_t
75 memmove string.h FAR void FAR void *
76 memset string.h FAR void FAR void *
77 mktime time.h time_t const struct tm *
mq_getattr mqueue.h !defined(CONFIG_DISABLE_MQUEUE) int mqd_t
mq_setattr mqueue.h !defined(CONFIG_DISABLE_MQUEUE) int mqd_t
78 ntohl arpa/inet.h uint32_t uint32_t
79 ntohs arpa/inet.h uint16_t uint16_t
80 perror stdio.h CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_NFILE_STREAMS > 0 void FAR const char *