diff options
author | Matthew Dempsky <matthew@cvs.openbsd.org> | 2012-03-21 23:20:36 +0000 |
---|---|---|
committer | Matthew Dempsky <matthew@cvs.openbsd.org> | 2012-03-21 23:20:36 +0000 |
commit | bec4c79143a9a3b2a6b939a4e009faeb84e68413 (patch) | |
tree | 0d73a945fd17d0c47a44740051ac53d9580d97db /include/unistd.h | |
parent | d766fdfbcfc81e72aabb0f63e202c7ec190838c2 (diff) |
Implement execvpe(3) and posix_spawn(3) and family. Based on
FreeBSD's implementation via Frank Denis, with various cleanups and
tweaks by me.
ok deraadt@, guenther@; discussions and tweaks from many others
jmc@ promises to help me further with the man pages in tree
Diffstat (limited to 'include/unistd.h')
-rw-r--r-- | include/unistd.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/unistd.h b/include/unistd.h index 51116fdcff5..f4ea34ee650 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: unistd.h,v 1.67 2012/01/13 13:16:44 nigel Exp $ */ +/* $OpenBSD: unistd.h,v 1.68 2012/03/21 23:20:35 matthew Exp $ */ /* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */ /*- @@ -79,9 +79,12 @@ int execl(const char *, const char *, ...) int execle(const char *, const char *, ...); int execlp(const char *, const char *, ...) __attribute__((sentinel)); -int execv(const char *, char * const *); -int execve(const char *, char * const *, char * const *); -int execvp(const char *, char * const *); +int execv(const char *, char *const *); +int execve(const char *, char *const *, char *const *); +int execvp(const char *, char *const *); +#if __BSD_VISIBLE +int execvpe(const char *, char *const *, char *const *); +#endif pid_t fork(void); long fpathconf(int, int); char *getcwd(char *, size_t) |