OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [newlib-1.18.0/] [newlib-1.18.0-or32-1.0rc1/] [newlib/] [libc/] [posix/] [execv.c] - Blame information for rev 802

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
#ifndef _NO_EXECVE
2
 
3
/* execv.c */
4
 
5
/* This and the other exec*.c files in this directory require
6
   the target to provide the _execve syscall.  */
7
 
8
#include <_ansi.h>
9
#include <unistd.h>
10
 
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;
15
 
16
int
17
_DEFUN (execv, (path, argv),
18
        const char *path _AND
19
        char * const argv[])
20
{
21
  return _execve (path, (char * _CONST *) argv, *p_environ);
22
}
23
 
24
#endif /* !_NO_EXECVE  */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.