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
signaturebadge-question-mark 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;...@@ -339,19 +339,19 @@ pub const O_RDWR = 0o2;
339pub const kernel_rwf = u32;339pub const kernel_rwf = u32;
340340
341/// high priority request, poll if possible341/// high priority request, poll if possible
342pub const RWF_HIPRI = kernel_rwf(0x00000001);342pub const RWF_HIPRI: kernel_rwf = 0x00000001;
343343
344/// per-IO O_DSYNC344/// per-IO O_DSYNC
345pub const RWF_DSYNC = kernel_rwf(0x00000002);345pub const RWF_DSYNC: kernel_rwf = 0x00000002;
346346
347/// per-IO O_SYNC347/// per-IO O_SYNC
348pub const RWF_SYNC = kernel_rwf(0x00000004);348pub const RWF_SYNC: kernel_rwf = 0x00000004;
349349
350/// per-IO, return -EAGAIN if operation would block350/// per-IO, return -EAGAIN if operation would block
351pub const RWF_NOWAIT = kernel_rwf(0x00000008);351pub const RWF_NOWAIT: kernel_rwf = 0x00000008;
352352
353/// per-IO O_APPEND353/// per-IO O_APPEND
354pub const RWF_APPEND = kernel_rwf(0x00000010);354pub const RWF_APPEND: kernel_rwf = 0x00000010;
355355
356pub const SEEK_SET = 0;356pub const SEEK_SET = 0;
357pub const SEEK_CUR = 1;357pub const SEEK_CUR = 1;