Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/ioccom.h
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | |||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
#if defined(COMPAT_FREEBSD6) || defined(COMPAT_FREEBSD5) || \ | #if defined(COMPAT_FREEBSD6) || defined(COMPAT_FREEBSD5) || \ | ||||
defined(COMPAT_FREEBSD4) || defined(COMPAT_43) | defined(COMPAT_FREEBSD4) || defined(COMPAT_43) | ||||
#define IOCPARM_IVAL(x) ((int)(intptr_t)(void *)*(caddr_t *)(void *)(x)) | #define IOCPARM_IVAL(x) ((int)(intptr_t)(void *)*(caddr_t *)(void *)(x)) | ||||
#endif | #endif | ||||
#define _IOC_INVALID (_IOC_VOID|_IOC_INOUT) /* Never valid cmd value, | |||||
use as filler */ | |||||
#else | #else | ||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
__BEGIN_DECLS | __BEGIN_DECLS | ||||
int ioctl(int, unsigned long, ...); | int ioctl(int, unsigned long, ...); | ||||
__END_DECLS | __END_DECLS | ||||
#endif | #endif | ||||
#endif /* !_SYS_IOCCOM_H_ */ | #endif /* !_SYS_IOCCOM_H_ */ |