New submission from Venkatesh Srinivas <[email protected]>:

Hi,

Using the short form of mq_open(), (omitting the mode and mq attribute
structure) always returns EINVAL. The long form works fine.

DOESNT WORK ================
#include <sys/types.h>
#include <mqueue.h>

main() {
        int i;

        mq_open("naem", O_RDWR|O_CREAT|O_EXCL);

        pause();
}

WORKS ======================
#include <sys/types.h>
#include <mqueue.h>

main() {
        int i;

        mq_open("nam", O_RDWR|O_CREAT|O_EXCL, 0777, NULL);

        pause();
}

----------
messages: 9668
nosy: vsrinivas
status: unread
title: POSIX message queue mq_open short form always EINVALs

_____________________________________________________
DragonFly issue tracker <[email protected]>
<http://bugs.dragonflybsd.org/issue2010>
_____________________________________________________

Reply via email to