2 Copyright © 2008-2009, The AROS Development Team. All rights reserved.
5 POSIX function execv().
8 #include <aros/debug.h>
16 #include "__arosc_privdata.h"
19 /*****************************************************************************
31 Executes a file located in given path with specified arguments.
34 path - Pathname 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(), execvp()
53 ******************************************************************************/
55 char ***environptr
= __arosc_get_environptr();
56 char **environ
= (environptr
!= NULL
) ? *environptr
: NULL
;
57 APTR id
= __exec_prepare(path
, 0, argv
, environ
);
63 assert(0); /* Should not be reached */