Skip to main content

SYS_RENAMEAT

Constant SYS_RENAMEAT 

Source
pub const SYS_RENAMEAT: usize = 465; // 465usize
Expand description

Rename or move a file between two directory FDs.

  • olddirfd: source directory FD (or AT_FDCWD)
  • old_ptr: pointer to the source path
  • old_len: length of the source path
  • newdirfd: destination directory FD (or AT_FDCWD)
  • new_ptr: pointer to the destination path
  • new_len: length of the destination path

Source and destination can be on different mount points (atomic if same FS).