- Timestamp:
- Oct 12, 2009, 4:17:19 PM (10 years ago)
- Branches:
- 4.10, 4.11, master
- Children:
- 68b0a2a8
- Parents:
- bff419ff
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libcsupport/include/rtems/error.h
rbff419ff r8ed3d52e 12 12 #define _RTEMS_RTEMS_ERROR_H 13 13 14 #include <rtems/score/interr.h> 15 14 16 #ifdef __cplusplus 15 17 extern "C" { 16 18 #endif 19 20 typedef Internal_errors_t rtems_error_code_t; 17 21 18 22 /* … … 20 24 */ 21 25 22 #define RTEMS_ERROR_ERRNO (1<<((sizeof( int) * 8) - 2)) /* hi bit; use 'errno' */26 #define RTEMS_ERROR_ERRNO (1<<((sizeof(rtems_error_code_t) * CHAR_BIT) - 2)) /* hi bit; use 'errno' */ 23 27 #define RTEMS_ERROR_PANIC (RTEMS_ERROR_ERRNO / 2) /* err fatal; no return */ 24 28 #define RTEMS_ERROR_ABORT (RTEMS_ERROR_ERRNO / 4) /* err is fatal; panic */ … … 28 32 29 33 const char *rtems_status_text(rtems_status_code); 30 int rtems_error( int error_code, const char *printf_format, ...);34 int rtems_error(rtems_error_code_t error_code, const char *printf_format, ...); 31 35 #ifdef __GNUC__ 32 36 void rtems_panic(const char *printf_format, ...);
Note: See TracChangeset
for help on using the changeset viewer.