Function lrs::syscall::linkat

Creates a hardlink relative to directories.

Syntax

fn linkat(olddir: i32, oldfile: &CStr, newdir: i32, newfile: &CStr, flags: i32) -> i32

Arguments

NameDescription
olddir

The directory relative to which relative oldfile paths will be interpreted.

oldfile

The path of the existing file.

newdir

The directory relative to which relative newfile paths will be interpreted.

newfile

The path of the new link.

flags

Flags to use while creating the link.

Return value

Returns success or an error value.

See also