2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
5 POSIX.1-2008 function execvp().
8 #include <aros/debug.h>
18 /*****************************************************************************
30 Executes a file with given name. The search paths for the executed
31 file are paths specified in the PATH environment variable.
34 file - Name of the file to execute.
35 argv - Array of arguments given to main() function of the executed
39 Returns -1 and sets errno appropriately in case of error, otherwise
49 execve(), execl(), execlp(), execv()
53 ******************************************************************************/
55 char ***environptr
= __posixc_get_environptr();
56 char **environ
= (environptr
!= NULL
) ? *environptr
: NULL
;
57 APTR id
= __exec_prepare(file
, 1, argv
, environ
);
63 assert(0); /* not reached */