2008-11-05 Joel Sherrill <joel.sherrill@oarcorp.com>

* posix/Makefile.am: Add _execve() so we can use newlib posix support
	directory and eliminate code in RTEMS.
	* posix/src/_execve.c: New file.
This commit is contained in:
Joel Sherrill
2008-11-05 21:48:48 +00:00
parent 05c66cfe0f
commit c41f9d6f23
3 changed files with 37 additions and 3 deletions

View File

@@ -1,3 +1,9 @@
2008-11-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/Makefile.am: Add _execve() so we can use newlib posix support
directory and eliminate code in RTEMS.
* posix/src/_execve.c: New file.
2008-11-03 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1333/cpukit

View File

@@ -57,9 +57,9 @@ libposix_a_SOURCES += src/aio_cancel.c src/aio_error.c src/aio_fsync.c \
src/lio_listio.c src/devctl.c
## ENOSYS_C_FILES
libposix_a_SOURCES += src/execl.c src/execle.c src/execlp.c src/execv.c \
src/execve.c src/execvp.c src/fork.c src/pthreadatfork.c src/wait.c \
src/waitpid.c
libposix_a_SOURCES += src/_execve.c src/execl.c src/execle.c src/execlp.c \
src/execv.c src/execve.c src/execvp.c src/fork.c src/pthreadatfork.c \
src/wait.c src/waitpid.c
## BARRIER_C_FILES
libposix_a_SOURCES += src/barrierattrdestroy.c src/barrierattrgetpshared.c \

View File

@@ -0,0 +1,28 @@
/*
* execve() - POSIX 1003.1b 3.1.2
*
* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*
* $Id$
*/
#if HAVE_CONFIG_H
#include "config.h"
#endif
#include <errno.h>
#include <rtems/seterr.h>
int _execve(
const char *path,
char *const argv[],
char *const envp[]
)
{
rtems_set_errno_and_return_minus_one( ENOSYS );
}