dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / lib / gss_mechs / mech_krb5 / et / adb_err.c
blob376ba9097ee18e0dde835a972511fc4798134441
1 /*
2 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
4 */
6 #pragma ident "%Z%%M% %I% %E% SMI"
8 void
9 initialize_adb_error_table(void) {
12 #include <locale.h>
13 const char *
14 adb_error_table(long errorno) {
16 switch (errorno) {
17 case 0:
18 return (dgettext(TEXT_DOMAIN,
19 "No Error"));
20 case 1:
21 return (dgettext(TEXT_DOMAIN,
22 "Principal or policy already exists"));
23 case 2:
24 return (dgettext(TEXT_DOMAIN,
25 "Principal or policy does not exist"));
26 case 3:
27 return (dgettext(TEXT_DOMAIN,
28 "Database not initialized"));
29 case 4:
30 return (dgettext(TEXT_DOMAIN,
31 "Invalid policy name"));
32 case 5:
33 return (dgettext(TEXT_DOMAIN,
34 "Invalid principal name"));
35 case 6:
36 return (dgettext(TEXT_DOMAIN,
37 "Database inconsistency detected"));
38 case 7:
39 return (dgettext(TEXT_DOMAIN,
40 "XDR encoding error"));
41 case 8:
42 return (dgettext(TEXT_DOMAIN,
43 "Failure!"));
44 case 9:
45 return (dgettext(TEXT_DOMAIN,
46 "Bad lock mode"));
47 case 10:
48 return (dgettext(TEXT_DOMAIN,
49 "Cannot lock database"));
50 case 11:
51 return (dgettext(TEXT_DOMAIN,
52 "Database not locked"));
53 case 12:
54 return (dgettext(TEXT_DOMAIN,
55 "KADM5 administration database lock file missing"));
56 case 13:
57 return (dgettext(TEXT_DOMAIN,
58 "Insufficient permission to lock file"));
59 default:
60 return ("unknown error");