4.115
Last change
on this file since be1b8a7 was
9728ef3,
checked in by Sebastian Huber <sebastian.huber@…>, on 07/17/13 at 13:05:56
|
posix: Convert to inline function
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief POSIX Mutex Translate Core Mutex Return Code |
---|
5 | * @ingroup POSIX_MUTEX |
---|
6 | */ |
---|
7 | |
---|
8 | /* |
---|
9 | * COPYRIGHT (c) 1989-2008. |
---|
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.com/license/LICENSE. |
---|
15 | */ |
---|
16 | |
---|
17 | #if HAVE_CONFIG_H |
---|
18 | #include "config.h" |
---|
19 | #endif |
---|
20 | |
---|
21 | #include <rtems/posix/muteximpl.h> |
---|
22 | |
---|
23 | const int _POSIX_Mutex_Return_codes[CORE_MUTEX_STATUS_LAST + 1] = { |
---|
24 | 0, /* CORE_MUTEX_STATUS_SUCCESSFUL */ |
---|
25 | EBUSY, /* CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT */ |
---|
26 | EDEADLK, /* CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED */ |
---|
27 | EPERM, /* CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE */ |
---|
28 | EINVAL, /* CORE_MUTEX_WAS_DELETED */ |
---|
29 | ETIMEDOUT, /* CORE_MUTEX_TIMEOUT */ |
---|
30 | #ifdef __RTEMS_STRICT_ORDER_MUTEX__ |
---|
31 | EDEADLK, /* CORE_MUTEX_RELEASE_NOT_ORDER */ |
---|
32 | #endif |
---|
33 | EINVAL /* CORE_MUTEX_STATUS_CEILING_VIOLATED */ |
---|
34 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.