diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-08-30 17:12:55 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-08-30 17:12:55 +0000 |
commit | 188c82b41251cdafd06b49dd593476354be656b2 (patch) | |
tree | 2f6f400c50ae59f9393cb53a5fc96161b30f5fe5 /c/src/exec/score/include/rtems/seterr.h | |
parent | 2000-08-30 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-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/include/rtems/seterr.h')
-rw-r--r-- | c/src/exec/score/include/rtems/seterr.h | 22 |
1 files changed, 22 insertions, 0 deletions
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 */ |