Skip to main content

SYS_PROC_EXECVE

Constant SYS_PROC_EXECVE 

Source
pub const SYS_PROC_EXECVE: usize = 315; // 315usize
Expand description

Execute a new program, replacing the current process image.

  • path_ptr: pointer to the null-terminated path string
  • path_len: length of the path string
  • argv_ptr: pointer to the argument array
  • envp_ptr: pointer to the environment array

This syscall never returns on success. The current process image is replaced with the new ELF binary.