Function fstatat_cstr

Source
pub unsafe fn fstatat_cstr(
    dirfd: RawFd,
    path: &CStr,
    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. Accept path as a CStr.

ยงSafety

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