2 Copyright © 2008-2013, The AROS Development Team. All rights reserved.
5 POSIX.1-2008 function execv().
8 #include <aros/debug.h>
18 /*****************************************************************************
30 Executes a file located in given path with specified arguments.
33 path - Pathname of the file to execute.
34 argv - Array of arguments given to main() function of the executed
38 Returns -1 and sets errno appropriately in case of error, otherwise
48 execve(), execl(), execlp(), execvp()
52 ******************************************************************************/
54 char ***environptr
= __posixc_get_environptr();
55 char **environ
= (environptr
!= NULL
) ? *environptr
: NULL
;
56 APTR id
= __exec_prepare(path
, 0, argv
, environ
);
62 assert(0); /* Should not be reached */