diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-05-11 17:39:59 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-05-11 17:39:59 +0000 |
commit | c4638fff39e9936722aa928e5262e4fe7b7eb9af (patch) | |
tree | de3eba87a4becfdc1021b1a3535aad6bdf098c46 /c/src/lib/libc/_execve.c | |
parent | execv*() now comes from newlib. (diff) | |
download | rtems-c4638fff39e9936722aa928e5262e4fe7b7eb9af.tar.bz2 |
new file to support execv family support in newlib
Diffstat (limited to 'c/src/lib/libc/_execve.c')
-rw-r--r-- | c/src/lib/libc/_execve.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/c/src/lib/libc/_execve.c b/c/src/lib/libc/_execve.c new file mode 100644 index 0000000000..d1ad365b57 --- /dev/null +++ b/c/src/lib/libc/_execve.c @@ -0,0 +1,31 @@ +#include <rtems.h> + +#if defined(RTEMS_NEWLIB) +/* + * RTEMS Dummy _execveImplementation + * + * + * COPYRIGHT (c) 1989-1998. + * On-Line Applications Research Corporation (OAR). + * Copyright assigned to U.S. Government, 1994. + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.OARcorp.com/rtems/license.html. + * + * $Id$ + */ + +#include <unistd.h> +#include <errno.h> + +int _execve( + const char *path, + char *const argv[], + char *const environ[] +) +{ + errno = ENOSYS; + return -1; +} +#endif |