xref: /illumos-gate/usr/src/cmd/listen/lsdata.c (revision 55fea89d)
17c478bd9Sstevel@tonic-gate /*
27c478bd9Sstevel@tonic-gate  * CDDL HEADER START
37c478bd9Sstevel@tonic-gate  *
47c478bd9Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
57c478bd9Sstevel@tonic-gate  * Common Development and Distribution License, Version 1.0 only
67c478bd9Sstevel@tonic-gate  * (the "License").  You may not use this file except in compliance
77c478bd9Sstevel@tonic-gate  * with the License.
87c478bd9Sstevel@tonic-gate  *
97c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
107c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
117c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
127c478bd9Sstevel@tonic-gate  * and limitations under the License.
137c478bd9Sstevel@tonic-gate  *
147c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
157c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
167c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
177c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
187c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
197c478bd9Sstevel@tonic-gate  *
207c478bd9Sstevel@tonic-gate  * CDDL HEADER END
217c478bd9Sstevel@tonic-gate  */
227c478bd9Sstevel@tonic-gate /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
237c478bd9Sstevel@tonic-gate /*	  All Rights Reserved  	*/
247c478bd9Sstevel@tonic-gate 
257c478bd9Sstevel@tonic-gate 
267c478bd9Sstevel@tonic-gate #ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.9.1.1	*/
277c478bd9Sstevel@tonic-gate 
287c478bd9Sstevel@tonic-gate /*
297c478bd9Sstevel@tonic-gate  *	network listener process global initialized data
307c478bd9Sstevel@tonic-gate  */
317c478bd9Sstevel@tonic-gate 
327c478bd9Sstevel@tonic-gate #include	<fcntl.h>
337c478bd9Sstevel@tonic-gate 
347c478bd9Sstevel@tonic-gate #define GLOBAL_DATA
357c478bd9Sstevel@tonic-gate 
367c478bd9Sstevel@tonic-gate #include	"lserror.h"
377c478bd9Sstevel@tonic-gate 
387c478bd9Sstevel@tonic-gate errlist err_list[] = {
397c478bd9Sstevel@tonic-gate 
407c478bd9Sstevel@tonic-gate /* error message						exit code */
417c478bd9Sstevel@tonic-gate 
427c478bd9Sstevel@tonic-gate {(char *)0,						0},
437c478bd9Sstevel@tonic-gate {"command line error",					1}, /* E_CMDLINE */
447c478bd9Sstevel@tonic-gate {"cannot change directory to home",			2}, /* E_CDHOME  */
457c478bd9Sstevel@tonic-gate {"cannot create a required file",			3}, /* E_CREAT	 */
467c478bd9Sstevel@tonic-gate {"cannot access or execute a file",			4},
477c478bd9Sstevel@tonic-gate {"cannot open a required file",				5},
487c478bd9Sstevel@tonic-gate {"cannot initialize properly (listener can't fork itself)",6},
497c478bd9Sstevel@tonic-gate {"cannot initialize properly (pidfile write)",		7},
507c478bd9Sstevel@tonic-gate 
51*55fea89dSDan Cross {"cannot open channel to network (FD1)",			11},
52*55fea89dSDan Cross {"cannot open channel to network (FD2)",			12},
537c478bd9Sstevel@tonic-gate {"cannot open channel to network (FD3)",			13},
547c478bd9Sstevel@tonic-gate {"uname system call error",				14},
557c478bd9Sstevel@tonic-gate {"caught SIGTERM (exiting)",				15},
567c478bd9Sstevel@tonic-gate 
577c478bd9Sstevel@tonic-gate {"data base and/or cmd line inconsistency",		99},
587c478bd9Sstevel@tonic-gate 
597c478bd9Sstevel@tonic-gate {"TLI t_alloc failed",					101},
607c478bd9Sstevel@tonic-gate {"TLI t_bind failed",					102},
617c478bd9Sstevel@tonic-gate {"TLI bound a different name than requested",		103},
627c478bd9Sstevel@tonic-gate {"TLI t_free failed",					104},
637c478bd9Sstevel@tonic-gate {"System call failed while in a TLI routine",		105},
647c478bd9Sstevel@tonic-gate {"TLI t_listen failed",					106},
657c478bd9Sstevel@tonic-gate {"TLI t_accept failed",					107},
667c478bd9Sstevel@tonic-gate {"TLI t_snddis failed",					108},
677c478bd9Sstevel@tonic-gate {"TLI t_rcv failed",					109},
687c478bd9Sstevel@tonic-gate {"TLI t_snd failed",					110},
697c478bd9Sstevel@tonic-gate 
707c478bd9Sstevel@tonic-gate {"Transport provider bug - too many outstanding connections",	201},
717c478bd9Sstevel@tonic-gate 
727c478bd9Sstevel@tonic-gate {"Login service request; no intermediary process",	51},
737c478bd9Sstevel@tonic-gate {"Error during fork() to start a service",		52},
747c478bd9Sstevel@tonic-gate {"Error trying to rcv message to start a service",	53},
757c478bd9Sstevel@tonic-gate {"Timed out trying to rcv message to start a service",	54},
767c478bd9Sstevel@tonic-gate 
777c478bd9Sstevel@tonic-gate {"An error occurred during network initialization",	61},
787c478bd9Sstevel@tonic-gate 
797c478bd9Sstevel@tonic-gate {"An I/O error occurred while reading the listener data base", 71},
807c478bd9Sstevel@tonic-gate 
817c478bd9Sstevel@tonic-gate {"ATT service: unknown version",			81},
827c478bd9Sstevel@tonic-gate {"ATT service: bad message format",			82},
837c478bd9Sstevel@tonic-gate 
847c478bd9Sstevel@tonic-gate {"System error",					91},
857c478bd9Sstevel@tonic-gate {"Cannot allocate enough memory for data base",		92},
867c478bd9Sstevel@tonic-gate {"System error: poll failed",				93},
877c478bd9Sstevel@tonic-gate {"cannot allocate enough memory",			36},
887c478bd9Sstevel@tonic-gate {"TLI t_rcvdis failed",					111},
897c478bd9Sstevel@tonic-gate {"TLI t_look failed",					38},
907c478bd9Sstevel@tonic-gate {"Database file has been corrupted",			39},
917c478bd9Sstevel@tonic-gate {"Database file is not at the current version",		40},
927c478bd9Sstevel@tonic-gate {"Incoming call on FD without private address",		41},
937c478bd9Sstevel@tonic-gate };
947c478bd9Sstevel@tonic-gate 
95