diff options
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 |