pub fn rewrite_path_arg_at(
ctx: &Ctx,
fs: &Fs,
regs: &mut Regs,
dirfd_index: Option<usize>,
path_index: usize,
deref_final: bool,
) -> Result<(), i32>Expand description
Translates a dirfd-relative path argument and points it at the host path.
After the rewrite the path is absolute, so the dirfd argument (if any) is
set to AT_FDCWD.
§Arguments
ctx- Shared supervisor state.fs- The tracee’s filesystem view.regs- Registers at the stop.dirfd_index- Argument index of the directory descriptor, if the syscall has one.path_index- Argument index holding the path pointer.deref_final- Follow a trailing symlink.