[rtems commit] rtems/inttypes.h: Add PRIdioctl_command_t

Joel Sherrill joel at rtems.org
Mon Apr 24 22:21:55 UTC 2017


Module:    rtems
Branch:    master
Commit:    473a3cd00767e5deb8f5be7be2fcbe80fcb6535b
Changeset: http://git.rtems.org/rtems/commit/?id=473a3cd00767e5deb8f5be7be2fcbe80fcb6535b

Author:    Joel Sherrill <joel at rtems.org>
Date:      Sun Apr 23 12:53:44 2017 -0500

rtems/inttypes.h: Add PRIdioctl_command_t

---

 cpukit/include/rtems/inttypes.h | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/cpukit/include/rtems/inttypes.h b/cpukit/include/rtems/inttypes.h
index 023353f..1d767d9 100644
--- a/cpukit/include/rtems/inttypes.h
+++ b/cpukit/include/rtems/inttypes.h
@@ -120,11 +120,12 @@ extern "C" {
 /* rtems_task_argument is a typedef to Thread_Entry_numeric_type */
 #define PRIdrtems_task_argument PRIdThread_Entry_numeric_type
 
-/* rtems_event_set is a typedef to unit32_t */
+/* rtems_event_set is a typedef to uint32_t */
 #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 */
+/* newlib defines pthread_t as a typedef to __uint32_t which matches
+ * RTEMS expectations for an Object ID.
+ */
 #define PRIxpthread_t PRIx32
 
 /* rtems_signal_set is a typedef to uint32_t */
@@ -133,6 +134,9 @@ extern "C" {
 /* newlib's ino_t is a typedef to "unsigned long" */
 #define PRIxino_t "lx"
 
+/* ioctl_command_t */
+#define PRIdioctl_command_t PRId32
+
 /**@}*/
 
 #ifdef __cplusplus



More information about the vc mailing list