11 typedef uint32_t mqd_t;
57 int mq_unlink(
const char *name);
72 unsigned int *msg_prio);
86 unsigned int msg_prio);
mqd_t mq_open(const char *name, int oflag, struct mq_attr *attr)
Create a new message queue or open an existing queue.
Definition: mqueue.c:204
int mq_close(mqd_t mqdes)
Close the message queue descriptor.
Definition: mqueue.c:209
int mq_getattr(mqd_t mqdes, struct mq_attr *attr)
Retrieve atributes of the message queue referred to by the message queue descriptor mqdes.
Definition: mqueue.c:192
ssize_t mq_receive(mqd_t mqdes, char *msg_ptr, size_t msg_len, unsigned int *msg_prio)
Remove the oldest message with highest priority from the message queue referred to by the message que...
Definition: mqueue.c:219
int mq_setattr(mqd_t mqdes, const struct mq_attr *newattr, struct mq_attr *oldattr)
Modify attributes of the message queue referred to by the message queue descriptor mqdes.
Definition: mqueue.c:197
int mq_send(mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned int msg_prio)
Add the message pointed to by msg_ptr to the message queue referred to by the message queue descripto...
Definition: mqueue.c:227