summaryrefslogtreecommitdiff
path: root/include/unistd.h
diff options
context:
space:
mode:
authorHenning Heinold <heinold@inf.fu-berlin.de>2011-06-04 21:23:15 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-02-18 14:40:28 +0100
commit0eb30761a26c46aaf555464114851202ae9c27bd (patch)
treeea6a328a6137cb92e719df5c8bbb1ab4b552c49c /include/unistd.h
parentdcd8e7e8c9c5c5de727c9f1ff9499248cdf6f40e (diff)
libc: add non standard execvpe function
Signed-off-by: Henning Heinold <heinold@inf.fu-berlin.de> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'include/unistd.h')
-rw-r--r--include/unistd.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h
index feadf9382..947955469 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -619,6 +619,14 @@ extern int execlp (const char *__file, const char *__arg, ...)
__THROW __nonnull ((1));
libc_hidden_proto(execlp)
+#ifdef __USE_GNU
+/* Execute FILE, searching in the `PATH' environment variable if it contains
+ no slashes, with arguments ARGV and environment from a pointer */
+extern int execvpe (__const char *__file, char *__const __argv[], char *__const __envp[])
+ __THROW __nonnull ((1));
+libc_hidden_proto(execvpe)
+#endif
+
#if defined __USE_MISC || defined __USE_XOPEN
/* Add INC to priority of the current process. */