Changeset d420b67 in rtems
- Timestamp:
- 04/14/17 20:18:56 (7 years ago)
- Branches:
- 5, master
- Children:
- 4fd25c4
- Parents:
- 54bdf0c
- git-author:
- Joel Sherrill <joel@…> (04/14/17 20:18:56)
- git-committer:
- Joel Sherrill <joel@…> (04/18/17 16:24:46)
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/configure.ac
r54bdf0c rd420b67 239 239 [Define to 1 if ada/gnat bindings are built-in]) 240 240 241 # These are used to provide <rtems/inttypes.h 242 AC_CHECK_SIZEOF([mode_t]) 243 AC_CHECK_SIZEOF([off_t]) 244 AC_CHECK_SIZEOF([time_t]) 245 AC_CHECK_SIZEOF([size_t]) 246 247 ## Provide sizeof(mode_t) information via cpuopts.h 248 RTEMS_CPUOPT([__RTEMS_SIZEOF_MODE_T__], 249 [true], 250 [${ac_cv_sizeof_mode_t}], 251 [sizeof(mode_t)]) 252 253 ## Provide sizeof(off_t) information via cpuopts.h 254 RTEMS_CPUOPT([__RTEMS_SIZEOF_OFF_T__], 255 [true], 256 [${ac_cv_sizeof_off_t}], 257 [sizeof(off_t)]) 258 259 ## Provide sizeof(time_t) information via cpuopts.h 260 RTEMS_CPUOPT([__RTEMS_SIZEOF_TIME_T__], 261 [true], 262 [${ac_cv_sizeof_time_t}], 263 [sizeof(time_t)]) 264 241 265 ## Then we propagate a private copy of the value into cpuopts.h 242 266 ## so it is always available to the RTEMS header files. … … 252 276 [minor version portion of an RTEMS release]) 253 277 254 RTEMS_CPUOPT([__RTEMS_REVISION__ ],278 RTEMS_CPUOPT([__RTEMS_REVISION___], 255 279 [true], 256 280 [$rtems_revision], … … 278 302 AC_CHECK_DECLS([_POSIX_LOGIN_NAME_MAX],,,[#include <limits.h>]) 279 303 AC_CHECK_DECLS([CHAR_BIT],,,[#include <limits.h>]) 280 281 # FIXME: We should get rid of this.282 # So far, only used in libfs/src/nfsclient/src/dirutils.c283 AC_CHECK_SIZEOF([mode_t])284 AC_CHECK_SIZEOF([off_t])285 286 # FIXME: We should get rid of this. It's a cludge.287 AC_CHECK_SIZEOF([time_t])288 289 AC_CHECK_SIZEOF([size_t])290 304 291 305 # FIXME: Mandatory in SUSv4, optional in SUSv3. -
cpukit/include/rtems/inttypes.h
r54bdf0c rd420b67 22 22 23 23 #include <inttypes.h> 24 #include <rtems/score/cpuopts.h> 24 25 25 26 #ifdef __cplusplus … … 35 36 36 37 /** Helper macro to print "modet" in octal */ 37 #if SIZEOF_MODE_T== 838 #if __RTEMS_SIZEOF_MODE_T__ == 8 38 39 #define PRIomode_t PRIo64 39 #elif SIZEOF_MODE_T== 440 #elif __RTEMS_SIZEOF_MODE_T__ == 4 40 41 #define PRIomode_t PRIo32 41 42 #else 42 #error "PRIomode_t: unsupport size of mode_t"43 #error "PRIomode_t: unsupported size of mode_t" 43 44 #endif 44 45 45 46 /** Helper macro to print "off_t" in octal */ 46 #if SIZEOF_OFF_T== 847 #if __RTEMS_SIZEOF_OFF_T__ == 8 47 48 #define PRIooff_t PRIo64 48 #elif SIZEOF_OFF_T== 449 #elif __RTEMS_SIZEOF_OFF_T__ == 4 49 50 #define PRIooff_t PRIo32 50 51 #else … … 53 54 54 55 /** Helper macro to print "off_t" in decimal */ 55 #if SIZEOF_OFF_T== 856 #if __RTEMS_SIZEOF_OFF_T__ == 8 56 57 #define PRIdoff_t PRId64 57 #elif SIZEOF_OFF_T== 458 #elif __RTEMS_SIZEOF_OFF_T__ == 4 58 59 #define PRIdoff_t PRId32 59 60 #else … … 62 63 63 64 /** Helper macro to print "time_t" in decimal */ 64 #if SIZEOF_TIME_T== 865 #if __RTEMS_SIZEOF_TIME_T__ == 8 65 66 #define PRIdtime_t PRId64 66 #elif SIZEOF_TIME_T== 467 #elif __RTEMS_SIZEOF_TIME_T__ == 4 67 68 #define PRIdtime_t PRId32 68 69 #else 69 70 #error "PRIdtime_t: unsupported size of time_t" 70 71 #endif 72 73 /* 74 * Various inttypes.h-stype macros to assist printing 75 * certain system types on different targets. 76 */ 77 78 #if defined(RTEMS_USE_16_BIT_OBJECT) 79 #define PRIxrtems_id PRIx16 80 #else 81 #define PRIxrtems_id PRIx32 82 #endif 83 84 /* c.f. cpukit/score/include/rtems/score/priority.h */ 85 #define PRIdPriority_Control PRIu64 86 #define PRIxPriority_Control PRIx64 87 /* rtems_task_priority is a typedef to Priority_Control */ 88 #define PRIdrtems_task_priority PRIu32 89 #define PRIxrtems_task_priority PRIx32 90 91 /* c.f. cpukit/score/include/rtems/score/watchdog.h */ 92 #define PRIdWatchdog_Interval PRIu32 93 /* rtems_interval is a typedef to Watchdog_Interval */ 94 #define PRIdrtems_interval PRIdWatchdog_Interval 95 96 /* c.f. cpukit/score/include/rtems/score/thread.h */ 97 #define PRIdThread_Entry_numeric_type PRIuPTR 98 /* rtems_task_argument is a typedef to Thread_Entry_numeric_type */ 99 #define PRIdrtems_task_argument PRIdThread_Entry_numeric_type 100 101 /* rtems_event_set is a typedef to unit32_t */ 102 #define PRIxrtems_event_set PRIx32 103 104 /* HACK: newlib defines pthread_t as a typedef to __uint32_t */ 105 /* HACK: There is no portable way to print pthread_t's */ 106 #define PRIxpthread_t PRIx32 107 108 /* rtems_signal_set is a typedef to uint32_t */ 109 #define PRIxrtems_signal_set PRIx32 110 111 /* newlib's ino_t is a typedef to "unsigned long" */ 112 #define PRIxino_t "lx" 71 113 72 114 /**@}*/ -
testsuites/support/include/tmacros.h
r54bdf0c rd420b67 19 19 20 20 #include <inttypes.h> 21 #include <rtems/inttypes.h> 21 22 #include <bsp.h> /* includes <rtems.h> */ 22 23 … … 306 307 } while (0) 307 308 308 /*309 * Various inttypes.h-stype macros to assist printing310 * certain system types on different targets.311 */312 313 #if defined(RTEMS_USE_16_BIT_OBJECT)314 #define PRIxrtems_id PRIx16315 #else316 #define PRIxrtems_id PRIx32317 #endif318 319 /* c.f. cpukit/score/include/rtems/score/priority.h */320 #define PRIdPriority_Control PRIu64321 #define PRIxPriority_Control PRIx64322 /* rtems_task_priority is a typedef to Priority_Control */323 #define PRIdrtems_task_priority PRIu32324 #define PRIxrtems_task_priority PRIx32325 326 /* c.f. cpukit/score/include/rtems/score/watchdog.h */327 #define PRIdWatchdog_Interval PRIu32328 /* rtems_interval is a typedef to Watchdog_Interval */329 #define PRIdrtems_interval PRIdWatchdog_Interval330 331 /* c.f. cpukit/score/include/rtems/score/thread.h */332 #define PRIdThread_Entry_numeric_type PRIuPTR333 /* rtems_task_argument is a typedef to Thread_Entry_numeric_type */334 #define PRIdrtems_task_argument PRIdThread_Entry_numeric_type335 336 /* rtems_event_set is a typedef to unit32_t */337 #define PRIxrtems_event_set PRIx32338 339 /* HACK: newlib defines pthread_t as a typedef to __uint32_t */340 /* HACK: There is no portable way to print pthread_t's */341 #define PRIxpthread_t PRIx32342 343 /* rtems_signal_set is a typedef to uint32_t */344 #define PRIxrtems_signal_set PRIx32345 346 /* newlib's ino_t is a typedef to "unsigned long" */347 #define PRIxino_t "lx"348 349 309 /** 350 310 * This assists in clearly disabling warnings on GCC in certain very
Note: See TracChangeset
for help on using the changeset viewer.