aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os/bits/linux.zig
diff options
context:
space:
mode:
authorBiolunar <mahdi@khanalizadeh.com>2021-07-22 01:27:59 +0200
committerGitHub <noreply@github.com>2021-07-22 01:27:59 +0200
commit093e10b66e5db5fcbccf941b4ffdab6330a83faa (patch)
treecdbe4872a7e47aa8eccb2302a428a0ed7a6e6270 /lib/std/os/bits/linux.zig
parent680fa880d63daa6058a084f1c107162e40e18aa8 (diff)
downloadzig-093e10b66e5db5fcbccf941b4ffdab6330a83faa.tar.gz
zig-093e10b66e5db5fcbccf941b4ffdab6330a83faa.zip
linux stdlib: fix definition of RW flags (#9428)
Diffstat (limited to 'lib/std/os/bits/linux.zig')
-rw-r--r--lib/std/os/bits/linux.zig10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/std/os/bits/linux.zig b/lib/std/os/bits/linux.zig
index 69fdbc84fb..81bdfa6608 100644
--- a/lib/std/os/bits/linux.zig
+++ b/lib/std/os/bits/linux.zig
@@ -339,19 +339,19 @@ pub const O_RDWR = 0o2;
pub const kernel_rwf = u32;
/// high priority request, poll if possible
-pub const RWF_HIPRI = kernel_rwf(0x00000001);
+pub const RWF_HIPRI: kernel_rwf = 0x00000001;
/// per-IO O_DSYNC
-pub const RWF_DSYNC = kernel_rwf(0x00000002);
+pub const RWF_DSYNC: kernel_rwf = 0x00000002;
/// per-IO O_SYNC
-pub const RWF_SYNC = kernel_rwf(0x00000004);
+pub const RWF_SYNC: kernel_rwf = 0x00000004;
/// per-IO, return -EAGAIN if operation would block
-pub const RWF_NOWAIT = kernel_rwf(0x00000008);
+pub const RWF_NOWAIT: kernel_rwf = 0x00000008;
/// per-IO O_APPEND
-pub const RWF_APPEND = kernel_rwf(0x00000010);
+pub const RWF_APPEND: kernel_rwf = 0x00000010;
pub const SEEK_SET = 0;
pub const SEEK_CUR = 1;