authorgravatar for mahdi@khanalizadeh.comBiolunar <mahdi@khanalizadeh.com> 2021-07-22 01:27:59+02:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2021-07-22 01:27:59+02:00
log093e10b66e5db5fcbccf941b4ffdab6330a83faa
treecdbe4872a7e47aa8eccb2302a428a0ed7a6e6270
parent680fa880d63daa6058a084f1c107162e40e18aa8
signature Signed by PGP key 4AEE18F83AFDEB23

linux stdlib: fix definition of RW flags (#9428)


1 files changed, 5 insertions(+), 5 deletions(-)

lib/std/os/bits/linux.zig+5-5
......@@ -339,19 +339,19 @@ pub const O_RDWR = 0o2;
339339pub const kernel_rwf = u32;
340340
341341/// high priority request, poll if possible
342pub const RWF_HIPRI = kernel_rwf(0x00000001);
342pub const RWF_HIPRI: kernel_rwf = 0x00000001;
343343
344344/// per-IO O_DSYNC
345pub const RWF_DSYNC = kernel_rwf(0x00000002);
345pub const RWF_DSYNC: kernel_rwf = 0x00000002;
346346
347347/// per-IO O_SYNC
348pub const RWF_SYNC = kernel_rwf(0x00000004);
348pub const RWF_SYNC: kernel_rwf = 0x00000004;
349349
350350/// per-IO, return -EAGAIN if operation would block
351pub const RWF_NOWAIT = kernel_rwf(0x00000008);
351pub const RWF_NOWAIT: kernel_rwf = 0x00000008;
352352
353353/// per-IO O_APPEND
354pub const RWF_APPEND = kernel_rwf(0x00000010);
354pub const RWF_APPEND: kernel_rwf = 0x00000010;
355355
356356pub const SEEK_SET = 0;
357357pub const SEEK_CUR = 1;