Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / afsweb / weblog_errors.h
CommitLineData
805e021f
CE
1/*
2 * Copyright 2000, International Business Machines Corporation and others.
3 * All Rights Reserved.
4 *
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
8 */
9
10#ifndef _WEBLOG_ERRORS_H_INCLUDED_
11#define _WEBLOG_ERRORS_H_INCLUDED_
12
13/* error code definitions */
14#define PIPEREAD 1
15#define PIPESEND 2
16#define KA 3
17#define PARSE 4
18#define NULLARGS 5
19#define RESTART 6
20
21#define WEBLOGMINERROR ((10<<16))
22#define PIPEREADERROR (WEBLOGMINERROR + PIPEREAD)
23#define PIPESENDERROR (WEBLOGMINERROR + PIPESEND)
24#define KAERROR (WEBLOGMINERROR + KA)
25#define NULLARGSERROR (WEBLOGMINERROR + PARSE)
26#define PARSEERROR (WEBLOGMINERROR + NULLARGS)
27#define RESTARTERROR (WEBLOGMINERROR + RESTART)
28
29#define PIPEREADMSG "Error reading from pipe"
30#define KAMSG "Kerberos Authentication error from ka_init"
31#define PIPESENDMSG "Error sending through pipe"
32#define PARSEMSG "Error parsing data recieved from pipe"
33#define NULLARGSMSG "Null arguments"
34#define RESTARTMSG "Error restarting"
35
36
37#define WEBLOGEXIT(code) \
38rx_Finalize(); \
39(!code ? exit(0) : exit((code)-WEBLOGMINERROR))
40
41#endif /* _WEBLOG_ERRORS_H_INCLUDED_ */