3 #define HIDDENMODE (1 << 0) /* hide any windows, opened by execution */
4 #define WAITMODE (1 << 1) /* wait for execution to complete */
5 #define QUIETMODE (1 << 7) /* don't report any errors to user */
8 ERR_RUN_COMMAND_FORK
= 10000,
11 ERR_RUN_COMMAND_WAITPID
,
12 ERR_RUN_COMMAND_WAITPID_WRONG_PID
,
13 ERR_RUN_COMMAND_WAITPID_SIGNAL
,
14 ERR_RUN_COMMAND_WAITPID_NOEXIT
,
18 * Varargs interface to mingw_spawnvpe with NULL as end-of-format indicator.
20 * - supports specifying working directory;
21 * - supports different modes of operation (see NORMALMODE & co. above).
23 int exec_program(const char *working_directory
,
24 struct strbuf
*output
, struct strbuf
*error_output
,