This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Message queue support
- From: Jose Miguel Goncalves <jose dot goncalves at inov dot pt>
- To: newlib at sources dot redhat dot com
- Date: Wed, 25 Jun 2003 12:49:37 +0100
- Subject: Message queue support
Hi,
I would like to know in what level the newlib implementation of POSIX
message queues (mq_open, mq_send, etc..) depends on the linux kernel?
I've tried a simple example of using message queues and it fails on a
mq_open() call to create a queue. Digging in the source code with GDB I
see that mq_open() fails when it tries to open a shared memory file:
...
/* attempt to open the shared memory file for exclusive create so
we know
whether we are the owners or not */
fd = open (real_name, O_RDWR | O_CREAT | O_EXCL, mode);
if (fd < 0 && (oflag & O_EXCL))
{
/* we failed and the user wanted exclusive create */
...
Regards,
José Gonçalves