execvp

Passes the name of an image to be activated in a child process. This function is nonreentrant.

Format

#include  <unistd.h>

int execvp  (const char *file_name, char *argv[]);

Arguments

file_name
The file name of a new image to be activated in the child process. The device and directory specification for the file is obtained by searching the environment name VAXC$PATH.
argv
An array of pointers to null-terminated character strings. These strings constitute the argument list available to the new process. By convention, argv[0] must point to a string that is the same as the new process file name (or its last component). argv is terminated by a NULL pointer.

Description

See execl in this section for a description of how the exec functions operate.

Return Value
-1  Indicates failure. 


Previous Page | Next Page | Table of Contents | Index