Function faccessat2
pub unsafe fn faccessat2<P>(
dfd: i32,
filename: P,
mode: i32,
flags: i32,
) -> Result<(), i32> ⓘ
Available on crate feature
dep_nc
only.Expand description
Check user’s permission for a file.
§Examples
let ret = unsafe { nc::faccessat2(nc::AT_FDCWD, "/etc/passwd", nc::F_OK, nc::AT_SYMLINK_NOFOLLOW) };
assert!(ret.is_ok());