new file to support execv family support in newlib

This commit is contained in:
Joel Sherrill
1998-05-11 17:39:59 +00:00
parent d37ea46231
commit c4638fff39
2 changed files with 32 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ LIBNAME=libcsupport.a
LIB=${ARCH}/${LIBNAME} LIB=${ARCH}/${LIBNAME}
# C and C++ source names, if any, go here -- minus the .c or .cc # 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 \ no_libc newlibc newlibif newlibifr support unixlibc \
libio hosterr tcattr termios libio hosterr tcattr termios
C_FILES=$(C_PIECES:%=%.c) C_FILES=$(C_PIECES:%=%.c)

31
c/src/lib/libc/_execve.c Normal file
View File

@@ -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