glossary: Add definitions for dangling and unreachable objects
[git/mingw/4msysgit/kblees.git] / run-command.h
blob59c4476ced789441eea3f68bfc7377e7e15e9b14
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_STDIN 1
15 #define RUN_GIT_CMD 2 /*If this is to be git sub-command */
16 #define RUN_COMMAND_STDOUT_TO_STDERR 4
17 int run_command_v_opt(const char **argv, int opt);
18 int run_command_v(const char **argv);
19 int run_command_opt(int opt, const char *cmd, ...);
20 int run_command(const char *cmd, ...);
22 #endif