From 787449a9c8d22e1a7d10ae027c735c22e303faec Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 5 Feb 2003 21:12:03 +0000 Subject: 2003-02-05 Joel Sherrill * include/sys/ioccom.h: Fix so not using internal RTEMS types in libc code. --- cpukit/libcsupport/ChangeLog | 5 +++++ cpukit/libcsupport/include/sys/ioccom.h | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/cpukit/libcsupport/ChangeLog b/cpukit/libcsupport/ChangeLog index 4860e20667..fc2832a2b3 100644 --- a/cpukit/libcsupport/ChangeLog +++ b/cpukit/libcsupport/ChangeLog @@ -1,3 +1,8 @@ +2003-02-05 Joel Sherrill + + * include/sys/ioccom.h: Fix so not using internal RTEMS types in libc + code. + 2003-02-03 Joel Sherrill PR 338/filesystem diff --git a/cpukit/libcsupport/include/sys/ioccom.h b/cpukit/libcsupport/include/sys/ioccom.h index ed73439f3f..e8a46395c1 100644 --- a/cpukit/libcsupport/include/sys/ioccom.h +++ b/cpukit/libcsupport/include/sys/ioccom.h @@ -37,6 +37,8 @@ #ifndef _SYS_IOCCOM_H_ #define _SYS_IOCCOM_H_ +#include + /* * Ioctl's have the command encoded in the lower word, and the size of * any in or out parameters in the upper word. The high 3 bits of the @@ -55,7 +57,10 @@ #define IOC_DIRMASK 0xe0000000 /* mask for IN/OUT/VOID */ #define _IOC(inout,group,num,len) \ - ((unsigned32)inout | (unsigned32) ((unsigned32)((unsigned32)len & IOCPARM_MASK) << 16) | (unsigned32)((group) << 8) | (unsigned32)(num)) + ((u_int32_t)inout | \ + (u_int32_t) ((u_int32_t)((u_int32_t)len & IOCPARM_MASK) << 16) | \ + (u_int32_t)((group) << 8) | \ + (u_int32_t)(num)) #define _IO(g,n) _IOC(IOC_VOID, (g), (n), 0) #define _IOR(g,n,t) _IOC(IOC_OUT, (g), (n), sizeof(t)) #define _IOW(g,n,t) _IOC(IOC_IN, (g), (n), sizeof(t)) -- cgit v1.2.3