3e22464ec7
mq_flags field of struct mq_attr can contain only O_NONBLOCK flag (other flags are treated as invalid by mq_getsetattr). Moreover, this field is ignored by mq_open at all (O_NONBLOCK is set via oflag, not via attr attribute). * xlat/mq_attr_flags.in: New file. * print_mq_attr.c: Include xlat/mq_attr_flags.h. (printmqattr): New parameter, bool decode_flags; cast members of struct mq_attr to long long type; use mq_attr_flags xlat for printing mq_flags; print mq_flags as flags only in case decode_flags parameter is set to true. * mq.c (SYS_FUNC(mq_open)): Specify value of false for decode_flags parameter of printmqattr call. (SYS_FUNC(mq_getsetattr)): Specify value of true for decode_flags parameter of printmqattr call. * tests/mq.expected: Update expected output.
2 lines
11 B
Plaintext
2 lines
11 B
Plaintext
O_NONBLOCK
|