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