Retro68/gcc/newlib/libc/posix/execv.c
Wolfgang Thaller ec13cc9ce7 fix newlib
2018-12-29 09:59:36 +01:00

24 lines
537 B
C

#ifndef _NO_EXECVE
/* execv.c */
/* This and the other exec*.c files in this directory require
the target to provide the _execve syscall. */
#include <_ansi.h>
#include <unistd.h>
/* Only deal with a pointer to environ, to work around subtle bugs with shared
libraries and/or small data systems where the user declares his own
'environ'. */
static char ***p_environ = &environ;
int
execv (const char *path,
char * const argv[])
{
return _execve (path, (char * const *) argv, *p_environ);
}
#endif /* !_NO_EXECVE */