source: rtems/cpukit/posix/src/semaphoretranslatereturncode.c @ c499856

4.11
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on Mar 20, 2014 at 9:10:47 PM

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

  • Property mode set to 100644
File size: 973 bytes
Line 
1/**
2 * @file
3 *
4 * @brief POSIX Semaphore Code Translation Error
5 * @ingroup POSIXAPI
6 */
7
8/*
9 *  POSIX Semaphore Error Translation
10 *
11 *  COPYRIGHT (c) 1989-2007.
12 *  On-Line Applications Research Corporation (OAR).
13 *
14 *  The license and distribution terms for this file may be
15 *  found in the file LICENSE in this distribution or at
16 *  http://www.rtems.org/license/LICENSE.
17 */
18
19#if HAVE_CONFIG_H
20#include "config.h"
21#endif
22
23#include <rtems/posix/semaphoreimpl.h>
24
25const int _POSIX_Semaphore_Return_codes[CORE_SEMAPHORE_STATUS_LAST + 1] = {
26  0,                   /* CORE_SEMAPHORE_STATUS_SUCCESSFUL */
27  EAGAIN,              /* CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT */
28  EAGAIN,              /* CORE_SEMAPHORE_WAS_DELETED */
29  ETIMEDOUT,           /* CORE_SEMAPHORE_TIMEOUT */
30  /* The next error can not occur since we set the maximum
31   * count to the largest value the count can hold.
32   */
33  ENOSYS,              /* CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED */
34};
Note: See TracBrowser for help on using the repository browser.