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