git-rebase: Usage string clean-up, emit usage string at incorrect invocation
[alt-git.git] / run-command.h
blob2469eeaefbc19424d5ec61f173cc17b68a183bc5
1 #ifndef RUN_COMMAND_H
2 #define RUN_COMMAND_H
4 #define MAX_RUN_COMMAND_ARGS 256
5 enum {
6 ERR_RUN_COMMAND_FORK = 10000,
7 ERR_RUN_COMMAND_EXEC,
8 ERR_RUN_COMMAND_WAITPID,
9 ERR_RUN_COMMAND_WAITPID_WRONG_PID,
10 ERR_RUN_COMMAND_WAITPID_SIGNAL,
11 ERR_RUN_COMMAND_WAITPID_NOEXIT,
14 #define RUN_COMMAND_NO_STDIO 1
16 int run_command_v_opt(int argc, char **argv, int opt);
17 int run_command_v(int argc, char **argv);
18 int run_command(const char *cmd, ...);
20 #endif