xref: /titanic_41/usr/src/lib/libresolv2/common/irs/irs_p.h (revision bb294766735789e8f3edfcbac1edb83dfb9ee53b)
1 /*
2  * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
3  * Copyright (c) 1996,1999 by Internet Software Consortium.
4  *
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.
8  *
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.
16  */
17 
18 /*
19  * $Id: irs_p.h,v 1.3 2005/04/27 04:56:30 sra Exp $
20  */
21 
22 #ifndef _IRS_P_H_INCLUDED
23 #define _IRS_P_H_INCLUDED
24 
25 #include <stdio.h>
26 
27 #include "pathnames.h"
28 
29 #define IRS_SV_MAXALIASES	35
30 
31 struct lcl_sv {
32 	FILE *		fp;
33 	char		line[BUFSIZ+1];
34 	struct servent	serv;
35 	char *		serv_aliases[IRS_SV_MAXALIASES];
36 };
37 
38 #define	irs_nul_ng	__irs_nul_ng
39 #define	map_v4v6_address __map_v4v6_address
40 #define	make_group_list	__make_group_list
41 #define	irs_lclsv_fnxt	__irs_lclsv_fnxt
42 
43 extern void		map_v4v6_address(const char *src, char *dst);
44 extern int		make_group_list(struct irs_gr *, const char *,
45 					gid_t, gid_t *, int *);
46 extern struct irs_ng *	irs_nul_ng(struct irs_acc *);
47 extern struct servent * irs_lclsv_fnxt(struct lcl_sv *);
48 
49 #endif
50 
51 /*! \file */
52