mirror of git://git.musl-libc.org/musl
expose public execvpe interface
This commit is contained in:
parent
476cd1d965
commit
164c5c7a32
|
@ -177,6 +177,7 @@ void endusershell(void);
|
||||||
char *getusershell(void);
|
char *getusershell(void);
|
||||||
int acct(const char *);
|
int acct(const char *);
|
||||||
long syscall(long, ...);
|
long syscall(long, ...);
|
||||||
|
int execvpe(const char *, char *const [], char *const []);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _GNU_SOURCE
|
#ifdef _GNU_SOURCE
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
#include "libc.h"
|
||||||
|
|
||||||
extern char **__environ;
|
extern char **__environ;
|
||||||
|
|
||||||
|
@ -47,3 +48,5 @@ int execvp(const char *file, char *const argv[])
|
||||||
{
|
{
|
||||||
return __execvpe(file, argv, __environ);
|
return __execvpe(file, argv, __environ);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
weak_alias(__execvpe, execvpe);
|
||||||
|
|
Loading…
Reference in New Issue