Function fstat
pub fn fstat<Fd>(fd: Fd) -> Result<stat, Errno> ⓘwhere
Fd: AsFd,
Available on crate feature
dep_rustix
only.Expand description
fstat(fd)
—Queries metadata for an open file or directory.
Mode::from_raw_mode
and FileType::from_raw_mode
may be used to
interpret the st_mode
field.