Mirror of strace – the linux syscall tracer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ioctl_iocdef.c 775B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) 2017 Alexey Neyman <stilor@att.net>
  3. * Copyright (c) 2017-2018 The strace developers.
  4. * All rights reserved.
  5. *
  6. * SPDX-License-Identifier: LGPL-2.1-or-later
  7. */
  8. /*
  9. * This file is *PREPROCESSED*, not *COMPILED* for host and the result
  10. * is included into ioctlsort (which is compiled for build). Since some
  11. * of these values are used in structure initializers, they cannot be
  12. * defined as 'const unsigned int' - instead, they have to be macros.
  13. * Hence, the result of preprocessing will be run through sed to change
  14. * 'DEFINE' into '#define'
  15. */
  16. #include <linux/ioctl.h>
  17. DEFINE HOST_IOC_NONE _IOC_NONE
  18. DEFINE HOST_IOC_READ _IOC_READ
  19. DEFINE HOST_IOC_WRITE _IOC_WRITE
  20. DEFINE HOST_IOC_SIZESHIFT _IOC_SIZESHIFT
  21. DEFINE HOST_IOC_DIRSHIFT _IOC_DIRSHIFT