mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-08 08:33:19 +00:00
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:
@@ -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>
|
2008-11-03 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
PR 1333/cpukit
|
PR 1333/cpukit
|
||||||
|
|||||||
@@ -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
|
src/lio_listio.c src/devctl.c
|
||||||
|
|
||||||
## ENOSYS_C_FILES
|
## ENOSYS_C_FILES
|
||||||
libposix_a_SOURCES += src/execl.c src/execle.c src/execlp.c src/execv.c \
|
libposix_a_SOURCES += src/_execve.c src/execl.c src/execle.c src/execlp.c \
|
||||||
src/execve.c src/execvp.c src/fork.c src/pthreadatfork.c src/wait.c \
|
src/execv.c src/execve.c src/execvp.c src/fork.c src/pthreadatfork.c \
|
||||||
src/waitpid.c
|
src/wait.c src/waitpid.c
|
||||||
|
|
||||||
## BARRIER_C_FILES
|
## BARRIER_C_FILES
|
||||||
libposix_a_SOURCES += src/barrierattrdestroy.c src/barrierattrgetpshared.c \
|
libposix_a_SOURCES += src/barrierattrdestroy.c src/barrierattrgetpshared.c \
|
||||||
|
|||||||
28
cpukit/posix/src/_execve.c
Normal file
28
cpukit/posix/src/_execve.c
Normal 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 );
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user