This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]