mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:42:32 +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,
|
||||
|
||||
@@ -181,7 +181,8 @@ struct task_group_s; /* Forward reference */
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int nxmq_send(mqd_t mqdes, FAR const char *msg, size_t msglen, int prio);
|
||||
int nxmq_send(mqd_t mqdes, FAR const char *msg, size_t msglen,\
|
||||
unsigned int prio);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: nxmq_timedsend
|
||||
@@ -225,8 +226,8 @@ int nxmq_send(mqd_t mqdes, FAR const char *msg, size_t msglen, int prio);
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int nxmq_timedsend(mqd_t mqdes, FAR const char *msg, size_t msglen, int prio,
|
||||
FAR const struct timespec *abstime);
|
||||
int nxmq_timedsend(mqd_t mqdes, FAR const char *msg, size_t msglen,
|
||||
unsigned int prio, FAR const struct timespec *abstime);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: nxmq_receive
|
||||
@@ -257,7 +258,7 @@ int nxmq_timedsend(mqd_t mqdes, FAR const char *msg, size_t msglen, int prio,
|
||||
****************************************************************************/
|
||||
|
||||
ssize_t nxmq_receive(mqd_t mqdes, FAR char *msg, size_t msglen,
|
||||
FAR int *prio);
|
||||
FAR unsigned int *prio);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: nxmq_timedreceive
|
||||
@@ -293,7 +294,8 @@ ssize_t nxmq_receive(mqd_t mqdes, FAR char *msg, size_t msglen,
|
||||
****************************************************************************/
|
||||
|
||||
ssize_t nxmq_timedreceive(mqd_t mqdes, FAR char *msg, size_t msglen,
|
||||
FAR int *prio, FAR const struct timespec *abstime);
|
||||
FAR unsigned int *prio,
|
||||
FAR const struct timespec *abstime);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: nxmq_free_msgq
|
||||
|
||||
Reference in New Issue
Block a user