source: trunk/libs/newlib/src/newlib/libc/posix/execv.c @ 577

Last change on this file since 577 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 537 bytes
Line 
1#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'.  */
14static char ***p_environ = &environ;
15
16int
17execv (const char *path,
18        char * const argv[])
19{
20  return _execve (path, (char * const *) argv, *p_environ);
21}
22
23#endif /* !_NO_EXECVE  */
Note: See TracBrowser for help on using the repository browser.