xref: /onnv-gate/usr/src/lib/libresolv2/common/irs/irs_data.h (revision 11038:74b12212b8a2)
10Sstevel@tonic-gate /*
2*11038SRao.Shoaib@Sun.COM  * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
30Sstevel@tonic-gate  * Copyright (c) 1996,1999 by Internet Software Consortium.
40Sstevel@tonic-gate  *
50Sstevel@tonic-gate  * Permission to use, copy, modify, and distribute this software for any
60Sstevel@tonic-gate  * purpose with or without fee is hereby granted, provided that the above
70Sstevel@tonic-gate  * copyright notice and this permission notice appear in all copies.
80Sstevel@tonic-gate  *
9*11038SRao.Shoaib@Sun.COM  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
10*11038SRao.Shoaib@Sun.COM  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11*11038SRao.Shoaib@Sun.COM  * MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR
12*11038SRao.Shoaib@Sun.COM  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13*11038SRao.Shoaib@Sun.COM  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14*11038SRao.Shoaib@Sun.COM  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
15*11038SRao.Shoaib@Sun.COM  * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
160Sstevel@tonic-gate  */
170Sstevel@tonic-gate 
180Sstevel@tonic-gate /*
19*11038SRao.Shoaib@Sun.COM  * $Id: irs_data.h,v 1.3 2005/04/27 04:56:30 sra Exp $
200Sstevel@tonic-gate  */
210Sstevel@tonic-gate 
220Sstevel@tonic-gate #ifndef __BIND_NOSTATIC
230Sstevel@tonic-gate 
240Sstevel@tonic-gate #define	net_data_init		__net_data_init
250Sstevel@tonic-gate 
260Sstevel@tonic-gate struct net_data {
270Sstevel@tonic-gate 	struct irs_acc *	irs;
280Sstevel@tonic-gate 
290Sstevel@tonic-gate 	struct irs_gr *		gr;
300Sstevel@tonic-gate 	struct irs_pw *		pw;
310Sstevel@tonic-gate 	struct irs_sv *		sv;
320Sstevel@tonic-gate 	struct irs_pr *		pr;
330Sstevel@tonic-gate 	struct irs_ho *		ho;
340Sstevel@tonic-gate 	struct irs_nw *		nw;
350Sstevel@tonic-gate 	struct irs_ng *		ng;
360Sstevel@tonic-gate 
370Sstevel@tonic-gate 	struct group *		gr_last;
380Sstevel@tonic-gate 	struct passwd *		pw_last;
390Sstevel@tonic-gate 	struct servent *	sv_last;
400Sstevel@tonic-gate 	struct protoent *	pr_last;
41*11038SRao.Shoaib@Sun.COM 	struct netent *		nw_last; /*%< should have been ne_last */
420Sstevel@tonic-gate 	struct nwent *		nww_last;
430Sstevel@tonic-gate 	struct hostent *	ho_last;
440Sstevel@tonic-gate 
450Sstevel@tonic-gate 	unsigned int		gr_stayopen :1;
460Sstevel@tonic-gate 	unsigned int		pw_stayopen :1;
470Sstevel@tonic-gate 	unsigned int		sv_stayopen :1;
480Sstevel@tonic-gate 	unsigned int		pr_stayopen :1;
490Sstevel@tonic-gate 	unsigned int		ho_stayopen :1;
500Sstevel@tonic-gate 	unsigned int		nw_stayopen :1;
510Sstevel@tonic-gate 
520Sstevel@tonic-gate 	void *			nw_data;
530Sstevel@tonic-gate 	void *			ho_data;
540Sstevel@tonic-gate 
55*11038SRao.Shoaib@Sun.COM 	struct __res_state *	res;	/*%< for gethostent.c */
560Sstevel@tonic-gate };
570Sstevel@tonic-gate 
580Sstevel@tonic-gate extern struct net_data *	net_data_init(const char *conf_file);
590Sstevel@tonic-gate extern void			net_data_minimize(struct net_data *);
600Sstevel@tonic-gate 
61*11038SRao.Shoaib@Sun.COM #endif /*__BIND_NOSTATIC*/
620Sstevel@tonic-gate 
63*11038SRao.Shoaib@Sun.COM /*! \file */
64