repo.or.cz
/
git.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[PATCH] Added hook in git-receive-pack
[git.git]
/
run-command.h
blob
4f646139e5386d6f34d6cd777473876e17ab8d66
1
#ifndef RUN_COMMAND_H
2
#define RUN_COMMAND_H
3
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
,
12
};
13
14
int
run_command
(
const char
*
cmd
, ...);
15
16
#endif