Changeset 3699e143 in rtems


Ignore:
Timestamp:
Nov 1, 2009, 6:38:59 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
9158114
Parents:
c3fc9d8
Message:

Add PRIxino_t, PRIdoff_t, PRIxblksize_t, PRIxblkcnt_t.
Comment cleanups.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/support/include/tmacros.h

    rc3fc9d8 r3699e143  
    254254
    255255/*
    256  * HACK: PRItime_t: inttypes.h-style macro to print a time_t.
    257  * The implementation below presumes time_t to be a "long".
    258  */
     256 * Various inttypes.h-stype macros to assist printing
     257 * certain system types on different targets.
     258 */
     259 
     260/* HACK: Presume time_t to be a "long" */
     261/* HACK: There is no portable way to print time_t's */
    259262#define PRItime_t "ld"
    260263
     
    283286
    284287/* rtems_event_set is a typedef to unit32_t */
    285 #define PRIxrtems_event_set     PRIx32
     288#define PRIxrtems_event_set PRIx32
    286289
    287290/* HACK: newlib defines pthread_t as a typedef to __uint32_t */
    288291/* HACK: There is no portable way to print pthread_t's */
    289 #define PRIxpthread_t           PRIx32
     292#define PRIxpthread_t PRIx32
    290293
    291294/* rtems_signal_set is a typedef to uint32_t */
    292295#define PRIxrtems_signal_set PRIx32
    293296
     297/* newlib's ino_t is a typedef to "unsigned long" */
     298#define PRIxino_t "lx"
     299
     300/* newlib's off_t is a typedef to "long" */
     301#define PRIdoff_t "ld"
     302
     303/* IEEE Std 1003.1-2008 defines a type blksize_t,
     304 * newlib currently doesn't have this type, but uses "long" */
     305#define PRIxblksize_t "lx"
     306
     307/* IEEE Std 1003.1-2008 defines a type blkcnt_t,
     308 * newlib currently doesn't have this type, but uses "long" */
     309#define PRIxblkcnt_t "lx"
     310
    294311#ifdef __cplusplus
    295312}
Note: See TracChangeset for help on using the changeset viewer.