From 53092d19211054d67787990714798c2e72c8a623 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 26 Apr 2002 23:39:01 +0000 Subject: 2001-04-26 Joel Sherrill * include/rtems/posix/mqueue.h, inline/rtems/posix/mqueue.inl, src/mqueue.c, src/mqueueclose.c, src/mqueuecreatesupp.c, src/mqueuegetattr.c, src/mqueuenotify.c, src/mqueueopen.c, src/mqueuerecvsupp.c, src/mqueuesendsupp.c, src/mqueuesetattr.c: Per PR81 reworked to add a message queue descriptor separate from the underlying message queue. This allows non-blocking to follow the "open" not the underlying queue. --- cpukit/posix/src/mqueue.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cpukit/posix/src/mqueue.c') diff --git a/cpukit/posix/src/mqueue.c b/cpukit/posix/src/mqueue.c index 5fda3bf2cd..5d3c39bd72 100644 --- a/cpukit/posix/src/mqueue.c +++ b/cpukit/posix/src/mqueue.c @@ -58,4 +58,14 @@ void _POSIX_Message_queue_Manager_initialization( _POSIX_PATH_MAX, FALSE ); + _Objects_Initialize_information( + &_POSIX_Message_queue_Information_fds, + OBJECTS_POSIX_MESSAGE_QUEUE_FDS, + FALSE, + maximum_message_queues, + sizeof( POSIX_Message_queue_Control_fd ), + FALSE, + 0, + FALSE + ); } -- cgit v1.2.3