summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/status.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-10-25 07:45:47 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-10-25 07:45:47 +0000
commit95008c6dc4d1c4cdf63554512ed78b07142da969 (patch)
tree09282f98a224d5f9a3fc72c9c2e8de35a8366fd8 /cpukit/rtems/src/status.c
parent2011-10-25 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-95008c6dc4d1c4cdf63554512ed78b07142da969.tar.bz2
2011-10-25 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/Makefile.am: Add src/status.c. * rtems/include/rtems/rtems/status.h: Make _Status_Object_name_errors_to_status an external variable. * rtems/src/status.c: New (split out from rtems/include/rtems/rtems/status.h).
Diffstat (limited to 'cpukit/rtems/src/status.c')
-rw-r--r--cpukit/rtems/src/status.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/cpukit/rtems/src/status.c b/cpukit/rtems/src/status.c
new file mode 100644
index 0000000000..4414d090a1
--- /dev/null
+++ b/cpukit/rtems/src/status.c
@@ -0,0 +1,29 @@
+/* COPYRIGHT (c) 1989-2008.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+#include <rtems/rtems/status.h>
+
+/**
+ * This array is used to map SuperCore Object Handler return
+ * codes to Classic API status codes.
+ */
+
+const rtems_status_code _Status_Object_name_errors_to_status[] = {
+ /** This maps OBJECTS_SUCCESSFUL to RTEMS_SUCCESSFUL. */
+ RTEMS_SUCCESSFUL,
+ /** This maps OBJECTS_INVALID_NAME to RTEMS_INVALID_NAME. */
+ RTEMS_INVALID_NAME,
+ /** This maps OBJECTS_INVALID_ADDRESS to RTEMS_INVALID_NAME. */
+ RTEMS_INVALID_ADDRESS,
+ /** This maps OBJECTS_INVALID_ID to RTEMS_INVALID_ADDRESS. */
+ RTEMS_INVALID_ID,
+ /** This maps OBJECTS_INVALID_NODE to RTEMS_INVALID_NODE. */
+ RTEMS_INVALID_NODE
+};