Add BIND 9.2.4rc7.
[dragonfly.git] / contrib / bind-9.2.4rc7 / lib / bind / irs / irs_data.h
blob6318bd4b27366dcebd4f12c613c5b9e50f035cce
1 /*
2 * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
3 * Copyright (c) 1996,1999 by Internet Software Consortium.
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.
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.
19 * $Id: irs_data.h,v 1.1.2.1 2004/03/09 09:17:32 marka Exp $
22 #ifndef __BIND_NOSTATIC
24 #define net_data_init __net_data_init
26 struct net_data {
27 struct irs_acc * irs;
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;
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;
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;
52 void * nw_data;
53 void * ho_data;
55 struct __res_state * res; /* for gethostent.c */
59 extern struct net_data * net_data_init(const char *conf_file);
60 extern void net_data_minimize(struct net_data *);
62 #endif /*__BIND_NOSTATIC*/