io_engine_aio_bindings/lib.rs
1#![allow(non_upper_case_globals)]
2#![allow(non_camel_case_types)]
3#![allow(non_snake_case)]
4
5include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
6
7/*
8 * extracted from https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/fs.h#L372
9 * Flags for preadv2/pwritev2:
10 */
11
12/* per-IO O_DSYNC */
13//#define RWF_DSYNC ((__force __kernel_rwf_t)0x00000002)
14pub const RWF_DSYNC: u32 = 2;
15
16/* per-IO O_SYNC */
17//#define RWF_SYNC ((__force __kernel_rwf_t)0x00000004)
18pub const RWF_SYNC: u32 = 4;
19
20/* per-IO, return -EAGAIN if operation would block */
21//#define RWF_NOWAIT ((__force __kernel_rwf_t)0x00000008)
22pub const RWF_NOWAIT: u32 = 8;