Function rustix::fs::fstat

source ·
pub fn fstat<Fd: AsFd>(fd: Fd) -> Result<Stat>
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.

§References