summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/seterr.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cpukit/score/include/rtems/seterr.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/seterr.h b/cpukit/score/include/rtems/seterr.h
new file mode 100644
index 0000000000..ea951ac8b2
--- /dev/null
+++ b/cpukit/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 */