summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-05-17 17:59:21 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-05-17 17:59:21 +0000
commit6a3a81c83072981d25aa920e51884ce5ac458dc5 (patch)
tree02edb10e7386f91e7de5787858380a34633ce27b /cpukit
parent2001-05-15 Till Straumann <strauman@slac.stanford.edu> (diff)
downloadrtems-6a3a81c83072981d25aa920e51884ce5ac458dc5.tar.bz2
2001-05-17 Joel Sherrill <joel@OARcorp.com>
* macros/rtems/posix/mqueue.inl: Implemented missing routines to support message queue FDs.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/posix/ChangeLog5
-rw-r--r--cpukit/posix/macros/rtems/posix/mqueue.inl39
2 files changed, 34 insertions, 10 deletions
diff --git a/cpukit/posix/ChangeLog b/cpukit/posix/ChangeLog
index 5eef673eb8..d77050a84c 100644
--- a/cpukit/posix/ChangeLog
+++ b/cpukit/posix/ChangeLog
@@ -1,3 +1,8 @@
+2001-05-17 Joel Sherrill <joel@OARcorp.com>
+
+ * macros/rtems/posix/mqueue.inl: Implemented missing routines
+ to support message queue FDs.
+
2002-05-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/sys/utsname.h: Remove.
diff --git a/cpukit/posix/macros/rtems/posix/mqueue.inl b/cpukit/posix/macros/rtems/posix/mqueue.inl
index 91fce0dd60..d9912a2e11 100644
--- a/cpukit/posix/macros/rtems/posix/mqueue.inl
+++ b/cpukit/posix/macros/rtems/posix/mqueue.inl
@@ -16,25 +16,37 @@
#ifndef __RTEMS_POSIX_MESSAGE_QUEUE_inl
#define __RTEMS_POSIX_MESSAGE_QUEUE_inl
-/*PAGE
- *
+/*
* _POSIX_Message_queue_Allocate
*/
#define _POSIX_Message_queue_Allocate() \
(POSIX_Message_queue_Control *) \
_Objects_Allocate( &_POSIX_Message_queue_Information )
+
+/*
+ * _POSIX_Message_queue_Allocate_fd
+ */
-/*PAGE
- *
+#define _POSIX_Message_queue_Allocate_fd() \
+ (POSIX_Message_queue_Control_fd *) \
+ _Objects_Allocate( &_POSIX_Message_queue_Information_fds )
+
+/*
* _POSIX_Message_queue_Free
*/
#define _POSIX_Message_queue_Free( _the_mq ) \
_Objects_Free( &_POSIX_Message_queue_Information, &(_the_mq)->Object )
-/*PAGE
- *
+/*
+ * _POSIX_Message_queue_Free_fd
+ */
+
+#define _POSIX_Message_queue_Free_fd( _the_mq_fd ) \
+ _Objects_Free( &_POSIX_Message_queue_Information_fds, &(_the_mq_fd)->Object )
+
+/*
* _POSIX_Message_queue_Namespace_remove
*/
@@ -42,8 +54,7 @@
_Objects_Namespace_remove( \
&_POSIX_Message_queue_Information, &(_the_mq)->Object )
-/*PAGE
- *
+/*
* _POSIX_Message_queue_Get
*/
@@ -51,7 +62,15 @@
(POSIX_Message_queue_Control *) \
_Objects_Get( &_POSIX_Message_queue_Information, (_id), (_location) )
-/*PAGE
+/*
+ * _POSIX_Message_queue_Get_fd
+ */
+
+#define _POSIX_Message_queue_Get_fd( _id, _location ) \
+ (POSIX_Message_queue_Control_fd *) \
+ _Objects_Get( &_POSIX_Message_queue_Information_fds, (_id), (_location) )
+
+/*
*
* _POSIX_Message_queue_Is_null
*/
@@ -59,7 +78,7 @@
#define _POSIX_Message_queue_Is_null( _the_mq ) \
(!(_the_mq))
-/*PAGE
+/*
*
* _POSIX_Message_queue_Priority_to_core
*/