summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-07-09 23:41:48 +0530
committersinanmohd <sinan@sinanmohd.com>2024-07-09 23:47:07 +0530
commit9386c1f2519abd8b4351fc97419c41182389a1f6 (patch)
treee7b3d7f28839a00fe9a1ade63ccb394b3a209e0d /include
parent3c85d4765bc6592043c0dc5adfa377c3db51140b (diff)
util/vpopen: support for reading stderr
Diffstat (limited to 'include')
-rw-r--r--include/evanix.h2
-rw-r--r--include/util.h8
2 files changed, 8 insertions, 2 deletions
diff --git a/include/evanix.h b/include/evanix.h
index 48fe110..1e24590 100644
--- a/include/evanix.h
+++ b/include/evanix.h
@@ -7,7 +7,7 @@ struct evanix_opts_t {
bool isflake;
bool isdryrun;
bool ispipelined;
- bool close_stderr_exec;
+ bool close_unused_fd;
char *system;
uint32_t max_build;
};
diff --git a/include/util.h b/include/util.h
index 7c15354..1ffe148 100644
--- a/include/util.h
+++ b/include/util.h
@@ -13,7 +13,13 @@
(cur) = (next); \
}
+typedef enum {
+ VPOPEN_STDERR,
+ VPOPEN_STDOUT
+} vpopen_t;
+
+int vpopen(FILE **stream, const char *file, char *const argv[], vpopen_t type);
+
int json_streaming_read(FILE *stream, cJSON **json);
-int vpopen(FILE **stream, const char *file, char *const argv[]);
int atob(const char *s);
int run(const char *file, char *argv[]);