MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / fstat

Function fstat

src/fs/fd.rs:156–158  ·  view source on GitHub ↗
(fd: Fd)

Source from the content-addressed store, hash-verified

154/// [`FileType::from_raw_mode`]: crate::fs::FileType::from_raw_mode
155#[inline]
156pub fn fstat<Fd: AsFd>(fd: Fd) -> io::Result<Stat> {
157 backend::fs::syscalls::fstat(fd.as_fd())
158}
159
160/// `fstatfs(fd)`—Queries filesystem statistics for an open file or directory.
161///

Callers 9

simple_fstatFunction · 0.50
test_special_fdsFunction · 0.50
test_seek_holesFunction · 0.50
test_fileFunction · 0.50
test_futimensFunction · 0.50
negative_file_timestampFunction · 0.50
test_y2038_with_futimensFunction · 0.50

Calls 1

as_fdMethod · 0.45

Tested by 8

test_special_fdsFunction · 0.40
test_seek_holesFunction · 0.40
test_fileFunction · 0.40
test_futimensFunction · 0.40
negative_file_timestampFunction · 0.40
test_y2038_with_futimensFunction · 0.40