xref: /titanic_52/usr/src/lib/libresolv2/common/irs/irs_p.h (revision 6185db853e024a486ff8837e6784dd290d866112)
1 /*
2  * Copyright (c) 1997-2000 by Sun Microsystems, Inc.
3  * All rights reserved.
4  */
5 
6 /*
7  * Copyright (c) 1996,1999 by Internet Software Consortium.
8  *
9  * Permission to use, copy, modify, and distribute this software for any
10  * purpose with or without fee is hereby granted, provided that the above
11  * copyright notice and this permission notice appear in all copies.
12  *
13  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
14  * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
15  * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
16  * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
17  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
18  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
19  * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
20  * SOFTWARE.
21  */
22 
23 #pragma ident	"%Z%%M%	%I%	%E% SMI"
24 
25 /*
26  * $Id: irs_p.h,v 1.8 1999/01/08 19:24:42 vixie Exp $
27  */
28 
29 #ifndef _IRS_P_H_INCLUDED
30 #define _IRS_P_H_INCLUDED
31 
32 #include <stdio.h>
33 
34 #include "pathnames.h"
35 
36 #define IRS_SV_MAXALIASES	35
37 
38 struct lcl_sv {
39 	FILE *		fp;
40 	char		line[BUFSIZ+1];
41 	struct servent	serv;
42 	char *		serv_aliases[IRS_SV_MAXALIASES];
43 };
44 
45 #define	irs_nul_ng	__irs_nul_ng
46 #define	map_v4v6_address __map_v4v6_address
47 #define	make_group_list	__make_group_list
48 #define	irs_lclsv_fnxt	__irs_lclsv_fnxt
49 
50 extern void		map_v4v6_address(const char *src, char *dst);
51 extern int		make_group_list(struct irs_gr *, const char *,
52 					gid_t, gid_t *, int *);
53 extern struct irs_ng *	irs_nul_ng(struct irs_acc *);
54 extern struct servent * irs_lclsv_fnxt(struct lcl_sv *);
55 
56 #endif
57