-
Notifications
You must be signed in to change notification settings - Fork 18k
syscall: add/use faccessat2 on Linux #53695
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
Comments
Changing Are you suggesting an API change? In general the syscall package is frozen and new API should not be added to it. |
According to checks performed by In such cases,
I believe I do not (except for adding a new const). |
Fair point about |
I thought about making it |
OK, redone without API change as suggested by @tklauser, so we don't change the API and thus do not need this issue. |
Linux kernel 5.8 added the faccessat2 syscall taking a flags argument.
Attempt to use it in Faccessat and fall back to the existing
implementation mimicking glibc faccessat.
This is similar to [1] amended by [2]. Required for [3].
[1] https://go-review.googlesource.com/c/sys/+/246537
[2] https://go-review.googlesource.com/c/sys/+/246817
[3] https://go-review.googlesource.com/c/go/+/414824
The text was updated successfully, but these errors were encountered: