summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-08-30 17:12:55 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-08-30 17:12:55 +0000
commit188c82b41251cdafd06b49dd593476354be656b2 (patch)
tree2f6f400c50ae59f9393cb53a5fc96161b30f5fe5 /c/src/exec/score
parent2000-08-30 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-188c82b41251cdafd06b49dd593476354be656b2.tar.bz2
2000-08-30 Joel Sherrill <joel@OARcorp.com>
* Many files: Moved posix/include/rtems/posix/seterr.h to score/include/rtems/seterr.h so it would be available within all APIs.
Diffstat (limited to 'c/src/exec/score')
-rw-r--r--c/src/exec/score/ChangeLog6
-rw-r--r--c/src/exec/score/include/rtems/Makefile.am2
-rw-r--r--c/src/exec/score/include/rtems/seterr.h22
3 files changed, 29 insertions, 1 deletions
diff --git a/c/src/exec/score/ChangeLog b/c/src/exec/score/ChangeLog
index bc1096298a..b636ec81e7 100644
--- a/c/src/exec/score/ChangeLog
+++ b/c/src/exec/score/ChangeLog
@@ -1,4 +1,10 @@
+2000-08-30 Joel Sherrill <joel@OARcorp.com>
+
+ * Many files: Moved posix/include/rtems/posix/seterr.h to
+ score/include/rtems/seterr.h so it would be available within
+ all APIs.
+
2000-08-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/rtems/system.h: Include cpuopts.h for __i386__.
diff --git a/c/src/exec/score/include/rtems/Makefile.am b/c/src/exec/score/include/rtems/Makefile.am
index f4ac2b1717..a2e0bbc47f 100644
--- a/c/src/exec/score/include/rtems/Makefile.am
+++ b/c/src/exec/score/include/rtems/Makefile.am
@@ -4,7 +4,7 @@
AUTOMAKE_OPTIONS = foreign 1.4
-H_FILES = debug.h system.h
+H_FILES = debug.h system.h seterr.h
noinst_HEADERS = $(H_FILES)
diff --git a/c/src/exec/score/include/rtems/seterr.h b/c/src/exec/score/include/rtems/seterr.h
new file mode 100644
index 0000000000..ea951ac8b2
--- /dev/null
+++ b/c/src/exec/score/include/rtems/seterr.h
@@ -0,0 +1,22 @@
+/*
+ * COPYRIGHT (c) 1989-1999.
+ * 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.OARcorp.com/rtems/license.html.
+ *
+ * $Id$
+ */
+
+#ifndef __RTEMS_SET_ERRNO_h
+#define __RTEMS_SET_ERRNO_h
+
+#define set_errno_and_return_minus_one( _error ) \
+ { errno = (_error); return -1; }
+
+#define set_errno_and_return_minus_one_cast( _error, _cast ) \
+ { errno = (_error); return (_cast) -1; }
+
+#endif
+/* end of include file */