execute: add lif_execute_buf_with_result() to collect a result buffer

This commit is contained in:
Ariadne Conill 2020-07-28 13:01:15 -06:00
parent 3302089d4b
commit 3a75de9f8c
2 changed files with 52 additions and 0 deletions

View file

@ -27,6 +27,7 @@ struct lif_execute_opts {
};
extern bool lif_execute_fmt(const struct lif_execute_opts *opts, char *const envp[], const char *fmt, ...);
extern bool lif_execute_buf_with_result(const struct lif_execute_opts *opts, char *buf, size_t bufsize, char *const envp[], const char *fmt, ...);
extern bool lif_file_is_executable(const char *path);
extern bool lif_maybe_run_executor(const struct lif_execute_opts *opts, char *const envp[], const char *executor);