spawnve(2)
DESCRIPTION
Create a process from an executable image.
Copies the vectors, creates a child process, and builds its initial
user stack. The child inherits the caller's descriptors and cwd.
SYNOPSIS
long spawnve(const char *path, char *const argv[], char *const envp[]);
RETURN VALUE
- Returns the child PID, or a negative errno.
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 image or process cannot be allocated.
-EAGAIN- The process or thread registry is full.