LibC: Implement execvpe
This is not part of posix but it seems handy
This commit is contained in:
@@ -530,6 +530,7 @@ int execlp(const char* file, const char* arg0, ...);
|
||||
int execv(const char* path, char* const argv[]);
|
||||
int execve(const char* path, char* const argv[], char* const envp[]);
|
||||
int execvp(const char* file, char* const argv[]);
|
||||
int execvpe(const char* file, char* const argv[], char* const envp[]);
|
||||
int faccessat(int fd, const char* path, int amode, int flag);
|
||||
int fchdir(int fildes);
|
||||
int fchown(int fildes, uid_t owner, gid_t group);
|
||||
|
||||
@@ -431,6 +431,11 @@ int execvp(const char* pathname, char* const argv[])
|
||||
return exec_impl(pathname, argv, environ, true);
|
||||
}
|
||||
|
||||
int execvpe(const char* pathname, char* const argv[], char* const envp[])
|
||||
{
|
||||
return exec_impl(pathname, argv, envp, true);
|
||||
}
|
||||
|
||||
pid_t fork(void)
|
||||
{
|
||||
_pthread_call_atfork(_PTHREAD_ATFORK_PREPARE);
|
||||
|
||||
Reference in New Issue
Block a user