Function lrs::syscall::fchmodat

Changes the mode of a file relative to a directory.

Syntax

fn fchmodat(dir: i32, path: &CStr, mode: u16) -> i32

Arguments

NameDescription
dir

The directory relative to which relative paths are interpreted.

path

The path of the file.

mode

The new mode of the file.

Return value

Returns success or an error value.

See also