From 1ccdcc35c1d8450a2a6904fec745cde2a33f9940 Mon Sep 17 00:00:00 2001 From: Jonathan Krebs Date: Mon, 15 Apr 2024 12:57:14 +0200 Subject: [PATCH 1/2] apple: add O_EXEC and O_SEARCH --- src/unix/bsd/apple/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index e3fd22356190c..2c0a48f541529 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -3166,6 +3166,8 @@ pub const O_SYMLINK: ::c_int = 0x00200000; pub const O_DSYNC: ::c_int = 0x00400000; pub const O_CLOEXEC: ::c_int = 0x01000000; pub const O_NOFOLLOW_ANY: ::c_int = 0x20000000; +pub const O_EXEC: ::c_int = 0x40000000; +pub const O_SEARCH: ::c_int = O_EXEC | O_DIRECTORY; pub const S_IFIFO: mode_t = 0o1_0000; pub const S_IFCHR: mode_t = 0o2_0000; pub const S_IFBLK: mode_t = 0o6_0000; From 31ddb295891108628d14cb805fbb24c5f30c4e0f Mon Sep 17 00:00:00 2001 From: Jonathan Krebs Date: Mon, 15 Apr 2024 13:02:42 +0200 Subject: [PATCH 2/2] add new symbols O_EXEC and O_SEARCH to libc-test/semver/apple.txt --- libc-test/semver/apple.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libc-test/semver/apple.txt b/libc-test/semver/apple.txt index da5e2c77caa74..bf2f7e1321dcb 100644 --- a/libc-test/semver/apple.txt +++ b/libc-test/semver/apple.txt @@ -1035,11 +1035,13 @@ OXTABS O_ASYNC O_DSYNC O_EVTONLY +O_EXEC O_EXLOCK O_FSYNC O_NDELAY O_NOCTTY O_NOFOLLOW_ANY +O_SEARCH O_SHLOCK O_SYMLINK O_SYNC