summaryrefslogtreecommitdiff
path: root/newlib/libc/posix/execv.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/posix/execv.c')
-rw-r--r--newlib/libc/posix/execv.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/newlib/libc/posix/execv.c b/newlib/libc/posix/execv.c
new file mode 100644
index 00000000000..42a78cb52ac
--- /dev/null
+++ b/newlib/libc/posix/execv.c
@@ -0,0 +1,15 @@
+/* execv.c */
+
+/* This and the other exec*.c files in this directory require
+ the target to provide the _execve syscall. */
+
+#include <_ansi.h>
+#include <unistd.h>
+
+int
+_DEFUN (execv, (path, argv),
+ const char *path _AND
+ char * const argv[])
+{
+ return _execve (path, (char * _CONST *) argv, environ);
+}