diff options
author | Rob Landley <rob@landley.net> | 2014-09-14 12:29:44 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2014-09-14 12:29:44 -0500 |
commit | 360d57f843f5435a75270e54583430dcb8f62546 (patch) | |
tree | 2e043033414a0cb03b6eb86b3b662f7ca9571788 /lib/lib.h | |
parent | e1366f02fea3cb035cc4ed0b59d12f1962b6ebfd (diff) | |
download | toybox-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.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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); |