Function renameat2
fn renameat2<P1: ?Sized + NixPath, P2: ?Sized + NixPath, Fd1: std::os::fd::AsFd, Fd2: std::os::fd::AsFd>(old_dirfd: Fd1, old_path: &P1, new_dirfd: Fd2, new_path: &P2, flags: RenameFlags) -> Result<()>
Like renameat, but with an additional flags argument.
A renameat2 call with an empty flags argument is equivalent to renameat.