diff options
| author | Jakob Kaivo <jkk@ung.org> | 2024-01-31 16:44:28 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2024-01-31 16:44:28 -0500 |
| commit | 2bc46bd54cc8cdcd7647461f2d76384266f2a0e4 (patch) | |
| tree | 52b77d68abbe5f971f63d2c82df8e933b831b521 /src/unistd/execvp.c | |
| parent | a05e8f1436eecb990d68bc1de8ba28721f1f387d (diff) | |
remove unistd
Diffstat (limited to 'src/unistd/execvp.c')
| -rw-r--r-- | src/unistd/execvp.c | 24 |
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 |
