pub fn proc_exec4<M: MemorySize>(
ctx: FunctionEnvMut<'_, WasiEnv>,
name: WasmPtr<u8, M>,
name_len: M::Offset,
args: WasmPtr<WasmPtr<u8, M>, M>,
args_len: M::Offset,
envs: WasmPtr<WasmPtr<u8, M>, M>,
envs_len: M::Offset,
search_path: Bool,
path: WasmPtr<u8, M>,
path_len: M::Offset,
) -> Result<Errno, WasiError>Expand description
Replaces the current process with a new process, with proper WasmPtr<WasmPtr<u8>> string lists.
Successor to proc_exec3. args and envs are pointer arrays of null-terminated
strings with args_len / envs_len as element counts. A null envs pointer inherits
the current environment.
ยงReturn
If the execution fails, returns an error code. Does not return otherwise.