fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / newlib / libc / posix / execv.c
blob5effb9c57df1c37f46bb566fb5b320ab547d8edf
1 /* execv.c */
3 /* This and the other exec*.c files in this directory require
4 the target to provide the _execve syscall. */
6 #include <_ansi.h>
7 #include <unistd.h>
9 /* Only deal with a pointer to environ, to work around subtle bugs with shared
10 libraries and/or small data systems where the user declares his own
11 'environ'. */
12 static char ***p_environ = &environ;
14 int
15 _DEFUN (execv, (path, argv),
16 const char *path _AND
17 char * const argv[])
19 return _execve (path, (char * _CONST *) argv, *p_environ);