Function lrs::syscall::fstatat

Retrieves information about a file relative to a file descriptor.

Syntax

fn fstatat(dir: i32, file: &CStr, buf: &mut stat, flags: i32) -> i32

Arguments

NameDescription
dir

The directory relative to which relative paths will be interpreted.

file

The path of the file.

buf

Where the information will be stored.

flags

Flags to use while retrieving the information.

Return value

Returns success or an error value.

See also