Skip to main content

guest_dirfd_path

Function guest_dirfd_path 

Source
pub fn guest_dirfd_path(fs: &Fs, pid: u32, dirfd: i32) -> Result<Vec<u8>, i32>
Expand description

The guest path of dirfd itself, or of the tracee’s cwd for AT_FDCWD: what an empty path names in the calls that allow one (AT_EMPTY_PATH, and readlinkat always).

§Arguments

  • fs - Guest filesystem view.
  • pid - Tracee thread id.
  • dirfd - Descriptor number in the tracee, or libc::AT_FDCWD.