A message queue opening problem (mq_open() failed) (+)

Hi there!

I have a problem with the opening a message queue.
I work in QNX 4.25D, use Watcom 10.6.
When I try to open a message queue
" mq_open (mqname, O_CREAT|O_RDWR, 0666, NULL)",
I have the error EACCESS - “Permission denied”.
I tried to logon as root and “cc -T1”. But I had no result. :frowning:
Who knows what’s happend?

With best regards,
Alexander A. Khundoyev

e-mail:
khaa@ngs.ru

Alexander A. Khundoyev <khaa@ngs.ru> wrote:

I have a problem with the opening a message queue.
I work in QNX 4.25D, use Watcom 10.6.
When I try to open a message queue
" mq_open (mqname, O_CREAT|O_RDWR, 0666, NULL)",
I have the error EACCESS - “Permission denied”.

Perhaps you can post some code to show what you’re doing (ie. more context)

Cheers,

-Adam

Previously, Alexander A. Khundoyev wrote in qdn.public.qnx4:

Hi there!

I have a problem with the opening a message queue.
I work in QNX 4.25D, use Watcom 10.6.
When I try to open a message queue
" mq_open (mqname, O_CREAT|O_RDWR, 0666, NULL)",
I have the error EACCESS - “Permission denied”.
I tried to logon as root and “cc -T1”. But I had no result. > :frowning:
Who knows what’s happend?

With best regards,
Alexander A. Khundoyev

e-mail:
khaa@ngs.ru

Is “Mqueue” runnning on your machine? If it isn’t, you’ll get “error 13: permission denied”. Also, have you checked the permissions on /dev/mqueue?

HTH,

  • Pete