Executes the program pointed to by the path parameter.
#include <unistd.h> int execv ( const char *path, char *const argv[]);
Points to the path of a file to execute.
Points to an array of NULL-terminated strings that represent the parameter list that is available to the new program. The first array entry points to the file name that is associated with the file to execute. The array must be null terminated.
If an error occurs, returns -1 and errno is set to indicate the error. Otherwise, nothing is returned.
IMPORTANT:This function is only available to NLMs that link with the POSIX semantics flag and load into protected address space (ring3). If these requirements are not met, errno is set to ENOSYS.
The execv function uses the environ external variable as the environment for the new process.
The number of bytes available for the new process's combined parameter and environment lists is defined by ARG_MAX.