summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libc/_execve.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-05-11 17:39:59 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-05-11 17:39:59 +0000
commitc4638fff39e9936722aa928e5262e4fe7b7eb9af (patch)
treede3eba87a4becfdc1021b1a3535aad6bdf098c46 /c/src/lib/libc/_execve.c
parentexecv*() now comes from newlib. (diff)
downloadrtems-c4638fff39e9936722aa928e5262e4fe7b7eb9af.tar.bz2
new file to support execv family support in newlib
Diffstat (limited to 'c/src/lib/libc/_execve.c')
-rw-r--r--c/src/lib/libc/_execve.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/c/src/lib/libc/_execve.c b/c/src/lib/libc/_execve.c
new file mode 100644
index 0000000000..d1ad365b57
--- /dev/null
+++ b/c/src/lib/libc/_execve.c
@@ -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