aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2014-09-14 12:29:44 -0500
committerRob Landley <rob@landley.net>2014-09-14 12:29:44 -0500
commit360d57f843f5435a75270e54583430dcb8f62546 (patch)
tree2e043033414a0cb03b6eb86b3b662f7ca9571788 /lib/lib.h
parente1366f02fea3cb035cc4ed0b59d12f1962b6ebfd (diff)
downloadtoybox-360d57f843f5435a75270e54583430dcb8f62546.tar.gz
Split xpopen() into xpopen_both(), xpopen(), and xrun() depending on whether we want to redirect both, one, or neither of stdin/stdout.
Diffstat (limited to 'lib/lib.h')
-rw-r--r--lib/lib.h8
1 files changed, 6 insertions, 2 deletions
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);