about summary refs log tree commit diff
path: root/posix/unistd.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-06-02 07:03:02 -0700
committerUlrich Drepper <drepper@redhat.com>2009-06-02 07:03:02 -0700
commit3d5243d4160519e56cba6eceae9b1d0e6b642515 (patch)
tree0a604dc10d26cd8d340eaeba814abd6cbf8bbe0c /posix/unistd.h
parentfd96f062085be71f4e2c07c98a3002bd55793b6e (diff)
downloadglibc-3d5243d4160519e56cba6eceae9b1d0e6b642515.tar.gz
glibc-3d5243d4160519e56cba6eceae9b1d0e6b642515.tar.xz
glibc-3d5243d4160519e56cba6eceae9b1d0e6b642515.zip
Implement execvpe.
There is some existing practice in other OSes and it's trivial to
implement giving the existing code.  Fixes BZ #10221.
Diffstat (limited to 'posix/unistd.h')
-rw-r--r--posix/unistd.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/posix/unistd.h b/posix/unistd.h
index 24ec74e05e..cbab9f939e 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.  */