diff --git a/include/unistd.h b/include/unistd.h index bf10a6d1..a906552d 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -177,6 +177,7 @@ void endusershell(void); char *getusershell(void); int acct(const char *); long syscall(long, ...); +int execvpe(const char *, char *const [], char *const []); #endif #ifdef _GNU_SOURCE diff --git a/src/process/execvp.c b/src/process/execvp.c index 0a33e42d..7d322003 100644 --- a/src/process/execvp.c +++ b/src/process/execvp.c @@ -3,6 +3,7 @@ #include #include #include +#include "libc.h" extern char **__environ; @@ -47,3 +48,5 @@ int execvp(const char *file, char *const argv[]) { return __execvpe(file, argv, __environ); } + +weak_alias(__execvpe, execvpe);