[][src]Function linux::syscall::renameat2

pub fn renameat2(
    olddir: c_int,
    oldfile: KStr,
    newdir: c_int,
    newfile: KStr,
    flags: c_int
) -> c_int

Renames a file relative to a directory.

[argument, olddir] The directory relative to which relative oldfile paths will be interpreted.

[argument, oldfile] The path of the existing file.

[argument, newdir] The directory relative to which relative newfile paths will be interpreted.

[argument, newfile] The path of the new file.

[argument, flags] Flags to use while renaming the file.

[return_value] Returns success or an error value.

= See also

  • link:man:renameat2(2)