Skip to content

Commit

Permalink
feat: OFlag::O_SEARCH for apple targets
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC committed Apr 29, 2024
1 parent e59c970 commit 87f32bf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog/2391.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add `open` flag `O_SEARCH` to apple_targets
11 changes: 10 additions & 1 deletion src/fcntl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,16 @@ libc_bitflags!(
O_RSYNC;
/// Open directory for search only. Skip search permission checks on
/// later `openat()` calls using the obtained file descriptor.
#[cfg(any(target_os = "netbsd", target_os = "freebsd", solarish, target_os = "fuchsia", target_os = "emscripten", target_os = "aix", target_os = "wasi"))]
#[cfg(any(
apple_targets,
solarish,
target_os = "netbsd",
target_os = "freebsd",
target_os = "fuchsia",
target_os = "emscripten",
target_os = "aix",
target_os = "wasi"
))]
O_SEARCH;
/// Open with a shared file lock.
#[cfg(any(bsd, target_os = "redox"))]
Expand Down

0 comments on commit 87f32bf

Please sign in to comment.