Closed
Description
https://docs.rs/rustix/0.37.19/rustix/ says: "Things they don’t do include: Detecting whether functions are supported at runtime". But this seams to be not true. Consider this code:
rustix/src/backend/libc/fs/syscalls.rs
Line 454 in bff1d53
- This contradicts docs
- This will work badly in many container runtimes in Linux. Runtimes usually return EPERM is they don't know this syscall (this often happens if we run new system in old container runtime). But you check here for ENOSYS only, not for EPERM
Metadata
Metadata
Assignees
Labels
No labels