URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 207 |
Rev 520 |
#ifndef _NO_EXECVE
|
#ifndef _NO_EXECVE
|
|
|
/* execv.c */
|
/* execv.c */
|
|
|
/* This and the other exec*.c files in this directory require
|
/* This and the other exec*.c files in this directory require
|
the target to provide the _execve syscall. */
|
the target to provide the _execve syscall. */
|
|
|
#include <_ansi.h>
|
#include <_ansi.h>
|
#include <unistd.h>
|
#include <unistd.h>
|
|
|
/* Only deal with a pointer to environ, to work around subtle bugs with shared
|
/* 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
|
libraries and/or small data systems where the user declares his own
|
'environ'. */
|
'environ'. */
|
static char ***p_environ = &environ;
|
static char ***p_environ = &environ;
|
|
|
int
|
int
|
_DEFUN (execv, (path, argv),
|
_DEFUN (execv, (path, argv),
|
const char *path _AND
|
const char *path _AND
|
char * const argv[])
|
char * const argv[])
|
{
|
{
|
return _execve (path, (char * _CONST *) argv, *p_environ);
|
return _execve (path, (char * _CONST *) argv, *p_environ);
|
}
|
}
|
|
|
#endif /* !_NO_EXECVE */
|
#endif /* !_NO_EXECVE */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.