2 Copyright © 2008-2009, 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>
15 #include <dos/filesystem.h>
28 #include "__arosc_privdata.h"
31 /*****************************************************************************
44 Executes a file with given name.
47 filename - Name of the file to execute.
48 argv - Array of arguments provided to main() function of the executed
50 envp - Array of environment variables passed as environment to the
54 Returns -1 and sets errno appropriately in case of error, otherwise
67 ******************************************************************************/
69 APTR id
= __exec_prepare(filename
, 0, argv
, envp
);
75 assert(0); /* Should not be reached */