mq_open

Establish connection between a process and a message queue name.

Note: Linux prototypes are: mqd_t mq_open (const(char)* name, int oflag); mqd_t mq_open (const(char)* name, int oflag, mode_t mode, mq_attr* attr);

version(Posix && CRuntime_Glibc)
extern (C) @nogc nothrow
mq_open
(
const(char)* name
,
int oflag
,)

Parameters

name const(char)*

Name of the message queue to open.

oflag int

determines the type of access used. If O_CREAT is on oflag, the third argument is taken as a mode_t, the mode of the created message queue. If O_CREAT is on oflag, the fourth argument is taken as a pointer to a `mq_attr' (message queue attributes). If the fourth argument is null, default attributes are used. ... = varargs matching the function prototypes

Return Value

Type: mqd_t

Message queue descriptor or (mqd_t) -1 on error.

Meta