Function lrs::syscall::readlinkat

Reads the target of a symbolic link relative to a directory.

Syntax

fn readlinkat(dir: i32, path: &CStr, buf: &mut [u8]) -> i64

Arguments

NameDescription
dir

The directory relative to which relative paths are interpreted.

path

The path of the link.

buf

The buffer in which the target will be placed.

Return value

Returns the length of the target or an error value.

See also