summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/inline/rtems/posix/mqueue.inl
diff options
context:
space:
mode:
authorJennifer Averett <Jennifer.Averett@OARcorp.com>2000-01-05 17:16:48 +0000
committerJennifer Averett <Jennifer.Averett@OARcorp.com>2000-01-05 17:16:48 +0000
commit65800393f6f1d68e0ee6c962cf8f6b4e85cb24a8 (patch)
treee9b17e3d7e4438a662beadd62bd755a3b206f381 /cpukit/posix/inline/rtems/posix/mqueue.inl
parentAdded priority conversion between POSIX and core priorities. (diff)
downloadrtems-65800393f6f1d68e0ee6c962cf8f6b4e85cb24a8.tar.bz2
Added priority conversion between POSIX and core.
Diffstat (limited to '')
-rw-r--r--cpukit/posix/inline/rtems/posix/mqueue.inl19
1 files changed, 17 insertions, 2 deletions
diff --git a/cpukit/posix/inline/rtems/posix/mqueue.inl b/cpukit/posix/inline/rtems/posix/mqueue.inl
index 17156867b8..e6da6674b4 100644
--- a/cpukit/posix/inline/rtems/posix/mqueue.inl
+++ b/cpukit/posix/inline/rtems/posix/mqueue.inl
@@ -83,11 +83,26 @@ RTEMS_INLINE_ROUTINE boolean _POSIX_Message_queue_Is_null (
* _POSIX_Message_queue_Priority_to_core
*/
-RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Message_queue_Priority_to_core(
+RTEMS_INLINE_ROUTINE CORE_message_queue_Submit_types _POSIX_Message_queue_Priority_to_core(
unsigned int priority
)
{
- return priority;
+ return priority * -1;
+}
+
+/*
+ * _POSIX_Message_queue_Priority_from_core
+ *
+ * DESCRIPTION:
+ *
+ * XXX
+ */
+
+RTEMS_INLINE_ROUTINE unsigned int _POSIX_Message_queue_Priority_from_core(
+ CORE_message_queue_Submit_types priority
+)
+{
+ return abs( priority );
}
#endif