mirror of
https://github.com/apache/nuttx.git
synced 2026-05-19 20:06:24 +08:00
nuttx/sched/mqueue: Change 'int prio' to 'unsigned int prio'. According to open group specification, priority field in mq_* functions should have unsigned type: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/mqueue.h.html
This commit is contained in:
committed by
Gregory Nutt
parent
41a4a40879
commit
626afb015b
+8
-5
@@ -87,11 +87,14 @@ extern "C"
|
||||
mqd_t mq_open(FAR const char *mq_name, int oflags, ...);
|
||||
int mq_close(mqd_t mqdes );
|
||||
int mq_unlink(FAR const char *mq_name);
|
||||
int mq_send(mqd_t mqdes, FAR const char *msg, size_t msglen, int prio);
|
||||
int mq_timedsend(mqd_t mqdes, FAR const char *msg, size_t msglen, int prio,
|
||||
FAR const struct timespec *abstime);
|
||||
ssize_t mq_receive(mqd_t mqdes, FAR char *msg, size_t msglen, FAR int *prio);
|
||||
ssize_t mq_timedreceive(mqd_t mqdes, FAR char *msg, size_t msglen, FAR int *prio,
|
||||
int mq_send(mqd_t mqdes, FAR const char *msg, size_t msglen,
|
||||
unsigned int prio);
|
||||
int mq_timedsend(mqd_t mqdes, FAR const char *msg, size_t msglen,
|
||||
unsigned int prio, FAR const struct timespec *abstime);
|
||||
ssize_t mq_receive(mqd_t mqdes, FAR char *msg, size_t msglen,
|
||||
FAR unsigned int *prio);
|
||||
ssize_t mq_timedreceive(mqd_t mqdes, FAR char *msg, size_t msglen,
|
||||
FAR unsigned int *prio,
|
||||
FAR const struct timespec *abstime);
|
||||
int mq_notify(mqd_t mqdes, const struct sigevent *notification);
|
||||
int mq_setattr(mqd_t mqdes, FAR const struct mq_attr *mq_stat,
|
||||
|
||||
Reference in New Issue
Block a user