Function lrs::syscall::utimensat

Changes the access and modification times of a file relative to a directory.

Syntax

fn utimensat(dir: i32, file: Option<&CStr>, times: &[timespec; 2], flags: i32) -> i32

Arguments

NameDescription
dir

The directory relative to which relative paths will be interpreted.

file

The path of the file.

times

The new times of the file.

flags

Flags to use while modifying the file.

Return value

Returns success or an error value.

See also