summaryrefslogtreecommitdiff
path: root/src/unistd/execvp.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-01-31 16:44:28 -0500
committerJakob Kaivo <jkk@ung.org>2024-01-31 16:44:28 -0500
commit2bc46bd54cc8cdcd7647461f2d76384266f2a0e4 (patch)
tree52b77d68abbe5f971f63d2c82df8e933b831b521 /src/unistd/execvp.c
parenta05e8f1436eecb990d68bc1de8ba28721f1f387d (diff)
remove unistd
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