mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
linux stdlib: fix definition of RW flags (#9428)
This commit is contained in:
parent
b8a77f3d59
commit
1cddcf4484
1 changed files with 5 additions and 5 deletions
|
|
@ -338,19 +338,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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue