Issue created by Sebastian Huber: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5835



`mq_setattr()` replaces all flags of the message queue by the
`mq_flags` member. The flags also hold the access mode of the
`mq_open()` call which created the message queue. `O_RDONLY` is zero,
so a call with `mq_flags` set to zero or to `O_NONBLOCK` makes the
message queue read only. A later `mq_send()` fails with `EBADF`.

POSIX.1-2024 states that `mq_setattr()` sets the `mq_flags` attribute,
which holds `O_NONBLOCK` and the flags which the implementation
defines. The access mode belongs to the open message queue
description, which `mq_open()` creates.

This description was created with Claude Code assistance.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5835
You're receiving this email because of your account on gitlab.rtems.org. 
Unsubscribe from this thread: 
https://gitlab.rtems.org/-/namespace/49/sent_notifications/6-7bnhdbqrjuklmymiz9n4tysyu-1d/unsubscribe
 | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | 
Help: https://gitlab.rtems.org/help


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to