Function lrs::syscall::unlinkat

Unlinks a file relative to a directory.

Syntax

fn unlinkat(dir: i32, file: &CStr, flags: i32) -> i32

Arguments

NameDescription
dir

The directory relative to which relative paths will be interpreted.

file

The path of the file.

flags

The flags used while unlinking the file.

Return value

Returns success or an error value.

See also