summaryrefslogtreecommitdiff
path: root/src/unistd/execvp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unistd/execvp.c')
-rw-r--r--src/unistd/execvp.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/unistd/execvp.c b/src/unistd/execvp.c
deleted file mode 100644
index a7561184..00000000
--- a/src/unistd/execvp.c
+++ /dev/null
@@ -1,24 +0,0 @@
-#if 0
-
-#include <sys/types.h>
-#include <unistd.h>
-#include <errno.h>
-
-int execvp(const char *file, char *const argv[])
-{
- extern char **environ;
- /* search $PATH for file */
- execve(file, argv, environ);
- if (errno == ENOEXEC) {
- /* stuff /bin/sh in front */
- char sh[] = "/bin/sh";
- return execve(sh, argv, environ);
- }
- return -1;
-}
-/*
-POSIX(1)
-*/
-
-
-#endif