Skip to main content

read_env

Function read_env 

Source
fn read_env(
    ctx: &Ctx,
    pid: u32,
    envp: u64,
    ptr_size: usize,
) -> Result<Vec<(Vec<u8>, Vec<u8>)>, i32>
Expand description

Reads the tracee’s environment as (name, value) pairs.

§Arguments

  • ctx - Shared supervisor state.
  • pid - Tracee thread id.
  • envp - Address of the pointer array, or 0 for an empty environment.
  • ptr_size - Pointer width of the tracee’s ABI.