Auto merge of #2072 - smklein:solarish_directory, r=Amanieu

Add O_DIRECTORY to solarish

FYI `@pfmooney` . I was trying to port [nix](https://crates.io/crates/nix) to illumos, and noticed this in the illumos-gate [headers](221e47fb90/usr/src/uts/common/sys/fcntl.h), but not in libc.
This commit is contained in:
bors 2021-02-16 16:11:01 +00:00
commit f9562dd768
1 changed files with 1 additions and 0 deletions

View File

@ -994,6 +994,7 @@ 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;