diff options
| author | daurnimator <quae@daurnimator.com> | 2019-05-20 23:25:11 +1000 |
|---|---|---|
| committer | daurnimator <quae@daurnimator.com> | 2019-06-10 14:40:54 +1000 |
| commit | ae604b446488e2b0931e84c796819d3f817fa66f (patch) | |
| tree | bcb2d28ef241698cf52d0318b9bb9b2aed6ce035 /std/os/bits/linux.zig | |
| parent | a712a5515d2d7a418d77bc419e4fc0a7fe5639f5 (diff) | |
| download | zig-ae604b446488e2b0931e84c796819d3f817fa66f.tar.gz zig-ae604b446488e2b0931e84c796819d3f817fa66f.zip | |
std: add linux kernel_rwf type and preadv2+pwritev2
Diffstat (limited to 'std/os/bits/linux.zig')
| -rw-r--r-- | std/os/bits/linux.zig | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/std/os/bits/linux.zig b/std/os/bits/linux.zig index 8b323fa572..e2bae50fa1 100644 --- a/std/os/bits/linux.zig +++ b/std/os/bits/linux.zig @@ -119,6 +119,23 @@ pub const O_RDONLY = 0o0; pub const O_WRONLY = 0o1; pub const O_RDWR = 0o2; +pub const kernel_rwf = u32; + +/// high priority request, poll if possible +pub const RWF_HIPRI = kernel_rwf(0x00000001); + +/// per-IO O_DSYNC +pub const RWF_DSYNC = kernel_rwf(0x00000002); + +/// per-IO O_SYNC +pub const RWF_SYNC = kernel_rwf(0x00000004); + +/// per-IO, return -EAGAIN if operation would block +pub const RWF_NOWAIT = kernel_rwf(0x00000008); + +/// per-IO O_APPEND +pub const RWF_APPEND = kernel_rwf(0x00000010); + pub const SEEK_SET = 0; pub const SEEK_CUR = 1; pub const SEEK_END = 2; |
