Function lrs::syscall::renameat2

Renames a file relative to a directory.

Syntax

fn renameat2(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 file.

flags

Flags to use while renaming the file.

Return value

Returns success or an error value.

See also