From 188c82b41251cdafd06b49dd593476354be656b2 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 30 Aug 2000 17:12:55 +0000 Subject: 2000-08-30 Joel Sherrill * Many files: Moved posix/include/rtems/posix/seterr.h to score/include/rtems/seterr.h so it would be available within all APIs. --- c/src/exec/score/ChangeLog | 6 ++++++ c/src/exec/score/include/rtems/Makefile.am | 2 +- c/src/exec/score/include/rtems/seterr.h | 22 ++++++++++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 c/src/exec/score/include/rtems/seterr.h (limited to 'c/src/exec/score') 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 + + * 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 * 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 */ -- cgit v1.2.3