-char *talloc_basename(const void *ctx, const char *dir);
-char *talloc_dirname(const void *ctx, const char *dir);
-char *talloc_getcwd(const void *ctx);
-char *run_command(const void *ctx, unsigned int *time_ms, const char *fmt, ...);
-char *temp_file(const void *ctx, const char *extension);
+/* If set, print all commands run, all output they give and exit status. */
+extern bool tools_verbose;
+bool PRINTF_FMT(4,5) run_command(const void *ctx,
+ unsigned int *time_ms,
+ char **output,
+ const char *fmt, ...);
+char *run_with_timeout(const void *ctx, const char *cmd,
+ bool *ok, unsigned *timeout_ms);
+const char *temp_dir(void);
+void keep_temp_dir(void);