dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / lib / gss_mechs / mech_krb5 / et / prof_err.c
blob0f2b41493b9b486c7e7c950c4bf6eaf356f10930
1 /*
2 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
4 */
6 #pragma ident "%Z%%M% %I% %E% SMI"
8 #include <locale.h>
9 const char *
10 prof_error_table(long errorno) {
12 switch (errorno) {
13 case 0:
14 return(dgettext(TEXT_DOMAIN,
15 "Profile version 0.0"));
16 case 1:
17 return(dgettext(TEXT_DOMAIN,
18 "Bad magic value in profile_node"));
19 case 2:
20 return(dgettext(TEXT_DOMAIN,
21 "Profile section not found"));
22 case 3:
23 return(dgettext(TEXT_DOMAIN,
24 "Profile relation not found"));
25 case 4:
26 return(dgettext(TEXT_DOMAIN,
27 "Attempt to add a relation to node which is not a section"));
28 case 5:
29 return(dgettext(TEXT_DOMAIN,
30 "A profile section header has a non-zero value"));
31 case 6:
32 return(dgettext(TEXT_DOMAIN,
33 "Bad linked list in profile structures"));
34 case 7:
35 return(dgettext(TEXT_DOMAIN,
36 "Bad group level in profile structures"));
37 case 8:
38 return(dgettext(TEXT_DOMAIN,
39 "Bad parent pointer in profile structures"));
40 case 9:
41 return(dgettext(TEXT_DOMAIN,
42 "Bad magic value in profile iterator"));
43 case 10:
44 return(dgettext(TEXT_DOMAIN,
45 "Can't set value on section node"));
46 case 11:
47 return(dgettext(TEXT_DOMAIN,
48 "Invalid argument passed to profile library"));
49 case 12:
50 return(dgettext(TEXT_DOMAIN,
51 "Attempt to modify read-only profile"));
52 case 13:
53 return(dgettext(TEXT_DOMAIN,
54 "Profile section header not at top level"));
55 case 14:
56 return(dgettext(TEXT_DOMAIN,
57 "Syntax error in profile section header"));
58 case 15:
59 return(dgettext(TEXT_DOMAIN,
60 "Syntax error in profile relation"));
61 case 16:
62 return(dgettext(TEXT_DOMAIN,
63 "Extra closing brace in profile"));
64 case 17:
65 return(dgettext(TEXT_DOMAIN,
66 "Missing open brace in profile"));
67 case 18:
68 return(dgettext(TEXT_DOMAIN,
69 "Bad magic value in profile_t"));
70 case 19:
71 return(dgettext(TEXT_DOMAIN,
72 "Bad magic value in profile_section_t"));
73 case 20:
74 return(dgettext(TEXT_DOMAIN,
75 "Iteration through all top level section not supported"));
76 case 21:
77 return(dgettext(TEXT_DOMAIN,
78 "Invalid profile_section object"));
79 case 22:
80 return(dgettext(TEXT_DOMAIN,
81 "No more sections"));
82 case 23:
83 return(dgettext(TEXT_DOMAIN,
84 "Bad nameset passed to query routine"));
85 case 24:
86 return(dgettext(TEXT_DOMAIN,
87 "No profile file open"));
88 case 25:
89 return(dgettext(TEXT_DOMAIN,
90 "Bad magic value in profile_file_t"));
91 case 26:
92 return(dgettext(TEXT_DOMAIN,
93 "Couldn't open profile file"));
94 case 27:
95 return(dgettext(TEXT_DOMAIN,
96 "Section already exists"));
97 case 28:
98 return(dgettext(TEXT_DOMAIN,
99 "Invalid boolean value"));
100 case 29:
101 return(dgettext(TEXT_DOMAIN,
102 "Invalid integer value"));
103 case 30:
104 return(dgettext(TEXT_DOMAIN,
105 "Bad magic value in profile_file_data_t"));
106 default:
107 return("unknown error");