mirror of
https://github.com/encounter/newlib.git
synced 2026-03-30 11:31:09 -07:00
31 lines
746 B
C
31 lines
746 B
C
|
|
/*
|
||
|
|
* Stub version of execve.
|
||
|
|
*/
|
||
|
|
|
||
|
|
#include "config.h"
|
||
|
|
#include <_ansi.h>
|
||
|
|
#include <_syslist.h>
|
||
|
|
#include <errno.h>
|
||
|
|
|
||
|
|
#ifdef REENTRANT_SYSCALLS_PROVIDED
|
||
|
|
//---------------------------------------------------------------------------------
|
||
|
|
int _execve_r(
|
||
|
|
struct _reent *r,
|
||
|
|
char *name,
|
||
|
|
char **argv,
|
||
|
|
char **env) {
|
||
|
|
//---------------------------------------------------------------------------------
|
||
|
|
#else
|
||
|
|
//---------------------------------------------------------------------------------
|
||
|
|
int _execve(
|
||
|
|
char *name,
|
||
|
|
char **argv,
|
||
|
|
char **env) {
|
||
|
|
//---------------------------------------------------------------------------------
|
||
|
|
struct _reent *r = _REENT;
|
||
|
|
#endif
|
||
|
|
r->_errno = ENOSYS;
|
||
|
|
return -1;
|
||
|
|
}
|
||
|
|
|