execlp

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

Format

#include  <unistd.h>

int execlp  (const char *file_name, const char
            *arg0, . . . , (char *)0); (ISO POSIX-1)

int execlp  (char *file_name, . . . ); (Compatability)

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.
argn
A sequence of pointers to null-terminated character strings. By convention, at least one argument must be present and must point to a string that is the same as the new process file name (or its last component).
. . .
A sequence of pointers to strings. At least one pointer must exist to terminate the list. This pointer must be the 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