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