2 24fb1a39 2025-06-02 kirill * Copyright (c) 2018 Eric Faurot <eric@openbsd.org>
4 24fb1a39 2025-06-02 kirill * Permission to use, copy, modify, and distribute this software for any
5 24fb1a39 2025-06-02 kirill * purpose with or without fee is hereby granted, provided that the above
6 24fb1a39 2025-06-02 kirill * copyright notice and this permission notice appear in all copies.
8 24fb1a39 2025-06-02 kirill * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 24fb1a39 2025-06-02 kirill * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 24fb1a39 2025-06-02 kirill * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 24fb1a39 2025-06-02 kirill * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 24fb1a39 2025-06-02 kirill * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 24fb1a39 2025-06-02 kirill * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 24fb1a39 2025-06-02 kirill * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 24fb1a39 2025-06-02 kirill /* source compat */
19 24fb1a39 2025-06-02 kirill #define ASR_BUFSIZ 1024
21 24fb1a39 2025-06-02 kirill #define DEF_WEAK(x)
22 24fb1a39 2025-06-02 kirill #define __THREAD_NAME(x) __thread_name_ ## x
24 24fb1a39 2025-06-02 kirill #ifndef __BEGIN_HIDDEN_DECLS
25 24fb1a39 2025-06-02 kirill #define __BEGIN_HIDDEN_DECLS
27 24fb1a39 2025-06-02 kirill #ifndef __END_HIDDEN_DECLS
28 24fb1a39 2025-06-02 kirill #define __END_HIDDEN_DECLS
32 24fb1a39 2025-06-02 kirill * sys/socket.h
34 24fb1a39 2025-06-02 kirill #ifndef SOCK_DNS
35 24fb1a39 2025-06-02 kirill #define SOCK_DNS 0
41 24fb1a39 2025-06-02 kirill #ifndef NETDB_SUCCESS
42 24fb1a39 2025-06-02 kirill #define NETDB_SUCCESS 0
45 24fb1a39 2025-06-02 kirill #ifndef NETDB_INTERNAL
46 24fb1a39 2025-06-02 kirill #define NETDB_INTERNAL -1
49 24fb1a39 2025-06-02 kirill #ifndef AI_FQDN
50 24fb1a39 2025-06-02 kirill #define AI_FQDN AI_CANONNAME
53 24fb1a39 2025-06-02 kirill #ifndef AI_MASK
54 24fb1a39 2025-06-02 kirill #define AI_MASK \
55 24fb1a39 2025-06-02 kirill (AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST | AI_NUMERICSERV | AI_ADDRCONFIG | AI_FQDN)
58 24fb1a39 2025-06-02 kirill #ifndef SCOPE_DELIMITER
59 24fb1a39 2025-06-02 kirill #define SCOPE_DELIMITER '%'
62 24fb1a39 2025-06-02 kirill #ifndef _PATH_HOSTS
63 24fb1a39 2025-06-02 kirill #define _PATH_HOSTS "/etc/hosts"
66 24fb1a39 2025-06-02 kirill #ifndef _PATH_NETWORKS
67 24fb1a39 2025-06-02 kirill #define _PATH_NETWORKS "/etc/networks"
70 24fb1a39 2025-06-02 kirill #ifndef EAI_BADHINTS
71 24fb1a39 2025-06-02 kirill #define EAI_BADHINTS EAI_FAIL
75 24fb1a39 2025-06-02 kirill * arpa/nameserv.h
77 24fb1a39 2025-06-02 kirill #ifndef T_OPT
78 24fb1a39 2025-06-02 kirill #define T_OPT 41
81 24fb1a39 2025-06-02 kirill #ifndef DNS_MESSAGEEXTFLAG_DO
82 24fb1a39 2025-06-02 kirill #define DNS_MESSAGEEXTFLAG_DO 0x8000U
85 24fb1a39 2025-06-02 kirill #ifndef HAVE___P_CLASS
86 24fb1a39 2025-06-02 kirill const char * __p_class(int);
89 24fb1a39 2025-06-02 kirill #ifndef HAVE___P_TYPE
90 24fb1a39 2025-06-02 kirill const char * __p_type(int);
94 24fb1a39 2025-06-02 kirill * netinet6/in6.h
96 24fb1a39 2025-06-02 kirill #ifndef IN6_IS_ADDR_MC_INTFACELOCAL
97 24fb1a39 2025-06-02 kirill #define IN6_IS_ADDR_MC_INTFACELOCAL(x) IN6_IS_ADDR_MC_NODELOCAL(x)