pub const SYS_FACCESSAT: usize = 468; // 468usizeExpand description
Check file accessibility relative to a directory FD.
dirfd: directory file descriptor (orAT_FDCWD)path_ptr: pointer to the path stringpath_len: length of the pathmode: accessibility check (R_OK=4,W_OK=2,X_OK=1,F_OK=0)flags: flags (currently unused, pass 0)
Returns 0 if the file is accessible, -EACCES or -ENOENT otherwise.
This is the preferred way to check file access : it avoids TOCTOU races
that SYS_ACCESS can have when paths are resolved relative to CWD.