execve(2)

DESCRIPTION

Replaces the current process image.

SYNOPSIS

long execve(const char *path, char *const argv[], char *const envp[]);

RETURN VALUE

  • Returns a non-negative result on success. Negative values are ABI errno codes.

ERRORS

  • -E2BIG .
  • -EFAULT .
  • -ENOENT .
  • -ENOEXEC .
  • -ENOMEM .

ABI

Arguments enter through the direct syscall ABI; validation is performed before entering the process subsystem.