dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / lib / gss_mechs / mech_krb5 / et / pty_err.c
blob983109efe72e8cbbe210d27f78fafa69fc9e8a3f
1 /*
2 * Copyright 1998-2002 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 pty_error_table(long errorno) {
12 switch (errorno) {
13 case 0:
14 return(dgettext(TEXT_DOMAIN,
15 "Failed to unlock or grant streams pty."));
16 case 1:
17 return(dgettext(TEXT_DOMAIN,
18 "fstat of master pty failed"));
19 case 2:
20 return(dgettext(TEXT_DOMAIN,
21 "All terminal ports in use"));
22 case 3:
23 return(dgettext(TEXT_DOMAIN,
24 "buffer to hold slave pty name is too short"));
25 case 4:
26 return(dgettext(TEXT_DOMAIN,
27 "Failed to open slave side of pty"));
28 case 5:
29 return(dgettext(TEXT_DOMAIN,
30 "Failed to chmod slave side of pty"));
31 case 6:
32 return(dgettext(TEXT_DOMAIN,
33 "Unable to set controlling terminal"));
34 case 7:
35 return(dgettext(TEXT_DOMAIN,
36 "Failed to chown slave side of pty"));
37 case 8:
38 return(dgettext(TEXT_DOMAIN,
39 "Call to line_push failed to push streams on slave pty"));
40 case 9:
41 return(dgettext(TEXT_DOMAIN,
42 "Failed to push stream on slave side of pty"));
43 case 10:
44 return(dgettext(TEXT_DOMAIN,
45 "Failed to revoke slave side of pty"));
46 case 11:
47 return(dgettext(TEXT_DOMAIN,
48 "bad process type passed to pty_update_utmp"));
49 case 12:
50 return(dgettext(TEXT_DOMAIN,
51 "Slave pty name is zero-length"));
52 default:
53 return("unknown error");