xref: /titanic_41/usr/src/lib/libresolv2/common/irs/irs_p.h (revision 9525b14bcdeb5b5f6f95ab27c2f48f18bd2ec829)
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_p.h,v 1.3 2005/04/27 04:56:30 sra Exp $
207c478bd9Sstevel@tonic-gate  */
217c478bd9Sstevel@tonic-gate 
227c478bd9Sstevel@tonic-gate #ifndef _IRS_P_H_INCLUDED
237c478bd9Sstevel@tonic-gate #define _IRS_P_H_INCLUDED
247c478bd9Sstevel@tonic-gate 
257c478bd9Sstevel@tonic-gate #include <stdio.h>
267c478bd9Sstevel@tonic-gate 
277c478bd9Sstevel@tonic-gate #include "pathnames.h"
287c478bd9Sstevel@tonic-gate 
297c478bd9Sstevel@tonic-gate #define IRS_SV_MAXALIASES	35
307c478bd9Sstevel@tonic-gate 
317c478bd9Sstevel@tonic-gate struct lcl_sv {
327c478bd9Sstevel@tonic-gate 	FILE *		fp;
337c478bd9Sstevel@tonic-gate 	char		line[BUFSIZ+1];
347c478bd9Sstevel@tonic-gate 	struct servent	serv;
357c478bd9Sstevel@tonic-gate 	char *		serv_aliases[IRS_SV_MAXALIASES];
367c478bd9Sstevel@tonic-gate };
377c478bd9Sstevel@tonic-gate 
387c478bd9Sstevel@tonic-gate #define	irs_nul_ng	__irs_nul_ng
397c478bd9Sstevel@tonic-gate #define	map_v4v6_address __map_v4v6_address
407c478bd9Sstevel@tonic-gate #define	make_group_list	__make_group_list
417c478bd9Sstevel@tonic-gate #define	irs_lclsv_fnxt	__irs_lclsv_fnxt
427c478bd9Sstevel@tonic-gate 
437c478bd9Sstevel@tonic-gate extern void		map_v4v6_address(const char *src, char *dst);
447c478bd9Sstevel@tonic-gate extern int		make_group_list(struct irs_gr *, const char *,
457c478bd9Sstevel@tonic-gate 					gid_t, gid_t *, int *);
467c478bd9Sstevel@tonic-gate extern struct irs_ng *	irs_nul_ng(struct irs_acc *);
477c478bd9Sstevel@tonic-gate extern struct servent * irs_lclsv_fnxt(struct lcl_sv *);
487c478bd9Sstevel@tonic-gate 
497c478bd9Sstevel@tonic-gate #endif
50*9525b14bSRao Shoaib 
51*9525b14bSRao Shoaib /*! \file */
52