A pure Rust library that implements stat
functions on linux with only syscalls.
It tries to use statx
syscall and fallback to fstatat
.
std
: enable std support.linux_4_11
: assume that kernel is at least 4.11.0 so statx
is used.#![no_std]
Enable #![no_std]
support by disabling the default std
feature:
toml
[dependencies]
linux-stat = { version = "*", default-features = false }
1.46.0