about summary refs log tree commit diff
diff options
context:
space:
mode:
authorM Farkas-Dyck <strake888@gmail.com>2014-04-18 22:40:28 -0500
committerRich Felker <dalias@aerifal.cx>2014-04-20 00:26:55 -0400
commit164c5c7a32eefa1800a42e07a47b4cc2d64cc802 (patch)
tree206aff0d85aec6f1b241dbb649e3ff7bcbf29c8d
parent476cd1d96560aaf7f210319597556e7fbcd60469 (diff)
downloadmusl-164c5c7a32eefa1800a42e07a47b4cc2d64cc802.tar.gz
musl-164c5c7a32eefa1800a42e07a47b4cc2d64cc802.tar.xz
musl-164c5c7a32eefa1800a42e07a47b4cc2d64cc802.zip
expose public execvpe interface
-rw-r--r--include/unistd.h1
-rw-r--r--src/process/execvp.c3
2 files changed, 4 insertions, 0 deletions
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 <unistd.h>
 #include <errno.h>
 #include <limits.h>
+#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);