Skip to content

Commit

Permalink
solarish add fcntl's O_DIRECT constant.
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Dec 27, 2023
1 parent 9899913 commit 4e59d5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/unix/solarish/mod.rs
Expand Up @@ -1294,12 +1294,13 @@ pub const O_EXCL: ::c_int = 1024;
pub const O_NOCTTY: ::c_int = 2048;
pub const O_TRUNC: ::c_int = 512;
pub const O_NOFOLLOW: ::c_int = 0x20000;
pub const O_DIRECTORY: ::c_int = 0x1000000;
pub const O_SEARCH: ::c_int = 0x200000;
pub const O_EXEC: ::c_int = 0x400000;
pub const O_CLOEXEC: ::c_int = 0x800000;
pub const O_ACCMODE: ::c_int = 0x600003;
pub const O_XATTR: ::c_int = 0x4000;
pub const O_DIRECTORY: ::c_int = 0x1000000;
pub const O_DIRECT: ::c_int = 0x2000000;
pub const S_IFIFO: mode_t = 4096;
pub const S_IFCHR: mode_t = 8192;
pub const S_IFBLK: mode_t = 24576;
Expand Down

0 comments on commit 4e59d5e

Please sign in to comment.