1*7c478bd9Sstevel@tonic-gate /*
2*7c478bd9Sstevel@tonic-gate  * Copyright (c) 1997-2000 by Sun Microsystems, Inc.
3*7c478bd9Sstevel@tonic-gate  * All rights reserved.
4*7c478bd9Sstevel@tonic-gate  */
5*7c478bd9Sstevel@tonic-gate 
6*7c478bd9Sstevel@tonic-gate /*
7*7c478bd9Sstevel@tonic-gate  * Copyright (c) 1996,1999 by Internet Software Consortium.
8*7c478bd9Sstevel@tonic-gate  *
9*7c478bd9Sstevel@tonic-gate  * Permission to use, copy, modify, and distribute this software for any
10*7c478bd9Sstevel@tonic-gate  * purpose with or without fee is hereby granted, provided that the above
11*7c478bd9Sstevel@tonic-gate  * copyright notice and this permission notice appear in all copies.
12*7c478bd9Sstevel@tonic-gate  *
13*7c478bd9Sstevel@tonic-gate  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
14*7c478bd9Sstevel@tonic-gate  * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
15*7c478bd9Sstevel@tonic-gate  * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
16*7c478bd9Sstevel@tonic-gate  * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
17*7c478bd9Sstevel@tonic-gate  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
18*7c478bd9Sstevel@tonic-gate  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
19*7c478bd9Sstevel@tonic-gate  * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
20*7c478bd9Sstevel@tonic-gate  * SOFTWARE.
21*7c478bd9Sstevel@tonic-gate  */
22*7c478bd9Sstevel@tonic-gate 
23*7c478bd9Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
24*7c478bd9Sstevel@tonic-gate 
25*7c478bd9Sstevel@tonic-gate /*
26*7c478bd9Sstevel@tonic-gate  * $Id: irs_data.h,v 1.12 1999/01/18 07:46:55 vixie Exp $
27*7c478bd9Sstevel@tonic-gate  */
28*7c478bd9Sstevel@tonic-gate 
29*7c478bd9Sstevel@tonic-gate #ifndef __BIND_NOSTATIC
30*7c478bd9Sstevel@tonic-gate 
31*7c478bd9Sstevel@tonic-gate #ifndef	_IRS_DATA_H
32*7c478bd9Sstevel@tonic-gate #define	_IRS_DATA_H
33*7c478bd9Sstevel@tonic-gate 
34*7c478bd9Sstevel@tonic-gate #define	net_data_init		__net_data_init
35*7c478bd9Sstevel@tonic-gate 
36*7c478bd9Sstevel@tonic-gate struct net_data {
37*7c478bd9Sstevel@tonic-gate 	struct irs_acc *	irs;
38*7c478bd9Sstevel@tonic-gate 
39*7c478bd9Sstevel@tonic-gate 	struct irs_gr *		gr;
40*7c478bd9Sstevel@tonic-gate 	struct irs_pw *		pw;
41*7c478bd9Sstevel@tonic-gate 	struct irs_sv *		sv;
42*7c478bd9Sstevel@tonic-gate 	struct irs_pr *		pr;
43*7c478bd9Sstevel@tonic-gate 	struct irs_ho *		ho;
44*7c478bd9Sstevel@tonic-gate 	struct irs_nw *		nw;
45*7c478bd9Sstevel@tonic-gate 	struct irs_ng *		ng;
46*7c478bd9Sstevel@tonic-gate 
47*7c478bd9Sstevel@tonic-gate 	struct group *		gr_last;
48*7c478bd9Sstevel@tonic-gate 	struct passwd *		pw_last;
49*7c478bd9Sstevel@tonic-gate 	struct servent *	sv_last;
50*7c478bd9Sstevel@tonic-gate 	struct protoent *	pr_last;
51*7c478bd9Sstevel@tonic-gate 	struct netent *		nw_last; /* should have been ne_last */
52*7c478bd9Sstevel@tonic-gate 	struct nwent *		nww_last;
53*7c478bd9Sstevel@tonic-gate 	struct hostent *	ho_last;
54*7c478bd9Sstevel@tonic-gate 
55*7c478bd9Sstevel@tonic-gate 	unsigned int		gr_stayopen :1;
56*7c478bd9Sstevel@tonic-gate 	unsigned int		pw_stayopen :1;
57*7c478bd9Sstevel@tonic-gate 	unsigned int		sv_stayopen :1;
58*7c478bd9Sstevel@tonic-gate 	unsigned int		pr_stayopen :1;
59*7c478bd9Sstevel@tonic-gate 	unsigned int		ho_stayopen :1;
60*7c478bd9Sstevel@tonic-gate 	unsigned int		nw_stayopen :1;
61*7c478bd9Sstevel@tonic-gate 
62*7c478bd9Sstevel@tonic-gate 	void *			nw_data;
63*7c478bd9Sstevel@tonic-gate 	void *			ho_data;
64*7c478bd9Sstevel@tonic-gate 
65*7c478bd9Sstevel@tonic-gate 	struct __res_state *	res;	/* for gethostent.c */
66*7c478bd9Sstevel@tonic-gate 
67*7c478bd9Sstevel@tonic-gate };
68*7c478bd9Sstevel@tonic-gate 
69*7c478bd9Sstevel@tonic-gate extern struct net_data *	net_data_init(const char *conf_file);
70*7c478bd9Sstevel@tonic-gate extern void			net_data_minimize(struct net_data *);
71*7c478bd9Sstevel@tonic-gate 
72*7c478bd9Sstevel@tonic-gate #endif	/* _IR_DATA_H */
73*7c478bd9Sstevel@tonic-gate 
74*7c478bd9Sstevel@tonic-gate #endif /*__BIND_NOSTATIC*/
75