expose public execvpe interface
authorM Farkas-Dyck <strake888@gmail.com>
Sat, 19 Apr 2014 03:40:28 +0000 (22:40 -0500)
committerRich Felker <dalias@aerifal.cx>
Sun, 20 Apr 2014 04:26:55 +0000 (00:26 -0400)
include/unistd.h
src/process/execvp.c

index bf10a6d..a906552 100644 (file)
@@ -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
index 0a33e42..7d32200 100644 (file)
@@ -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);