X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/2d21ac55c334faf3a56e5634905ed6987fc787d4..bb59bff194111743b33cc36712410b5656329d3c:/bsd/sys/ioccom.h diff --git a/bsd/sys/ioccom.h b/bsd/sys/ioccom.h index eebf1e745..cc22148f0 100644 --- a/bsd/sys/ioccom.h +++ b/bsd/sys/ioccom.h @@ -64,6 +64,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 @@ -76,15 +78,15 @@ #define IOCPARM_MAX (IOCPARM_MASK + 1) /* max size of ioctl args */ /* no parameters */ -#define IOC_VOID (unsigned long)0x20000000 +#define IOC_VOID (__uint32_t)0x20000000 /* copy parameters out */ -#define IOC_OUT (unsigned long)0x40000000 +#define IOC_OUT (__uint32_t)0x40000000 /* copy parameters in */ -#define IOC_IN (unsigned long)0x80000000 +#define IOC_IN (__uint32_t)0x80000000 /* copy paramters in and out */ #define IOC_INOUT (IOC_IN|IOC_OUT) /* mask for IN/OUT/VOID */ -#define IOC_DIRMASK (unsigned long)0xe0000000 +#define IOC_DIRMASK (__uint32_t)0xe0000000 #define _IOC(inout,group,num,len) \ (inout | ((len & IOCPARM_MASK) << 16) | ((group) << 8) | (num))