diff options
author | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2000-01-05 17:16:02 +0000 |
---|---|---|
committer | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2000-01-05 17:16:02 +0000 |
commit | c5858efa68a3a021ef7778f25523562f4d4bb7d6 (patch) | |
tree | 781f9f708b37874610e313571e0115fc37369a29 /c/src/exec/posix/include/rtems/posix | |
parent | + Changed priority to the POSIX priority type. (diff) | |
download | rtems-c5858efa68a3a021ef7778f25523562f4d4bb7d6.tar.bz2 |
Added priority conversion between POSIX and core priorities.
Diffstat (limited to 'c/src/exec/posix/include/rtems/posix')
-rw-r--r-- | c/src/exec/posix/include/rtems/posix/mqueue.h | 31 |
1 files changed, 29 insertions, 2 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 <rtems/posix/mqueue.inl> #if defined(RTEMS_MULTIPROCESSING) #include <rtems/posix/mqueuemp.h> |