ioctl.h 396 B

123456789101112
  1. #ifndef _ASM_GENERIC_IOCTL_H
  2. #define _ASM_GENERIC_IOCTL_H
  3. #include <uapi/asm-generic/ioctl.h>
  4. /* provoke compile error for invalid uses of size argument */
  5. extern unsigned int __invalid_size_argument_for_IOC;
  6. #define _IOC_TYPECHECK(t) \
  7. ((sizeof(t) == sizeof(t[1]) && \
  8. sizeof(t) < (1 << _IOC_SIZEBITS)) ? \
  9. sizeof(t) : __invalid_size_argument_for_IOC)
  10. #endif /* _ASM_GENERIC_IOCTL_H */