• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: MIT */
2 #ifndef LIBURING_COMPAT_H
3 #define LIBURING_COMPAT_H
4 
5 #include <stdint.h>
6 #include <inttypes.h>
7 #include <linux/openat2.h>
8 #include <linux/ioctl.h>
9 
10 typedef int __kernel_rwf_t;
11 
12 #ifndef BLOCK_URING_CMD_DISCARD
13 #define BLOCK_URING_CMD_DISCARD                        _IO(0x12, 0)
14 #endif
15 
16 #ifndef __ANDROID__
17 
18 struct __kernel_timespec {
19         int64_t         tv_sec;
20         long long       tv_nsec;
21 };
22 
23 #endif
24 
25 /* <linux/time_types.h> is not available, so it can't be included */
26 #define UAPI_LINUX_IO_URING_H_SKIP_LINUX_TIME_TYPES_H 1
27 
28 #endif
29