Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / posix / execv.c
blob6a1052c262cad26b59de262fa6a95f98e355bc93
1 #ifndef _NO_EXECVE
3 /* execv.c */
5 /* This and the other exec*.c files in this directory require
6 the target to provide the _execve syscall. */
8 #include <_ansi.h>
9 #include <unistd.h>
11 /* Only deal with a pointer to environ, to work around subtle bugs with shared
12 libraries and/or small data systems where the user declares his own
13 'environ'. */
14 static char ***p_environ = &environ;
16 int
17 execv (const char *path,
18 char * const argv[])
20 return _execve (path, (char * const *) argv, *p_environ);
23 #endif /* !_NO_EXECVE */