summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-02-16 16:11:01 +0000
committerbors <bors@rust-lang.org>2021-02-16 16:11:01 +0000
commitf9562dd7687ebec448fb34a313d63617a96f2e0c (patch)
tree4b13040e5cacaa0327eabf7210ad4ab9ae8b767e
parentb0355749497445f70d7da4491327d9d1aeeffe07 (diff)
parent6873e2f930bf8b605c0da22b237f3cb0ec1c2da0 (diff)
downloadrust-libc-f9562dd7687ebec448fb34a313d63617a96f2e0c.tar.gz
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](https://github.com/illumos/illumos-gate/blob/221e47fb90c5fcfe7add9a33f6c915ee5253ece9/usr/src/uts/common/sys/fcntl.h), but not in libc.
-rw-r--r--src/unix/solarish/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unix/solarish/mod.rs b/src/unix/solarish/mod.rs
index 0b8757e1d0..f7fffba652 100644
--- a/src/unix/solarish/mod.rs
+++ b/src/unix/solarish/mod.rs
@@ -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;