summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/_execve.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-11-05 21:48:48 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-11-05 21:48:48 +0000
commitc41f9d6f238def66c6e740ac95dfba05e5e82bdb (patch)
tree08e4f2ccd36994e0de4d95aab89359c41c9ca6a2 /cpukit/posix/src/_execve.c
parentUpdate. (diff)
downloadrtems-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/posix/src/_execve.c')
-rw-r--r--cpukit/posix/src/_execve.c28
1 files changed, 28 insertions, 0 deletions
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 );
+}