From 164c5c7a32eefa1800a42e07a47b4cc2d64cc802 Mon Sep 17 00:00:00 2001 From: M Farkas-Dyck Date: Fri, 18 Apr 2014 22:40:28 -0500 Subject: expose public execvpe interface --- include/unistd.h | 1 + src/process/execvp.c | 3 +++ 2 files changed, 4 insertions(+) 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); -- cgit v1.2.1