-
Notifications
You must be signed in to change notification settings - Fork 12
support enhanced fd-related APIs #365
Copy link
Copy link
Open
Labels
api/cffiRelated to the C-FFI API.Related to the C-FFI API.api/handleRelated to the handle API.Related to the handle API.api/rustRelated to the Rust API.Related to the Rust API.impact/featureAn issue or PR that adds new distinct functionality.An issue or PR that adds new distinct functionality.
Milestone
Metadata
Metadata
Assignees
Labels
api/cffiRelated to the C-FFI API.Related to the C-FFI API.api/handleRelated to the handle API.Related to the handle API.api/rustRelated to the Rust API.Related to the Rust API.impact/featureAn issue or PR that adds new distinct functionality.An issue or PR that adds new distinct functionality.
There are quite a few
*at(2)syscalls which don't work withO_PATHfile descriptors but can be worked around with/proc/self/fd/.... We should probablyThe obvious ones are:
*xattratwere added in 6.13, we will need fallbacks using/proc/self/fd/...(we can't even do the dirfd trick...).fchmodat(2)(AT_EMPTY_PATHsupported since Linux 6.6).fchownat(2)(AT_EMPTY_PATHsupported since Linux 2.6.39, but best to add it for symmetry withfchmodat(2)).