summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/mqueue.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2004-02-26 14:28:56 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2004-02-26 14:28:56 +0000
commit652524d9538f50e229349314043cedb5a15f18be (patch)
tree93349fee27a1ad4c10f260ac9d5e34f3a335530a /cpukit/posix/src/mqueue.c
parent2004-02-26 Sébastien Barré <sbarre@sdelcc.com> (diff)
downloadrtems-652524d9538f50e229349314043cedb5a15f18be.tar.bz2
2004-02-26 Joel Sherrill <joel@OARcorp.com>
PR 582/core * posix/src/mqueue.c, posix/src/mqueuecreatesupp.c, posix/src/mqueuedeletesupp.c, posix/src/mqueueunlink.c: Use memory from workspace to avoid use of mutex during dispatch disable critical section. Besides memory for object names should come from the Workspace anyway.
Diffstat (limited to 'cpukit/posix/src/mqueue.c')
-rw-r--r--cpukit/posix/src/mqueue.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpukit/posix/src/mqueue.c b/cpukit/posix/src/mqueue.c
index 28003b8eee..1bfde0b623 100644
--- a/cpukit/posix/src/mqueue.c
+++ b/cpukit/posix/src/mqueue.c
@@ -25,6 +25,7 @@
#include <errno.h>
#include <fcntl.h>
#include <mqueue.h>
+#include <limits.h>
#include <rtems/system.h>
#include <rtems/score/watchdog.h>
@@ -70,8 +71,8 @@ void _POSIX_Message_queue_Manager_initialization(
maximum_message_queues,
sizeof( POSIX_Message_queue_Control_fd ),
/* size of this object's control block */
- FALSE, /* TRUE if names for this object are strings */
- 0 /* maximum length of each object's name */
+ TRUE, /* TRUE if names for this object are strings */
+ NAME_MAX /* maximum length of each object's name */
#if defined(RTEMS_MULTIPROCESSING)
,
FALSE, /* TRUE if this is a global object class */