[issue2010] POSIX message queue mq_open short form always EINVALs

Venkatesh Srinivas (via DragonFly issue tracker) sinknull at leaf.dragonflybsd.org
Sat Mar 5 21:36:45 PST 2011


New submission from Venkatesh Srinivas <vsrinivas at dragonflybsd.org>:

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 <bugs at lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue2010>
_____________________________________________________






More information about the Bugs mailing list