-
Notifications
You must be signed in to change notification settings - Fork 11
Root: support some stat-like APIs? #364
Copy link
Copy link
Open
Labels
api/cffiRelated to the C-FFI API.Related to the C-FFI API.api/rootRelated to the Root API.Related to the Root 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/rootRelated to the Root API.Related to the Root 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.
At the moment we don't have APIs for "getters" like
statxoraccessat. While stuff likechmod(2)can be done withfchmodat, it is a bit less ergonomic to require someone to resolve the path themselves.Then again, the overhead of doing a lookup of a parent is almost identical to doing a normal lookup so this is purely an ergonomics thing (though
accessatwould be a little annoying to implement for pre-5.8 kernels when it didn't acceptAT_EMPTY_PATH).