diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-01 06:38:59 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-01 06:38:59 +0000 |
commit | 3699e143d3d134fad8fe5dc9fe87b1b150160fac (patch) | |
tree | 182f8efb6b2e2947cdd69170b40a7196aa19a565 /testsuites/support/include/tmacros.h | |
parent | 2009-11-01 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-3699e143d3d134fad8fe5dc9fe87b1b150160fac.tar.bz2 |
Add PRIxino_t, PRIdoff_t, PRIxblksize_t, PRIxblkcnt_t.
Comment cleanups.
Diffstat (limited to 'testsuites/support/include/tmacros.h')
-rw-r--r-- | testsuites/support/include/tmacros.h | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/testsuites/support/include/tmacros.h b/testsuites/support/include/tmacros.h index f4ea657c31..de7a2145aa 100644 --- a/testsuites/support/include/tmacros.h +++ b/testsuites/support/include/tmacros.h @@ -253,9 +253,12 @@ extern volatile uint32_t _Thread_Dispatch_disable_level; } /* - * HACK: PRItime_t: inttypes.h-style macro to print a time_t. - * The implementation below presumes time_t to be a "long". + * Various inttypes.h-stype macros to assist printing + * certain system types on different targets. */ + +/* HACK: Presume time_t to be a "long" */ +/* HACK: There is no portable way to print time_t's */ #define PRItime_t "ld" #if defined(RTEMS_USE_16_BIT_OBJECT) @@ -282,15 +285,29 @@ extern volatile uint32_t _Thread_Dispatch_disable_level; #define PRIdrtems_task_argument PRIdThread_Entry_numeric_type /* rtems_event_set is a typedef to unit32_t */ -#define PRIxrtems_event_set PRIx32 +#define PRIxrtems_event_set PRIx32 /* HACK: newlib defines pthread_t as a typedef to __uint32_t */ /* HACK: There is no portable way to print pthread_t's */ -#define PRIxpthread_t PRIx32 +#define PRIxpthread_t PRIx32 /* rtems_signal_set is a typedef to uint32_t */ #define PRIxrtems_signal_set PRIx32 +/* newlib's ino_t is a typedef to "unsigned long" */ +#define PRIxino_t "lx" + +/* newlib's off_t is a typedef to "long" */ +#define PRIdoff_t "ld" + +/* IEEE Std 1003.1-2008 defines a type blksize_t, + * newlib currently doesn't have this type, but uses "long" */ +#define PRIxblksize_t "lx" + +/* IEEE Std 1003.1-2008 defines a type blkcnt_t, + * newlib currently doesn't have this type, but uses "long" */ +#define PRIxblkcnt_t "lx" + #ifdef __cplusplus } #endif |