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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [posix/] [execv.c] - Blame information for rev 1773

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

Line No. Rev Author Line
1 1010 ivang
/* execv.c */
2
 
3
/* This and the other exec*.c files in this directory require
4
   the target to provide the _execve syscall.  */
5
 
6
#include <_ansi.h>
7
#include <unistd.h>
8
 
9
/* Only deal with a pointer to environ, to work around subtle bugs with shared
10
   libraries and/or small data systems where the user declares his own
11
   'environ'.  */
12
static char ***p_environ = &environ;
13
 
14
int
15
_DEFUN (execv, (path, argv),
16
        const char *path _AND
17
        char * const argv[])
18
{
19
  return _execve (path, (char * _CONST *) argv, *p_environ);
20
}

powered by: WebSVN 2.1.0

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