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 /* This include file defines the error code base for each of the packages in
11 AFS. This is an informal system so people should feel free to add their own
12 packages if they don't appear here. */
14 /* The convention is that each package is assigned a small integer. This
15 package number is shifted into the high 16 bits to for the error number base
16 for that package. As an added convention we add 1000 to this base to allow
17 the space of the kernel errno numbers to "show" through. These code will be
18 the same in all packages and most packages will probably not use them. */
20 /* Each package is assumed to have a short two or three (or four or five)
21 letter mnemonic which will be used to name external variables, procedures
22 and constants. This prefix will be used to name the constant that defines
23 the minimum error code for each package. Each package should define its own
24 constant defining the maximum error code using the same conventions (eg
29 #define ERROROFFSET 1000
31 #define KAMINERROR (( 1 <<16)+ERROROFFSET) /* kerberos authentication server */
32 #define PRMINERROR (( 2 <<16)+ERROROFFSET) /* AFS protection server */
33 #define VLMINERROR (( 3 <<16)+ERROROFFSET) /* Volume Location database */
34 #define VSMINERROR (( 4 <<16)+ERROROFFSET) /* Volume Services */
35 #define RXMINERROR (( 5 <<16)+ERROROFFSET) /* Rx RPC facility */
36 #define RXGENMINERROR (( 6 <<16)+ERROROFFSET) /* RxGen */
37 #define LWPMINERROR (( 7 <<16)+ERROROFFSET) /* Light Weight Process package */
38 #define RXKADMINERROR (( 8 <<16)+ERROROFFSET) /* Kerberos security module for Rx */
39 #define CMDMINERROR (( 9 <<16)+ERROROFFSET) /* Command line parser utilities */
40 #define UMINERROR (( 10 <<16)+ERROROFFSET) /* Ubik replicated database */
41 #define VICEMINERROR (( 11 <<16)+ERROROFFSET) /* Vast Integrated Computing Environment */
42 #define BOSMINERROR (( 12 <<16)+ERROROFFSET) /* Bozo Operations System */
43 #define ESMINERROR (( 13 <<16)+ERROROFFSET) /* Error and Statistics logger */