Function statx

Source
pub unsafe fn statx<P: AsRef<Path>>(
    dirfd: RawFd,
    path: P,
    flags: StatAtFlags,
    mask: StatXMask,
) -> Result<Statx, Errno>
Expand description

Invoke statx system call.

ยงSafety

This functions is inherently unsafe because it just wrap the system call and directory file descriptor (dirfd) cannot be checked.