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