xref: /netbsd-src/external/bsd/libbind/dist/irs/irs_p.h (revision 5bbd2a12505d72a8177929a37b5cee489d0a1cfd)
1 /*	$NetBSD: irs_p.h,v 1.1.1.2 2012/09/09 16:07:51 christos Exp $	*/
2 
3 /*
4  * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
5  * Copyright (c) 1996,1999 by Internet Software Consortium.
6  *
7  * Permission to use, copy, modify, and distribute this software for any
8  * purpose with or without fee is hereby granted, provided that the above
9  * copyright notice and this permission notice appear in all copies.
10  *
11  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
12  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13  * MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR
14  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
17  * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 /*
21  * Id: irs_p.h,v 1.3 2005/04/27 04:56:30 sra Exp
22  */
23 
24 #ifndef _IRS_P_H_INCLUDED
25 #define _IRS_P_H_INCLUDED
26 
27 #include <stdio.h>
28 
29 #include "pathnames.h"
30 
31 #define IRS_SV_MAXALIASES	35
32 
33 struct lcl_sv {
34 	FILE *		fp;
35 	char		line[BUFSIZ+1];
36 	struct servent	serv;
37 	char *		serv_aliases[IRS_SV_MAXALIASES];
38 };
39 
40 #define	irs_nul_ng	__irs_nul_ng
41 #define	map_v4v6_address __map_v4v6_address
42 #define	make_group_list	__make_group_list
43 #define	irs_lclsv_fnxt	__irs_lclsv_fnxt
44 
45 extern void		map_v4v6_address(const char *src, char *dst);
46 extern int		make_group_list(struct irs_gr *, const char *,
47 					gid_t, gid_t *, int *);
48 extern struct irs_ng *	irs_nul_ng(struct irs_acc *);
49 extern struct servent * irs_lclsv_fnxt(struct lcl_sv *);
50 
51 #endif
52 
53 /*! \file */
54