Opens or creates a message queue.
impl MsgQueue {
fn open<P>(path: P, flags: FileFlags, mode: Mode, attr: Option<MqAttr>) -> Result<MsgQueue, Errno>
where P: ToCString,
}| Name | Description |
|---|---|
| path | The name of the message queue. |
| flags | Flags to be used when opening the message queue. |
| mode | The mode of a newly created message queue. |
| attr | The attributes of a newly created message queue. |
The path should not contain any '/'. The mode and attr arguments only matter if the flags argument contains the FILE_CREATE flag. See the manual page for more details.
When the queue is no longer needed, it should be deleted with remove.