source: rtems/c/src/exec/rtems/headers/status.h @ eb5a7e07

4.104.114.84.95
Last change on this file since eb5a7e07 was 3a4ae6c, checked in by Joel Sherrill <joel.sherrill@…>, on 09/11/95 at 19:35:39

The word "RTEMS" almost completely removed from the core.

Configuration Table Template file added and all tests
modified to use this. All gvar.h and conftbl.h files
removed from test directories.

Configuration parameter maximum_devices added.

Core semaphore and mutex handlers added and RTEMS API Semaphore
Manager updated to reflect this.

Initialization sequence changed to invoke API specific initialization
routines. Initialization tasks table now owned by RTEMS Tasks Manager.

Added user extension for post-switch.

Utilized user extensions to implement API specific functionality
like signal dispatching.

Added extensions to the System Initialization Thread so that an
API can register a function to be invoked while the system
is being initialized. These are largely equivalent to the
pre-driver and post-driver hooks.

Added the Modules file oar-go32_p5, modified oar-go32, and modified
the file make/custom/go32.cfg to look at an environment varable which
determines what CPU model is being used.

All BSPs updated to reflect named devices and clock driver's IOCTL
used by the Shared Memory Driver. Also merged clock isr into
main file and removed ckisr.c where possible.

Updated spsize to reflect new and moved variables.

Makefiles for the executive source and include files updated to show
break down of files into Core, RTEMS API, and Neither.

Header and inline files installed into subdirectory based on whether
logically in the Core or a part of the RTEMS API.

  • Property mode set to 100644
File size: 3.5 KB
Line 
1/*  status.h
2 *
3 *  This include file contains the status codes returned from the
4 *  executive directives.
5 *
6 *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
7 *  On-Line Applications Research Corporation (OAR).
8 *  All rights assigned to U.S. Government, 1994.
9 *
10 *  This material may be reproduced by or for the U.S. Government pursuant
11 *  to the copyright license under the clause at DFARS 252.227-7013.  This
12 *  notice must appear in all copies of this file and its derivatives.
13 *
14 *  $Id$
15 */
16
17#ifndef __RTEMS_STATUS_h
18#define __RTEMS_STATUS_h
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24/* types */
25
26/* enumerated constants */
27
28typedef enum {
29  RTEMS_SUCCESSFUL               =  0, /* successful completion */
30  RTEMS_TASK_EXITTED             =  1, /* returned from a thread */
31  RTEMS_MP_NOT_CONFIGURED        =  2, /* multiprocessing not configured */
32  RTEMS_INVALID_NAME             =  3, /* invalid object name */
33  RTEMS_INVALID_ID               =  4, /* invalid object id */
34  RTEMS_TOO_MANY                 =  5, /* too many */
35  RTEMS_TIMEOUT                  =  6, /* timed out waiting */
36  RTEMS_OBJECT_WAS_DELETED       =  7, /* object deleted while waiting */
37  RTEMS_INVALID_SIZE             =  8, /* specified size was invalid */
38  RTEMS_INVALID_ADDRESS          =  9, /* address specified is invalid */
39  RTEMS_INVALID_NUMBER           = 10, /* number was invalid */
40  RTEMS_NOT_DEFINED              = 11, /* item has not been initialized */
41  RTEMS_RESOURCE_IN_USE          = 12, /* resources still outstanding */
42  RTEMS_UNSATISFIED              = 13, /* request not satisfied */
43  RTEMS_INCORRECT_STATE          = 14, /* thread is in wrong state */
44  RTEMS_ALREADY_SUSPENDED        = 15, /* thread already in state */
45  RTEMS_ILLEGAL_ON_SELF          = 16, /* illegal on calling thread */
46  RTEMS_ILLEGAL_ON_REMOTE_OBJECT = 17, /* illegal for remote object */
47  RTEMS_CALLED_FROM_ISR          = 18, /* called from wrong environment */
48  RTEMS_INVALID_PRIORITY         = 19, /* invalid thread priority */
49  RTEMS_INVALID_CLOCK            = 20, /* invalid date/time */
50  RTEMS_INVALID_NODE             = 21, /* invalid node id */
51  RTEMS_NOT_CONFIGURED           = 22, /* directive not configured */
52  RTEMS_NOT_OWNER_OF_RESOURCE    = 23, /* not owner of resource */
53  RTEMS_NOT_IMPLEMENTED          = 24, /* directive not implemented */
54  RTEMS_INTERNAL_ERROR           = 25, /* RTEMS inconsistency detected */
55  RTEMS_NO_MEMORY                = 26  /* could not get enough memory */
56} rtems_status_code;
57
58#define RTEMS_STATUS_CODES_FIRST RTEMS_SUCCESSFUL
59#define RTEMS_STATUS_CODES_LAST  RTEMS_NO_MEMORY
60
61extern rtems_status_code _Status_Object_name_errors_to_status[];
62
63#ifdef INIT
64rtems_status_code _Status_Object_name_errors_to_status[] = {
65  RTEMS_SUCCESSFUL,      /* OBJECTS_SUCCESSFUL */
66  RTEMS_INVALID_NAME,    /* OBJECTS_INVALID_NAME */
67  RTEMS_INVALID_NODE     /* OBJECTS_INVALID_NODE */
68};
69#endif
70
71/*
72 *  rtems_is_status_successful
73 *
74 *  DESCRIPTION:
75 *
76 *  This function returns TRUE if the status code is equal to RTEMS_SUCCESSFUL,
77 *  and FALSE otherwise.
78 */
79
80STATIC INLINE boolean rtems_is_status_successful (
81  rtems_status_code code
82);
83
84/*
85 *  rtems_are_statuses_equal
86 *
87 *  DESCRIPTION:
88 *
89 *  This function returns TRUE if the status code1 is equal to code2,
90 *  and FALSE otherwise.
91 */
92
93STATIC INLINE boolean rtems_are_statuses_equal (
94  rtems_status_code code1,
95  rtems_status_code code2
96);
97
98#include <rtems/rtems/status.inl>
99
100#ifdef __cplusplus
101}
102#endif
103
104#endif
105/* end of include file */
Note: See TracBrowser for help on using the repository browser.