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