forked from Imagelibrary/rtems
new file to support execv family support in newlib
This commit is contained in:
@@ -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
31
c/src/lib/libc/_execve.c
Normal 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
|
||||||
Reference in New Issue
Block a user