2 Copyright © 2008-2012, The AROS Development Team. All rights reserved.
5 POSIX function execve().
10 #include <exec/types.h>
11 #include <exec/lists.h>
12 #include <proto/exec.h>
13 #include <proto/dos.h>
14 #include <aros/debug.h>
27 #include "__arosc_privdata.h"
30 /*****************************************************************************
43 Executes a file with given name.
46 filename - Name of the file to execute.
47 argv - Array of arguments provided to main() function of the executed
49 envp - Array of environment variables passed as environment to the
53 Returns -1 and sets errno appropriately in case of error, otherwise
66 ******************************************************************************/
68 APTR id
= __exec_prepare(filename
, 0, argv
, envp
);
74 assert(0); /* Should not be reached */