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

5
Last change on this file since e266d13 was 500a8e9c, checked in by Sebastian Huber <sebastian.huber@…>, on 04/28/16 at 04:26:01

score: Delete RTEMS_STRICT_ORDER_MUTEX

Remove support for strict order mutexes.

Close #2124.

  • Property mode set to 100644
File size: 1.4 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  RTEMS_INVALID_PRIORITY   /* CORE_MUTEX_STATUS_CEILING_VIOLATED */
33};
34
35const 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_INTERNAL_ERROR,     /* CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED */
41};
Note: See TracBrowser for help on using the repository browser.