From: M Farkas-Dyck Date: Sat, 19 Apr 2014 03:40:28 +0000 (-0500) Subject: expose public execvpe interface X-Git-Tag: v1.1.1~19 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=164c5c7a32eefa1800a42e07a47b4cc2d64cc802;p=oweals%2Fmusl.git expose public execvpe interface --- 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);