2 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
6 #pragma ident "%Z%%M% %I% %E% SMI"
9 initialize_adb_error_table(void) {
14 adb_error_table(long errorno
) {
18 return (dgettext(TEXT_DOMAIN
,
21 return (dgettext(TEXT_DOMAIN
,
22 "Principal or policy already exists"));
24 return (dgettext(TEXT_DOMAIN
,
25 "Principal or policy does not exist"));
27 return (dgettext(TEXT_DOMAIN
,
28 "Database not initialized"));
30 return (dgettext(TEXT_DOMAIN
,
31 "Invalid policy name"));
33 return (dgettext(TEXT_DOMAIN
,
34 "Invalid principal name"));
36 return (dgettext(TEXT_DOMAIN
,
37 "Database inconsistency detected"));
39 return (dgettext(TEXT_DOMAIN
,
40 "XDR encoding error"));
42 return (dgettext(TEXT_DOMAIN
,
45 return (dgettext(TEXT_DOMAIN
,
48 return (dgettext(TEXT_DOMAIN
,
49 "Cannot lock database"));
51 return (dgettext(TEXT_DOMAIN
,
52 "Database not locked"));
54 return (dgettext(TEXT_DOMAIN
,
55 "KADM5 administration database lock file missing"));
57 return (dgettext(TEXT_DOMAIN
,
58 "Insufficient permission to lock file"));
60 return ("unknown error");