4.104.114.84.95
Last change
on this file since 9da0994 was
9da0994,
checked in by Joel Sherrill <joel.sherrill@…>, on 11/15/99 at 17:15:58
|
Split ITRON Message Buffer Manager into multiple files.
|
-
Property mode set to
100644
|
File size:
1003 bytes
|
Line | |
---|
1 | /* |
---|
2 | * ITRON Message Buffer Manager |
---|
3 | * |
---|
4 | * The license and distribution terms for this file may be |
---|
5 | * found in the file LICENSE in this distribution or at |
---|
6 | * http://www.OARcorp.com/rtems/license.html. |
---|
7 | * |
---|
8 | * $Id$ |
---|
9 | */ |
---|
10 | |
---|
11 | #include <itron.h> |
---|
12 | |
---|
13 | #include <rtems/itron/msgbuffer.h> |
---|
14 | #include <rtems/itron/task.h> |
---|
15 | |
---|
16 | /* |
---|
17 | * _ITRON_Message_buffer_Translate_core_message_buffer_return_code |
---|
18 | * |
---|
19 | * This routine translates a core message buffer object status |
---|
20 | * into the appropriate ITRON status code. |
---|
21 | */ |
---|
22 | |
---|
23 | ER _ITRON_Message_buffer_Translate_core_message_buffer_return_code( |
---|
24 | CORE_message_queue_Status status |
---|
25 | ) |
---|
26 | { |
---|
27 | switch (status) { |
---|
28 | case CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL: |
---|
29 | return E_OK; |
---|
30 | case CORE_MESSAGE_QUEUE_STATUS_TOO_MANY: |
---|
31 | return E_TMOUT; |
---|
32 | case CORE_MESSAGE_QUEUE_STATUS_INVALID_SIZE: |
---|
33 | return E_PAR; |
---|
34 | case CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT: |
---|
35 | return E_TMOUT; |
---|
36 | case CORE_MESSAGE_QUEUE_STATUS_TIMEOUT: |
---|
37 | return E_TMOUT; |
---|
38 | default: |
---|
39 | return E_ID; |
---|
40 | } |
---|
41 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.