* sysdeps/m68k/fpu/e_log2f.c: Fix typo.
[glibc.git] / resolv / res_hconf.h
blob80c0828d4ea1e4a144d2114d796371ca26434b17
1 /* Copyright (C) 1993, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
2 Contributed by David Mosberger (davidm@azstarnet.com).
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 License, or (at your option) any later version.
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public
15 License along with the GNU C Library; see the file COPYING.LIB. If not,
16 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 Boston, MA 02111-1307, USA. */
19 #ifndef _RES_HCONF_H_
20 #define _RES_HCONF_H_
22 #include <netdb.h>
24 #define TRIMDOMAINS_MAX 4
26 enum Name_Service
28 SERVICE_NONE = 0,
29 SERVICE_BIND, SERVICE_HOSTS, SERVICE_NIS,
30 SERVICE_MAX
33 struct hconf
35 int initialized;
36 int num_services;
37 enum Name_Service service[SERVICE_MAX];
38 int num_trimdomains;
39 const char *trimdomain[TRIMDOMAINS_MAX];
40 unsigned int flags;
41 # define HCONF_FLAG_INITED (1 << 0) /* initialized? */
42 # define HCONF_FLAG_SPOOF (1 << 1) /* refuse spoofed addresses */
43 # define HCONF_FLAG_SPOOFALERT (1 << 2) /* syslog warning of spoofed */
44 # define HCONF_FLAG_REORDER (1 << 3) /* list best address first */
45 # define HCONF_FLAG_MULTI (1 << 4) /* see comments for gethtbyname() */
47 extern struct hconf _res_hconf;
49 extern void _res_hconf_init (void);
50 extern void _res_hconf_trim_domain (char *domain);
51 extern void _res_hconf_trim_domains (struct hostent *hp);
52 extern void _res_hconf_reorder_addrs (struct hostent *hp);
54 #endif /* _RES_HCONF_H_ */