Make open(2) a macro that it replaces "/dev/null" by "nul" on MinGW.
[git/mingw.git] / run-command.h
blob2646d38ac7d3b4f301744fd61732e7c437ea80a5
1 #ifndef RUN_COMMAND_H
2 #define RUN_COMMAND_H
4 enum {
5 ERR_RUN_COMMAND_FORK = 10000,
6 ERR_RUN_COMMAND_EXEC,
7 ERR_RUN_COMMAND_WAITPID,
8 ERR_RUN_COMMAND_WAITPID_WRONG_PID,
9 ERR_RUN_COMMAND_WAITPID_SIGNAL,
10 ERR_RUN_COMMAND_WAITPID_NOEXIT,
13 #define RUN_COMMAND_NO_STDIN 1
14 #define RUN_GIT_CMD 2 /*If this is to be git sub-command */
15 #define RUN_COMMAND_STDOUT_TO_STDERR 4
16 int run_command_v_opt(const char **argv, int opt);
18 #endif