aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/posix/execv.c
blob: 6a1052c262cad26b59de262fa6a95f98e355bc93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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  */