From 360d57f843f5435a75270e54583430dcb8f62546 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 14 Sep 2014 12:29:44 -0500 Subject: Split xpopen() into xpopen_both(), xpopen(), and xrun() depending on whether we want to redirect both, one, or neither of stdin/stdout. --- lib/lib.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib/lib.h') diff --git a/lib/lib.h b/lib/lib.h index b93e19bc..887c1d57 100644 --- a/lib/lib.h +++ b/lib/lib.h @@ -95,8 +95,12 @@ void xflush(void); pid_t xfork(void); void xexec_optargs(int skip); void xexec(char **argv); -pid_t xpopen(char **argv, int *pipes); -int xpclose(pid_t pid, int *pipes); +pid_t xpopen_both(char **argv, int *pipes); +int xpclose_both(pid_t pid, int *pipes); +pid_t xpopen(char **argv, int *pipe, int stdout); +pid_t xpclose(pid_t pid, int pipe); +int xrun(char **argv); +int xpspawn(char **argv, int*pipes); void xaccess(char *path, int flags); void xunlink(char *path); int xcreate(char *path, int flags, int mode); -- cgit v1.2.3