17c478bd9Sstevel@tonic-gate /*
2*9525b14bSRao Shoaib  * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
37c478bd9Sstevel@tonic-gate  * Copyright (c) 1996,1999 by Internet Software Consortium.
47c478bd9Sstevel@tonic-gate  *
57c478bd9Sstevel@tonic-gate  * Permission to use, copy, modify, and distribute this software for any
67c478bd9Sstevel@tonic-gate  * purpose with or without fee is hereby granted, provided that the above
77c478bd9Sstevel@tonic-gate  * copyright notice and this permission notice appear in all copies.
87c478bd9Sstevel@tonic-gate  *
9*9525b14bSRao Shoaib  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
10*9525b14bSRao Shoaib  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11*9525b14bSRao Shoaib  * MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR
12*9525b14bSRao Shoaib  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13*9525b14bSRao Shoaib  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14*9525b14bSRao Shoaib  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
15*9525b14bSRao Shoaib  * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
167c478bd9Sstevel@tonic-gate  */
177c478bd9Sstevel@tonic-gate 
187c478bd9Sstevel@tonic-gate /*
19*9525b14bSRao Shoaib  * $Id: irs_data.h,v 1.3 2005/04/27 04:56:30 sra Exp $
207c478bd9Sstevel@tonic-gate  */
217c478bd9Sstevel@tonic-gate 
227c478bd9Sstevel@tonic-gate #ifndef __BIND_NOSTATIC
237c478bd9Sstevel@tonic-gate 
247c478bd9Sstevel@tonic-gate #define	net_data_init		__net_data_init
257c478bd9Sstevel@tonic-gate 
267c478bd9Sstevel@tonic-gate struct net_data {
277c478bd9Sstevel@tonic-gate 	struct irs_acc *	irs;
287c478bd9Sstevel@tonic-gate 
297c478bd9Sstevel@tonic-gate 	struct irs_gr *		gr;
307c478bd9Sstevel@tonic-gate 	struct irs_pw *		pw;
317c478bd9Sstevel@tonic-gate 	struct irs_sv *		sv;
327c478bd9Sstevel@tonic-gate 	struct irs_pr *		pr;
337c478bd9Sstevel@tonic-gate 	struct irs_ho *		ho;
347c478bd9Sstevel@tonic-gate 	struct irs_nw *		nw;
357c478bd9Sstevel@tonic-gate 	struct irs_ng *		ng;
367c478bd9Sstevel@tonic-gate 
377c478bd9Sstevel@tonic-gate 	struct group *		gr_last;
387c478bd9Sstevel@tonic-gate 	struct passwd *		pw_last;
397c478bd9Sstevel@tonic-gate 	struct servent *	sv_last;
407c478bd9Sstevel@tonic-gate 	struct protoent *	pr_last;
41*9525b14bSRao Shoaib 	struct netent *		nw_last; /*%< should have been ne_last */
427c478bd9Sstevel@tonic-gate 	struct nwent *		nww_last;
437c478bd9Sstevel@tonic-gate 	struct hostent *	ho_last;
447c478bd9Sstevel@tonic-gate 
457c478bd9Sstevel@tonic-gate 	unsigned int		gr_stayopen :1;
467c478bd9Sstevel@tonic-gate 	unsigned int		pw_stayopen :1;
477c478bd9Sstevel@tonic-gate 	unsigned int		sv_stayopen :1;
487c478bd9Sstevel@tonic-gate 	unsigned int		pr_stayopen :1;
497c478bd9Sstevel@tonic-gate 	unsigned int		ho_stayopen :1;
507c478bd9Sstevel@tonic-gate 	unsigned int		nw_stayopen :1;
517c478bd9Sstevel@tonic-gate 
527c478bd9Sstevel@tonic-gate 	void *			nw_data;
537c478bd9Sstevel@tonic-gate 	void *			ho_data;
547c478bd9Sstevel@tonic-gate 
55*9525b14bSRao Shoaib 	struct __res_state *	res;	/*%< for gethostent.c */
567c478bd9Sstevel@tonic-gate };
577c478bd9Sstevel@tonic-gate 
587c478bd9Sstevel@tonic-gate extern struct net_data *	net_data_init(const char *conf_file);
597c478bd9Sstevel@tonic-gate extern void			net_data_minimize(struct net_data *);
607c478bd9Sstevel@tonic-gate 
617c478bd9Sstevel@tonic-gate #endif /*__BIND_NOSTATIC*/
62*9525b14bSRao Shoaib 
63*9525b14bSRao Shoaib /*! \file */
64