![]() |
![]() |
![]() |
Set a queue's attributes
#include <mqueue.h> int mq_setattr( mqd_t mqdes, const struct mq_attr* mqstat, struct mq_attr* omqstat );
libc
The mq_setattr() function is used to set the mq_flags field for the specified queue (passed as the mq_flags field in mqstat). If omqstat isn't NULL, then the old attribute structure is stored in the location that it points to.
The mq_maxmsg and mq_msgsize fields of mqstat are ignored. The mq_flags field is the bit-wise OR of zero or more of the following constants:
![]() |
The following constant is specified by POSIX 1003.1b. |
POSIX 1003.1 (Realtime Extensions)
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |
![]() |
![]() |
![]() |