Skip to main content

execve_bytes

Function execve_bytes 

Source
pub fn execve_bytes(
    path: &[u8],
    args: &[&[u8]],
    envs: &[&[u8]],
) -> SysResult<Infallible>
Expand description

Replaces the current process image with path, passing args (argv) and envs (envp).

Returns Err(Errno(EINVAL)) if path is empty or any slice contains an interior NUL byte.