Skip to content

Commit

Permalink
feat: OFlag::O_PATH for FreeBSD and Fuchsia (#2382)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC authored Apr 22, 2024
1 parent 313dac0 commit f129095
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog/2382.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add `fcntl::OFlag::O_PATH` for FreeBSD and Fuchsia
2 changes: 1 addition & 1 deletion src/fcntl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ libc_bitflags!(
/// Obtain a file descriptor for low-level access.
///
/// The file itself is not opened and other file operations will fail.
#[cfg(any(linux_android, target_os = "redox"))]
#[cfg(any(linux_android, target_os = "redox", target_os = "freebsd", target_os = "fuchsia"))]
O_PATH;
/// Only allow reading.
///
Expand Down

0 comments on commit f129095

Please sign in to comment.