nix-rust / nix

Rust friendly bindings to *nix APIs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

O_PATH exists on freebsd 14 - could we add it?

TheJonny opened this issue · comments

According to the manpages, FreeBSD now has O_PATH:
https://man.freebsd.org/cgi/man.cgi?query=open&apropos=0&sektion=0&manpath=FreeBSD+14.0-STABLE&arch=default&format=html

probably only adding freebsd in the [cfg] breaks to much on older releases?

#[cfg(any(linux_android, target_os = "redox"))]

It shouldn't break the build for anybody who doesn't actually use that symbol even on older versions of freebsd. We can certainly add this and we'll do it on a patches welcome basis. You will probably need to add the symbol to the libc crate first.