Added execvpe().

* This closes #12114 again; while not POSIX, it's just a line away.
* Removed exect() from the header -- not sure where this came from.
  but I can't find anything about it on the net.
* Consolidated use of asterisk style in exec.cpp.
This commit is contained in:
Axel Dörfler
2015-07-23 13:30:30 +02:00
parent edade0f506
commit 34671d601a
2 changed files with 43 additions and 34 deletions
+7 -5
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2004-2011 Haiku, Inc. All Rights Reserved.
* Copyright 2004-2015 Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _UNISTD_H_
@@ -207,13 +207,15 @@ extern int lockf(int fd, int function, off_t size);
/* process functions */
extern pid_t fork(void);
extern pid_t vfork(void);
extern int execve(const char *path, char * const argv[], char * const envp[]);
extern int execve(const char *path, char * const argv[],
char *const environment[]);
extern int execl(const char *path, const char *arg, ...);
extern int execv(const char *path, char *const *argv);
extern int execv(const char *path, char *const argv[]);
extern int execlp(const char *file, const char *arg, ...);
extern int execle(const char *path, const char *arg , ... /*, char **envp */);
extern int exect(const char *path, char *const *argv);
extern int execvp(const char *file, char *const *argv);
extern int execvp(const char *file, char *const argv[]);
extern int execvpe(const char *file, char *const argv[],
char *const environment[]);
extern void _exit(int status) __attribute__ ((noreturn));