summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/mqueuecreatesupp.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-04-26 23:39:01 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-04-26 23:39:01 +0000
commit53092d19211054d67787990714798c2e72c8a623 (patch)
tree9386e2095e8fd1d9c3e419faae2006df2ec80a48 /cpukit/posix/src/mqueuecreatesupp.c
parent2001-04-26 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-53092d19211054d67787990714798c2e72c8a623.tar.bz2
2001-04-26 Joel Sherrill <joel@OARcorp.com>
* 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.
Diffstat (limited to 'cpukit/posix/src/mqueuecreatesupp.c')
-rw-r--r--cpukit/posix/src/mqueuecreatesupp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/cpukit/posix/src/mqueuecreatesupp.c b/cpukit/posix/src/mqueuecreatesupp.c
index ce9a4bcb29..35b3e1b826 100644
--- a/cpukit/posix/src/mqueuecreatesupp.c
+++ b/cpukit/posix/src/mqueuecreatesupp.c
@@ -41,9 +41,8 @@
*/
int _POSIX_Message_queue_Create_support(
- const char *name,
+ const char *_name,
int pshared,
- unsigned int oflag,
struct mq_attr *attr_ptr,
POSIX_Message_queue_Control **message_queue
)
@@ -51,6 +50,7 @@ int _POSIX_Message_queue_Create_support(
POSIX_Message_queue_Control *the_mq;
CORE_message_queue_Attributes *the_mq_attr;
struct mq_attr attr;
+ char *name;
_Thread_Disable_dispatch();
@@ -95,7 +95,6 @@ int _POSIX_Message_queue_Create_support(
}
the_mq->process_shared = pshared;
- the_mq->oflag = oflag;
the_mq->named = TRUE;
the_mq->open_count = 1;
the_mq->linked = TRUE;
@@ -133,6 +132,8 @@ int _POSIX_Message_queue_Create_support(
rtems_set_errno_and_return_minus_one( ENOSPC );
}
+ name = malloc(256);
+ strcpy( name, _name );
_Objects_Open(
&_POSIX_Message_queue_Information,
&the_mq->Object,