2 * Copyright 2000, International Business Machines Corporation and others.
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
10 #ifndef _WEBLOG_ERRORS_H_INCLUDED_
11 #define _WEBLOG_ERRORS_H_INCLUDED_
13 /* error code definitions */
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)
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"
37 #define WEBLOGEXIT(code) \
39 (!code ? exit(0) : exit((code)-WEBLOGMINERROR))
41 #endif /* _WEBLOG_ERRORS_H_INCLUDED_ */