Kushal Pal Singh wrote:
Hi All,
I dont know if this is the right place to post this query.

I am having problem with mq_open. I have code like below:

const int MQ_OPEN_FLAGS = O_RDWR;
mQueueId = ::mq_open (pName,MQ_OPEN_FLAGS);

In this case, mq_open is returning errno 17.

I cant understnd the reason of this error as we are tryng to open an exisiting 
mq. In what situation errno 17 can be returned if called this way(to open 
existing MQ)? I know that file already exists thats why I called the mq_open 
with O_RDWR option. In what conditions errno 17 can be returned by mq_open.

Thanks in advance
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
[email protected]


This might be better discussed on osol-code, but:

1) what version of opensolaris are you running?
2) have you written a simple test case?
3) what does truss of the test case report?
4) have you followed the code:


http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/rt/mqueue.c#352

- Bart


--
Bart Smaalders                  Solaris Kernel Performance
[EMAIL PROTECTED]               http://blogs.sun.com/barts
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to