Function fstatat

Source
pub unsafe fn fstatat<P: AsRef<Path>>(
    dirfd: RawFd,
    path: P,
    flags: StatAtFlags,
) -> Result<Stat, Errno>
Expand description

If not feature linux_4_11 try to call crate::raw::statx and fallback to crate::raw::fstatat if not available.

ยงSafety

This function is marked as unsafe because directory file descriptor (dirfd) cannot be checked.