nix::fcntl

Function renameat2

source
pub fn renameat2<P1: ?Sized + NixPath, P2: ?Sized + NixPath>(
    old_dirfd: Option<RawFd>,
    old_path: &P1,
    new_dirfd: Option<RawFd>,
    new_path: &P2,
    flags: RenameFlags,
) -> Result<()>
Expand description

Like renameat, but with an additional flags argument.

A renameat2 call with an empty flags argument is equivalent to renameat.

ยงSee Also