Project

General

Profile

Actions

Bug #2010

closed

POSIX message queue mq_open short form always EINVALs

Added by vsrinivas about 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

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();
}
Actions

Also available in: Atom PDF