Function wasmer_wasix::syscalls::wasix::proc_exec2::proc_exec2

source ·
pub fn proc_exec2<M: MemorySize>(
    ctx: FunctionEnvMut<'_, WasiEnv>,
    name: WasmPtr<u8, M>,
    name_len: M::Offset,
    args: WasmPtr<u8, M>,
    args_len: M::Offset,
    envs: WasmPtr<u8, M>,
    envs_len: M::Offset,
) -> Result<(), WasiError>
Expand description

Replaces the current process with a new process

§Parameters

  • name - Name of the process to be spawned
  • args - List of the arguments to pass the process (entries are separated by line feeds)
  • envs - List of the environment variables to pass process

§Return

Returns a bus process id that can be used to invoke calls