xref: /illumos-gate/usr/src/cmd/listen/lsdata.c (revision 55fea89d)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
23 /*	  All Rights Reserved  	*/
24 
25 
26 #ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.9.1.1	*/
27 
28 /*
29  *	network listener process global initialized data
30  */
31 
32 #include	<fcntl.h>
33 
34 #define GLOBAL_DATA
35 
36 #include	"lserror.h"
37 
38 errlist err_list[] = {
39 
40 /* error message						exit code */
41 
42 {(char *)0,						0},
43 {"command line error",					1}, /* E_CMDLINE */
44 {"cannot change directory to home",			2}, /* E_CDHOME  */
45 {"cannot create a required file",			3}, /* E_CREAT	 */
46 {"cannot access or execute a file",			4},
47 {"cannot open a required file",				5},
48 {"cannot initialize properly (listener can't fork itself)",6},
49 {"cannot initialize properly (pidfile write)",		7},
50 
51 {"cannot open channel to network (FD1)",			11},
52 {"cannot open channel to network (FD2)",			12},
53 {"cannot open channel to network (FD3)",			13},
54 {"uname system call error",				14},
55 {"caught SIGTERM (exiting)",				15},
56 
57 {"data base and/or cmd line inconsistency",		99},
58 
59 {"TLI t_alloc failed",					101},
60 {"TLI t_bind failed",					102},
61 {"TLI bound a different name than requested",		103},
62 {"TLI t_free failed",					104},
63 {"System call failed while in a TLI routine",		105},
64 {"TLI t_listen failed",					106},
65 {"TLI t_accept failed",					107},
66 {"TLI t_snddis failed",					108},
67 {"TLI t_rcv failed",					109},
68 {"TLI t_snd failed",					110},
69 
70 {"Transport provider bug - too many outstanding connections",	201},
71 
72 {"Login service request; no intermediary process",	51},
73 {"Error during fork() to start a service",		52},
74 {"Error trying to rcv message to start a service",	53},
75 {"Timed out trying to rcv message to start a service",	54},
76 
77 {"An error occurred during network initialization",	61},
78 
79 {"An I/O error occurred while reading the listener data base", 71},
80 
81 {"ATT service: unknown version",			81},
82 {"ATT service: bad message format",			82},
83 
84 {"System error",					91},
85 {"Cannot allocate enough memory for data base",		92},
86 {"System error: poll failed",				93},
87 {"cannot allocate enough memory",			36},
88 {"TLI t_rcvdis failed",					111},
89 {"TLI t_look failed",					38},
90 {"Database file has been corrupted",			39},
91 {"Database file is not at the current version",		40},
92 {"Incoming call on FD without private address",		41},
93 };
94 
95