diff options
Diffstat (limited to 'src/common.h')
| -rw-r--r-- | src/common.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/common.h b/src/common.h index b1917c22f..c963032f2 100644 --- a/src/common.h +++ b/src/common.h @@ -26,9 +26,9 @@ #include <sys/types.h> #include <unistd.h> -void fatal(const char*, const char*, ...); -void check_caller(const char*, gid_t); -int run_script(const char*, int, char**, char**); +extern void fatal(const char*, int, const char*, ...); +extern void check_caller(const char*, gid_t); +extern int run_script(const char*, int, char**, char**); /* bogus global variable used as a flag */ extern int running_as_cgi; @@ -37,6 +37,16 @@ extern int running_as_cgi; extern const char* logident; +/* exit codes, so it's easier to distinguish what caused fatal errors when + * looking at syslogs. + */ +#define GID_MISMATCH 2 +#define SETREGID_FAILURE 3 +#define EXECVE_FAILURE 4 +#define MAIL_USAGE_ERROR 5 +#define MAIL_ILLEGAL_COMMAND 6 + + /* * Local Variables: |
