4.104.114.84.95
Last change
on this file since bd71da7 was
bd71da7,
checked in by Joel Sherrill <joel.sherrill@…>, on 04/07/97 at 21:30:42
|
removed noreturn attribute to eliminate warnings.
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Rev | Line | |
---|
[b06e68ef] | 1 | /* |
---|
| 2 | * Defines and externs for rtems error reporting |
---|
| 3 | * |
---|
| 4 | * $Id$ |
---|
| 5 | */ |
---|
| 6 | |
---|
[c64e4ed4] | 7 | #ifndef __RTEMS_ERROR_h |
---|
| 8 | #define __RTEMS_ERROR_h |
---|
| 9 | |
---|
[b06e68ef] | 10 | /* |
---|
| 11 | * rtems_error() and rtems_panic() support |
---|
| 12 | */ |
---|
| 13 | |
---|
| 14 | #define RTEMS_ERROR_ERRNO (1<<((sizeof(int) * 8) - 2)) /* hi bit; use 'errno' */ |
---|
| 15 | #define RTEMS_ERROR_PANIC (RTEMS_ERROR_ERRNO / 2) /* err fatal; no return */ |
---|
| 16 | #define RTEMS_ERROR_ABORT (RTEMS_ERROR_ERRNO / 4) /* err is fatal; panic */ |
---|
| 17 | |
---|
| 18 | #define RTEMS_ERROR_MASK (RTEMS_ERROR_ERRNO | RTEMS_ERROR_ABORT | \ |
---|
| 19 | RTEMS_ERROR_PANIC) /* all */ |
---|
| 20 | |
---|
[c64e4ed4] | 21 | const char *rtems_status_text(rtems_status_code); |
---|
| 22 | int rtems_error(int error_code, const char *printf_format, ...); |
---|
[8389628] | 23 | #ifdef __GNUC__ |
---|
[bd71da7] | 24 | void rtems_panic(const char *printf_format, ...); |
---|
| 25 | /* |
---|
| 26 | * We should be able to use this attribute but gcc complains that |
---|
| 27 | * rtems_panic does in fact return. :( |
---|
| 28 | * |
---|
| 29 | * __attribute__ ((__noreturn__)); |
---|
| 30 | */ |
---|
[8389628] | 31 | #else |
---|
[c64e4ed4] | 32 | void rtems_panic(const char *printf_format, ...); |
---|
[8389628] | 33 | #endif |
---|
[b06e68ef] | 34 | |
---|
| 35 | extern int rtems_panic_in_progress; |
---|
| 36 | |
---|
[c64e4ed4] | 37 | #endif |
---|
| 38 | /* end of include file */ |
---|
Note: See
TracBrowser
for help on using the repository browser.