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