1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief Semaphore Translate Core Mutex and Semaphore Return Code |
---|
5 | * @ingroup ClassicSem |
---|
6 | */ |
---|
7 | |
---|
8 | /* |
---|
9 | * COPYRIGHT (c) 1989-2009. |
---|
10 | * On-Line Applications Research Corporation (OAR). |
---|
11 | * |
---|
12 | * The license and distribution terms for this file may be |
---|
13 | * found in the file LICENSE in this distribution or at |
---|
14 | * http://www.rtems.org/license/LICENSE. |
---|
15 | */ |
---|
16 | |
---|
17 | #if HAVE_CONFIG_H |
---|
18 | #include "config.h" |
---|
19 | #endif |
---|
20 | |
---|
21 | #include <rtems/rtems/semimpl.h> |
---|
22 | |
---|
23 | const rtems_status_code _Semaphore_Translate_core_mutex_return_code_[] = { |
---|
24 | RTEMS_SUCCESSFUL, /* CORE_MUTEX_STATUS_SUCCESSFUL */ |
---|
25 | RTEMS_UNSATISFIED, /* CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT */ |
---|
26 | #if defined(RTEMS_POSIX_API) |
---|
27 | RTEMS_UNSATISFIED, /* CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED */ |
---|
28 | #endif |
---|
29 | RTEMS_NOT_OWNER_OF_RESOURCE, /* CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE */ |
---|
30 | RTEMS_OBJECT_WAS_DELETED, /* CORE_MUTEX_WAS_DELETED */ |
---|
31 | RTEMS_TIMEOUT, /* CORE_MUTEX_TIMEOUT */ |
---|
32 | RTEMS_INVALID_PRIORITY /* CORE_MUTEX_STATUS_CEILING_VIOLATED */ |
---|
33 | }; |
---|
34 | |
---|
35 | const rtems_status_code _Semaphore_Translate_core_semaphore_return_code_[] = { |
---|
36 | RTEMS_SUCCESSFUL, /* CORE_SEMAPHORE_STATUS_SUCCESSFUL */ |
---|
37 | RTEMS_UNSATISFIED, /* CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT */ |
---|
38 | RTEMS_OBJECT_WAS_DELETED, /* CORE_SEMAPHORE_WAS_DELETED */ |
---|
39 | RTEMS_TIMEOUT, /* CORE_SEMAPHORE_TIMEOUT */ |
---|
40 | RTEMS_UNSATISFIED /* CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED */ |
---|
41 | }; |
---|