Skip to content

feat: OFlag::O_PATH for FreeBSD and Fuchsia #2382

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat: OFlag::O_PATH for FreeBSD and Fuchsia
  • Loading branch information
SteveLauC committed Apr 22, 2024
commit 00aeb422b5932cfe7c800414792c6a5f81ddee70
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