authorgravatar for mahdi@khanalizadeh.comBiolunar <mahdi@khanalizadeh.com> 2021-07-22 01:27:59+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-08-31 13:31:27-07:00
log1cddcf4484c1ac776700e854f2849e03d4efb0fb
treee9181ade95e3bbce31329d96f510ae79fcd1ad00
parentb8a77f3d5931e0bf4f3c5544957dd36380367a43

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


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

lib/std/os/bits/linux.zig+5-5
...@@ -338,19 +338,19 @@ pub const O_RDWR = 0o2;...@@ -338,19 +338,19 @@ pub const O_RDWR = 0o2;
338pub const kernel_rwf = u32;338pub const kernel_rwf = u32;
339339
340/// high priority request, poll if possible340/// high priority request, poll if possible
341pub const RWF_HIPRI = kernel_rwf(0x00000001);341pub const RWF_HIPRI: kernel_rwf = 0x00000001;
342342
343/// per-IO O_DSYNC343/// per-IO O_DSYNC
344pub const RWF_DSYNC = kernel_rwf(0x00000002);344pub const RWF_DSYNC: kernel_rwf = 0x00000002;
345345
346/// per-IO O_SYNC346/// per-IO O_SYNC
347pub const RWF_SYNC = kernel_rwf(0x00000004);347pub const RWF_SYNC: kernel_rwf = 0x00000004;
348348
349/// per-IO, return -EAGAIN if operation would block349/// per-IO, return -EAGAIN if operation would block
350pub const RWF_NOWAIT = kernel_rwf(0x00000008);350pub const RWF_NOWAIT: kernel_rwf = 0x00000008;
351351
352/// per-IO O_APPEND352/// per-IO O_APPEND
353pub const RWF_APPEND = kernel_rwf(0x00000010);353pub const RWF_APPEND: kernel_rwf = 0x00000010;
354354
355pub const SEEK_SET = 0;355pub const SEEK_SET = 0;
356pub const SEEK_CUR = 1;356pub const SEEK_CUR = 1;