From abd18481b7be650c3e059c896348a9db78c851f2 Mon Sep 17 00:00:00 2001 From: John Colanduoni <john@colanduoni.com> Date: Sat, 29 Aug 2020 19:41:16 -0700 Subject: [PATCH] Add support for Apple's O_SYMLINK flag --- src/unix/bsd/apple/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index 857a2bad..b6984ecd 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -1406,6 +1406,7 @@ pub const O_DSYNC: ::c_int = 0x400000; pub const O_NOCTTY: ::c_int = 0x20000; pub const O_CLOEXEC: ::c_int = 0x1000000; pub const O_DIRECTORY: ::c_int = 0x100000; +pub const O_SYMLINK: ::c_int = 0x200000; pub const S_IFIFO: mode_t = 4096; pub const S_IFCHR: mode_t = 8192; pub const S_IFBLK: mode_t = 24576; -- GitLab