]> sourceware.org Git - glibc.git/blame - resolv/res_hconf.h
math: Update alpha ulps
[glibc.git] / resolv / res_hconf.h
CommitLineData
dff8da6b 1/* Copyright (C) 1993-2024 Free Software Foundation, Inc.
41bdb6e2 2 This file is part of the GNU C Library.
fa0bc87c 3
c84142e8 4 The GNU C Library is free software; you can redistribute it and/or
41bdb6e2
AJ
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
fa0bc87c 8
c84142e8
UD
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
41bdb6e2 12 Lesser General Public License for more details.
fa0bc87c 13
41bdb6e2 14 You should have received a copy of the GNU Lesser General Public
59ba27a6 15 License along with the GNU C Library; if not, see
5a82c748 16 <https://www.gnu.org/licenses/>. */
fa0bc87c
RM
17
18#ifndef _RES_HCONF_H_
19#define _RES_HCONF_H_
20
21#include <netdb.h>
22
23#define TRIMDOMAINS_MAX 4
24
5edb9387
UD
25struct hconf
26{
6f9d4f59
TR
27 /* We keep the INITIALIZED member only for backwards compatibility. New
28 code should just call _res_hconf_init unconditionally. For this field
29 to be used safely, users must ensure that either (1) a call to
30 _res_hconf_init happens-before any load from INITIALIZED, or (2) an
31 assignment of zero to INITIALIZED happens-before any load from it, and
32 these loads use acquire MO if the intent is to skip calling
33 _res_hconf_init if the load returns a nonzero value. Such acquire MO
34 loads will then synchronize with the release MO store to INITIALIZED
35 in do_init in res_hconf.c; see pthread_once for more detail. */
5edb9387 36 int initialized;
b9c65d09
UD
37 int unused1;
38 int unused2[4];
5edb9387
UD
39 int num_trimdomains;
40 const char *trimdomain[TRIMDOMAINS_MAX];
41 unsigned int flags;
fa0bc87c 42# define HCONF_FLAG_INITED (1 << 0) /* initialized? */
fa0bc87c
RM
43# define HCONF_FLAG_REORDER (1 << 3) /* list best address first */
44# define HCONF_FLAG_MULTI (1 << 4) /* see comments for gethtbyname() */
5edb9387
UD
45};
46extern struct hconf _res_hconf;
fa0bc87c 47
e6b4e2de 48extern void _res_hconf_init (void) attribute_hidden;
5edb9387
UD
49extern void _res_hconf_trim_domain (char *domain);
50extern void _res_hconf_trim_domains (struct hostent *hp);
51extern void _res_hconf_reorder_addrs (struct hostent *hp);
fa0bc87c
RM
52
53#endif /* _RES_HCONF_H_ */
This page took 0.667537 seconds and 6 git commands to generate.