Crate linux_stat
Source pub use std::os::unix::io::RawFd;
- raw
- Raw structures and functions implementations.
- CStr
- Representation of a borrowed C string.
- Dev32
- Device ID representation backed by an u32.
- Dev64
- Device ID representation backed by an u64.
- DevSplit
- Device ID representation backed by two u32 (major, minor).
- Errno
- Error number representation.
- Mode
- File permissions representation.
- ModePermission
- Entity (owner, group or other) permissions representation.
- Path
- A slice of a path (akin to
str
). - StatAtFlags
- Flags for
fstatat()
. - Timestamp
- Timestamp representation.
- Dev
- Unified Device ID representation.
- FileType
- File type representation.
- CURRENT_DIRECTORY
- Special file descriptor that represent the current directory.
- empty_path
- Returns an empty path representation.
- fstat⚠
- Call crate::fstatat on the
dirfd
directory file descriptor - fstatat⚠
- If not feature
linux_4_11
try to call crate::raw::statx and fallback
to [crate::raw::fstatat] if not available. - fstatat_cstr⚠
- If not feature
linux_4_11
try to call crate::raw::statx and fallback
to [crate::raw::fstatat] if not available.
Accept path
as a CStr. - lstat
- Call crate::fstatat for
path
in the current directory
not following symlinks. - lstat_cstr
- Call crate::fstatat for
path
in the current directory
not following symlinks. Accept path
as a CStr. - stat
- Call crate::fstatat for
path
in the current directory
following symlinks. - stat_cstr
- Call crate::fstatat for
path
in the current directory
following symlinks. Accept path
as as CStr.
- Stat
- Unified Stat structure.