Skip to content
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

O_PATH exists on freebsd 14 - could we add it? #2361

Closed
TheJonny opened this issue Apr 11, 2024 · 1 comment · Fixed by #2382
Closed

O_PATH exists on freebsd 14 - could we add it? #2361

TheJonny opened this issue Apr 11, 2024 · 1 comment · Fixed by #2382

Comments

@TheJonny
Copy link
Contributor

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"))]

@asomers
Copy link
Member

asomers commented Apr 11, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants