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 | |
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')
-rw-r--r-- | c/src/lib/libc/Makefile.in | 2 | ||||
-rw-r--r-- | c/src/lib/libc/_execve.c | 31 |
2 files changed, 32 insertions, 1 deletions
diff --git a/c/src/lib/libc/Makefile.in b/c/src/lib/libc/Makefile.in index 63fc59ca34..2cdc92375c 100644 --- a/c/src/lib/libc/Makefile.in +++ b/c/src/lib/libc/Makefile.in @@ -12,7 +12,7 @@ LIBNAME=libcsupport.a LIB=${ARCH}/${LIBNAME} # C and C++ source names, if any, go here -- minus the .c or .cc -C_PIECES=__gettod __brk __times malloc syscalls \ +C_PIECES=__gettod __brk __times _execve malloc syscalls \ no_libc newlibc newlibif newlibifr support unixlibc \ libio hosterr tcattr termios C_FILES=$(C_PIECES:%=%.c) 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 |