diff options
Diffstat (limited to 'c/src/lib/include/rtems/error.h')
-rw-r--r-- | c/src/lib/include/rtems/error.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/c/src/lib/include/rtems/error.h b/c/src/lib/include/rtems/error.h deleted file mode 100644 index 621ee16f65..0000000000 --- a/c/src/lib/include/rtems/error.h +++ /dev/null @@ -1,32 +0,0 @@ - -/* - * @(#)error.h 1.3 - 95/10/25 - * - * - * Defines and externs for rtems error reporting - * - * $Id$ - */ - -#ifndef __RTEMS_ERROR_h -#define __RTEMS_ERROR_h - -/* - * rtems_error() and rtems_panic() support - */ - -#define RTEMS_ERROR_ERRNO (1<<((sizeof(int) * 8) - 2)) /* hi bit; use 'errno' */ -#define RTEMS_ERROR_PANIC (RTEMS_ERROR_ERRNO / 2) /* err fatal; no return */ -#define RTEMS_ERROR_ABORT (RTEMS_ERROR_ERRNO / 4) /* err is fatal; panic */ - -#define RTEMS_ERROR_MASK (RTEMS_ERROR_ERRNO | RTEMS_ERROR_ABORT | \ - RTEMS_ERROR_PANIC) /* all */ - -const char *rtems_status_text(rtems_status_code); -int rtems_error(int error_code, const char *printf_format, ...); -void rtems_panic(const char *printf_format, ...); - -extern int rtems_panic_in_progress; - -#endif -/* end of include file */ |