summaryrefslogtreecommitdiffstats
path: root/lib/system/system.h
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-06-20 13:27:16 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-06-24 13:07:58 +0800
commitc20a0460f3c9057aa920949414f8c3bd6529f927 (patch)
tree9fa41a7f92482b7441049afcdb4528bcd0aef221 /lib/system/system.h
parent974853d86dd6328ec2aaf6b9ff5b56398942a902 (diff)
downloadtalos-petitboot-c20a0460f3c9057aa920949414f8c3bd6529f927.tar.gz
talos-petitboot-c20a0460f3c9057aa920949414f8c3bd6529f927.zip
lib/system: Add pb_run_cmd_pipe
Add a function to run a command and capture the output into a buffer. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'lib/system/system.h')
-rw-r--r--lib/system/system.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/system/system.h b/lib/system/system.h
index 271c435..a7a1a12 100644
--- a/lib/system/system.h
+++ b/lib/system/system.h
@@ -18,6 +18,8 @@ struct pb_system_apps {
extern const struct pb_system_apps pb_system_apps;
int pb_run_cmd(const char *const *cmd_argv, int wait, int dry_run);
+int pb_run_cmd_pipe(const char *const *cmd_argv, int wait, int dry_run,
+ void *ctx, char **buf, int *buf_len);
int pb_mkdir_recursive(const char *dir);
int pb_rmdir_recursive(const char *base, const char *dir);
OpenPOWER on IntegriCloud