Go to the previous, next section.
int execve (const char *filename, const char
*argv[], const char *envp[]);
filename: [in] the path of the executable file.
argv: [in] the parameter vector for this invocation.
envp: [in] the environment in which to start the new text.
Overwrites the current task with a new executable file on disk using the parameter vector environement specified by the call. The opened files not maked close on exec remain opened after the call.
On success, does not return. On error, returns -1 and errno is
set to one of the following values:
EACCESS: the file is not a regular file or is not executable.
EPERM: the file system does not permit execution at all or
the file has the SUID or SGID bit set but the file system does not permit SUID
or SGID execution.
E2BIG, ENOEXEC, EFAULT,
ENAMETOOLONG, ENOENT, ENOMEM,
ENOTDIR, EACCESS and ELOOP all have
their standard meanings.