Welcome to mirror list, hosted at ThFree Co, Russian Federation.

execv.c « posix « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5effb9c57df1c37f46bb566fb5b320ab547d8edf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* 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
_DEFUN (execv, (path, argv), 
	const char *path _AND
	char * const argv[])
{
  return _execve (path, (char * _CONST *) argv, *p_environ);
}