diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-11-05 21:48:48 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-11-05 21:48:48 +0000 |
commit | c41f9d6f238def66c6e740ac95dfba05e5e82bdb (patch) | |
tree | 08e4f2ccd36994e0de4d95aab89359c41c9ca6a2 /cpukit | |
parent | Update. (diff) | |
download | rtems-c41f9d6f238def66c6e740ac95dfba05e5e82bdb.tar.bz2 |
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.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 6 | ||||
-rw-r--r-- | cpukit/posix/Makefile.am | 6 | ||||
-rw-r--r-- | cpukit/posix/src/_execve.c | 28 |
3 files changed, 37 insertions, 3 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 9934c471bf..551c595bfc 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -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 diff --git a/cpukit/posix/Makefile.am b/cpukit/posix/Makefile.am index dcb0d7c0f7..04025c4494 100644 --- a/cpukit/posix/Makefile.am +++ b/cpukit/posix/Makefile.am @@ -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 \ diff --git a/cpukit/posix/src/_execve.c b/cpukit/posix/src/_execve.c new file mode 100644 index 0000000000..da05c4a526 --- /dev/null +++ b/cpukit/posix/src/_execve.c @@ -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 ); +} |