From 3d5243d4160519e56cba6eceae9b1d0e6b642515 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 2 Jun 2009 07:03:02 -0700 Subject: Implement execvpe. There is some existing practice in other OSes and it's trivial to implement giving the existing code. Fixes BZ #10221. --- posix/unistd.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'posix/unistd.h') diff --git a/posix/unistd.h b/posix/unistd.h index 24ec74e..cbab9f9 100644 --- a/posix/unistd.h +++ b/posix/unistd.h @@ -551,6 +551,14 @@ extern int execvp (__const char *__file, char *__const __argv[]) extern int execlp (__const char *__file, __const char *__arg, ...) __THROW __nonnull ((1)); +#ifdef __USE_GNU +/* Execute FILE, searching in the `PATH' environment variable if it contains + no slashes, with arguments ARGV and environment from `environ'. */ +extern int execvpe (__const char *__file, char *__const __argv[], + char *__const __envp[]) + __THROW __nonnull ((1)); +#endif + #if defined __USE_MISC || defined __USE_XOPEN /* Add INC to priority of the current process. */ -- cgit v1.1