Function linux_stat::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.