From c5858efa68a3a021ef7778f25523562f4d4bb7d6 Mon Sep 17 00:00:00 2001 From: Jennifer Averett Date: Wed, 5 Jan 2000 17:16:02 +0000 Subject: Added priority conversion between POSIX and core priorities. --- c/src/exec/posix/include/rtems/posix/mqueue.h | 31 +++++++++++++++++++++++++-- cpukit/posix/include/rtems/posix/mqueue.h | 31 +++++++++++++++++++++++++-- 2 files changed, 58 insertions(+), 4 deletions(-) diff --git a/c/src/exec/posix/include/rtems/posix/mqueue.h b/c/src/exec/posix/include/rtems/posix/mqueue.h index 121654f4b4..1c1201fef1 100644 --- a/c/src/exec/posix/include/rtems/posix/mqueue.h +++ b/c/src/exec/posix/include/rtems/posix/mqueue.h @@ -36,6 +36,7 @@ typedef struct { boolean named; boolean linked; boolean blocking; + int oflag; unsigned32 open_count; CORE_message_queue_Control Message_queue; struct sigevent notification; @@ -119,7 +120,7 @@ int _POSIX_Message_queue_Send_support( mqd_t mqdes, const char *msg_ptr, unsigned32 msg_len, - Priority_Control msg_prio, + unsigned32 msg_prio, Watchdog_Interval timeout ); @@ -199,10 +200,36 @@ int _POSIX_Message_queue_Name_to_id( * XXX */ -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 ); +/* + * _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 +); + +/*PAGE + * + * _POSIX_Message_queue_Translate_core_message_queue_return_code + * + * DESCRIPTION: + * + * XXX + */ + +int _POSIX_Message_queue_Translate_core_message_queue_return_code( + unsigned32 the_message_queue_status +); + + #include #if defined(RTEMS_MULTIPROCESSING) #include diff --git a/cpukit/posix/include/rtems/posix/mqueue.h b/cpukit/posix/include/rtems/posix/mqueue.h index 121654f4b4..1c1201fef1 100644 --- a/cpukit/posix/include/rtems/posix/mqueue.h +++ b/cpukit/posix/include/rtems/posix/mqueue.h @@ -36,6 +36,7 @@ typedef struct { boolean named; boolean linked; boolean blocking; + int oflag; unsigned32 open_count; CORE_message_queue_Control Message_queue; struct sigevent notification; @@ -119,7 +120,7 @@ int _POSIX_Message_queue_Send_support( mqd_t mqdes, const char *msg_ptr, unsigned32 msg_len, - Priority_Control msg_prio, + unsigned32 msg_prio, Watchdog_Interval timeout ); @@ -199,10 +200,36 @@ int _POSIX_Message_queue_Name_to_id( * XXX */ -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 ); +/* + * _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 +); + +/*PAGE + * + * _POSIX_Message_queue_Translate_core_message_queue_return_code + * + * DESCRIPTION: + * + * XXX + */ + +int _POSIX_Message_queue_Translate_core_message_queue_return_code( + unsigned32 the_message_queue_status +); + + #include #if defined(RTEMS_MULTIPROCESSING) #include -- cgit v1.2.3