execve(2)
DESCRIPTION
Replace the calling process image.
Copies the argument and environment vectors, loads the executable,
and resumes the current process at its entry point. The process ID,
descriptor table, process group, and working directory remain.
SYNOPSIS
long execve(const char *path, char *const argv[], char *const envp[]);
RETURN VALUE
- Does not return on success. Returns a negative errno on failure.
ERRORS
-E2BIG- The argument or environment vector exceeds its limit.
-EFAULT- A path, vector, or string pointer is invalid.
-ENOENT- The executable path does not exist.
-ENOEXEC- The file is not a loadable executable image.
-ENOMEM- The replacement image cannot be allocated.
NOTES
Relative paths are resolved against the caller's working directory.