source: rtems/cpukit/rtems/src/semtranslatereturncode.c @ e6b31b27

4.115
Last change on this file since e6b31b27 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 1.5 KB
Line 
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
23const 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#if defined(__RTEMS_STRICT_ORDER_MUTEX__)
33    123,
34#endif
35  RTEMS_INVALID_PRIORITY   /* CORE_MUTEX_STATUS_CEILING_VIOLATED */
36};
37
38const rtems_status_code _Semaphore_Translate_core_semaphore_return_code_[] = {
39  RTEMS_SUCCESSFUL,         /* CORE_SEMAPHORE_STATUS_SUCCESSFUL */
40  RTEMS_UNSATISFIED,        /* CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT */
41  RTEMS_OBJECT_WAS_DELETED, /* CORE_SEMAPHORE_WAS_DELETED */
42  RTEMS_TIMEOUT,            /* CORE_SEMAPHORE_TIMEOUT  */
43  RTEMS_INTERNAL_ERROR,     /* CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED */
44};
Note: See TracBrowser for help on using the repository browser.