From 3699e143d3d134fad8fe5dc9fe87b1b150160fac Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Sun, 1 Nov 2009 06:38:59 +0000 Subject: Add PRIxino_t, PRIdoff_t, PRIxblksize_t, PRIxblkcnt_t. Comment cleanups. --- testsuites/support/include/tmacros.h | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'testsuites/support') 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 -- cgit v1.2.3