Small cleanup of extensions code
[AROS.git] / compiler / clib / execv.c
blob3c0ec0dcaaf94bd8d19ff77843e276360b15f9af
1 /*
2 Copyright © 2008, The AROS Development Team. All rights reserved.
3 $Id$
5 POSIX function execv().
6 */
8 #include <aros/debug.h>
10 #include <fcntl.h>
11 #include <unistd.h>
12 #include <errno.h>
13 #include <stdlib.h>
15 /*****************************************************************************
17 NAME */
18 #include <unistd.h>
20 int execv(
22 /* SYNOPSIS */
23 const char *path,
24 char *const argv[])
26 /* FUNCTION
27 Executes a file located in given path with specified arguments.
29 INPUTS
30 path - Pathname of the file to execute.
31 argv - Array of arguments given to main() function of the executed
32 file.
34 RESULT
35 Returns -1 and sets errno appropriately in case of error, otherwise
36 doesn't return.
38 NOTES
40 EXAMPLE
42 BUGS
44 SEE ALSO
45 execve(), execl(), execlp(), execvp()
47 INTERNALS
49 ******************************************************************************/
51 return execve(path, argv, environ);
52 } /* execv() */