Function lrs::syscall::faccessat

Checks whether a file relative to a file descriptor can be accessed.

Syntax

fn faccessat(dir: i32, file: &CStr, mode: u16) -> i32

Arguments

NameDescription
dir

The directory relative to which relative paths will be interpreted.

file

The path of the file.

mode

The mode to access the file with.

Return value

Returns success or an error value.

See also