summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2003-02-05 21:12:03 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2003-02-05 21:12:03 +0000
commit787449a9c8d22e1a7d10ae027c735c22e303faec (patch)
tree9d21073c16dcd91c1417f90c64ef214f15e917a6 /cpukit/libcsupport
parent2003-02-05 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-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')
-rw-r--r--cpukit/libcsupport/ChangeLog5
-rw-r--r--cpukit/libcsupport/include/sys/ioccom.h7
2 files changed, 11 insertions, 1 deletions
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 <joel@OARcorp.com>
+
+ * include/sys/ioccom.h: Fix so not using internal RTEMS types in libc
+ code.
+
2003-02-03 Joel Sherrill <joel@OARcorp.com>
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 <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))