Go to the previous, next section.

execve

SYNOPSIS

int execve (const char *filename, const char *argv[], const char *envp[]);

PARAMETERS

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.

DESCRIPTION

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.

RETURN VALUE

On success, does not return. On error, returns -1 and errno is set to one of the following values:

Go to the previous, next section.