COHERENT manpages

This page displays the COHERENT manpage for execlp() [Execute a load module].

List of available manpages
Index


execlp() -- General Function (libc)

Execute a load module
#include <unistd.h>
execlp(file, arg0, arg1, ..., argn, NULL)
char *file, *arg0, *arg1, ..., *argn;

The function execlp() calls the  COHERENT system call execve() to execute a
program.  It initializes the new stack  of the process to contain a list of
strings that  are command arguments.  It  specifies arguments individually,
as a  NULL-terminated list of arg parameters.   Unlike the related function
execl(),  execlp()  searches  for file  in  all  directories  named in  the
environmental variable PATH. For more information on program execution, see
execution.

See Also

environ,
execution,
execve(),
libc,
unistd.h
POSIX Standard, §3.1.2

Diagnostics

execlp() does not return if successful.   It returns -1 for errors, such as
file not  existing in  the directories named  in PATH, not  accessible with
execute permission, having a bad format, or too large to fit in memory.