DragonFly bugs List (threaded) for 2011-03
[
Date Prev][
Date Next]
[Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
[issue2010] POSIX message queue mq_open short form always EINVALs
New submission from Venkatesh Srinivas <vsrinivas@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@lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue2010>
_____________________________________________________
[
Date Prev][
Date Next]
[Thread Prev][
Thread Next]
[
Date Index][
Thread Index]