diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-02-05 21:12:03 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-02-05 21:12:03 +0000 |
commit | 787449a9c8d22e1a7d10ae027c735c22e303faec (patch) | |
tree | 9d21073c16dcd91c1417f90c64ef214f15e917a6 /cpukit/libcsupport/include | |
parent | 2003-02-05 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-787449a9c8d22e1a7d10ae027c735c22e303faec.tar.bz2 |
2003-02-05 Joel Sherrill <joel@OARcorp.com>
* include/sys/ioccom.h: Fix so not using internal RTEMS types in libc
code.
Diffstat (limited to 'cpukit/libcsupport/include')
-rw-r--r-- | cpukit/libcsupport/include/sys/ioccom.h | 7 |
1 files changed, 6 insertions, 1 deletions
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 <machine/types.h> + /* * 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)) |