4.104.114.84.95
Last change
on this file since c64e4ed4 was
c64e4ed4,
checked in by Joel Sherrill <joel.sherrill@…>, on 01/15/96 at 21:50:28
|
updates from Tony Bennett for PA and UNIX ports
|
-
Property mode set to
100644
|
File size:
825 bytes
|
Rev | Line | |
---|
[c64e4ed4] | 1 | |
---|
[b06e68ef] | 2 | /* |
---|
[c64e4ed4] | 3 | * @(#)error.h 1.3 - 95/10/25 |
---|
[b06e68ef] | 4 | * |
---|
| 5 | * |
---|
| 6 | * Defines and externs for rtems error reporting |
---|
| 7 | * |
---|
| 8 | * $Id$ |
---|
| 9 | */ |
---|
| 10 | |
---|
[c64e4ed4] | 11 | #ifndef __RTEMS_ERROR_h |
---|
| 12 | #define __RTEMS_ERROR_h |
---|
| 13 | |
---|
[b06e68ef] | 14 | /* |
---|
| 15 | * rtems_error() and rtems_panic() support |
---|
| 16 | */ |
---|
| 17 | |
---|
| 18 | #define RTEMS_ERROR_ERRNO (1<<((sizeof(int) * 8) - 2)) /* hi bit; use 'errno' */ |
---|
| 19 | #define RTEMS_ERROR_PANIC (RTEMS_ERROR_ERRNO / 2) /* err fatal; no return */ |
---|
| 20 | #define RTEMS_ERROR_ABORT (RTEMS_ERROR_ERRNO / 4) /* err is fatal; panic */ |
---|
| 21 | |
---|
| 22 | #define RTEMS_ERROR_MASK (RTEMS_ERROR_ERRNO | RTEMS_ERROR_ABORT | \ |
---|
| 23 | RTEMS_ERROR_PANIC) /* all */ |
---|
| 24 | |
---|
[c64e4ed4] | 25 | const char *rtems_status_text(rtems_status_code); |
---|
| 26 | int rtems_error(int error_code, const char *printf_format, ...); |
---|
| 27 | void rtems_panic(const char *printf_format, ...); |
---|
[b06e68ef] | 28 | |
---|
| 29 | extern int rtems_panic_in_progress; |
---|
| 30 | |
---|
[c64e4ed4] | 31 | #endif |
---|
| 32 | /* end of include file */ |
---|
Note: See
TracBrowser
for help on using the repository browser.