xref: /onnv-gate/usr/src/lib/gss_mechs/mech_krb5/et/ss_err.c (revision 0:68f95e015346)
1*0Sstevel@tonic-gate /*
2*0Sstevel@tonic-gate  * Copyright (c) 1998, by Sun Microsystems, Inc.
3*0Sstevel@tonic-gate  * All rights reserved.
4*0Sstevel@tonic-gate  */
5*0Sstevel@tonic-gate 
6*0Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
7*0Sstevel@tonic-gate 
8*0Sstevel@tonic-gate #include <locale.h>
9*0Sstevel@tonic-gate const char *
ss_error_table(long errorno)10*0Sstevel@tonic-gate ss_error_table(long errorno) {
11*0Sstevel@tonic-gate 
12*0Sstevel@tonic-gate switch (errorno) {
13*0Sstevel@tonic-gate 	case 0:
14*0Sstevel@tonic-gate 		return(dgettext(TEXT_DOMAIN,
15*0Sstevel@tonic-gate 			"Subsystem aborted"));
16*0Sstevel@tonic-gate 	case 1:
17*0Sstevel@tonic-gate 		return(dgettext(TEXT_DOMAIN,
18*0Sstevel@tonic-gate 			"Version mismatch"));
19*0Sstevel@tonic-gate 	case 2:
20*0Sstevel@tonic-gate 		return(dgettext(TEXT_DOMAIN,
21*0Sstevel@tonic-gate 			"No current invocation"));
22*0Sstevel@tonic-gate 	case 3:
23*0Sstevel@tonic-gate 		return(dgettext(TEXT_DOMAIN,
24*0Sstevel@tonic-gate 			"No info directory"));
25*0Sstevel@tonic-gate 	case 4:
26*0Sstevel@tonic-gate 		return(dgettext(TEXT_DOMAIN,
27*0Sstevel@tonic-gate 			"Command not found"));
28*0Sstevel@tonic-gate 	case 5:
29*0Sstevel@tonic-gate 		return(dgettext(TEXT_DOMAIN,
30*0Sstevel@tonic-gate 			"Command line aborted"));
31*0Sstevel@tonic-gate 	case 6:
32*0Sstevel@tonic-gate 		return(dgettext(TEXT_DOMAIN,
33*0Sstevel@tonic-gate 			"End-of-file reached"));
34*0Sstevel@tonic-gate 	case 7:
35*0Sstevel@tonic-gate 		return(dgettext(TEXT_DOMAIN,
36*0Sstevel@tonic-gate 			"Permission denied"));
37*0Sstevel@tonic-gate 	case 8:
38*0Sstevel@tonic-gate 		return(dgettext(TEXT_DOMAIN,
39*0Sstevel@tonic-gate 			"Request table not found"));
40*0Sstevel@tonic-gate 	case 9:
41*0Sstevel@tonic-gate 		return(dgettext(TEXT_DOMAIN,
42*0Sstevel@tonic-gate 			"No info available"));
43*0Sstevel@tonic-gate 	case 10:
44*0Sstevel@tonic-gate 		return(dgettext(TEXT_DOMAIN,
45*0Sstevel@tonic-gate 			"Shell escapes are disabled"));
46*0Sstevel@tonic-gate 	case 11:
47*0Sstevel@tonic-gate 		return(dgettext(TEXT_DOMAIN,
48*0Sstevel@tonic-gate 			"Sorry, this request is not yet implemented"));
49*0Sstevel@tonic-gate 	default:
50*0Sstevel@tonic-gate 		return("unknown error");
51*0Sstevel@tonic-gate 	}
52*0Sstevel@tonic-gate }
53