3 #define RES_SET_H_ERRNO(r,x) \
6 (r)->res_h_errno = x; \
11 #include <resolv/resolv.h>
15 # ifdef _LIBC_REENTRANT
20 # define __resp __libc_resp
22 # define _res (*__resp)
23 extern __thread
struct __res_state
*__resp attribute_tls_model_ie
;
26 # ifndef __BIND_NOSTATIC
28 extern struct __res_state _res
;
32 /* Now define the internal interfaces. */
33 extern int __res_vinit (res_state
, int);
34 extern int __res_maybe_init (res_state
, int);
35 extern void _sethtent (int);
36 extern void _endhtent (void);
37 extern struct hostent
*_gethtent (void);
38 extern struct hostent
*_gethtbyname (const char *__name
);
39 extern struct hostent
*_gethtbyname2 (const char *__name
, int __af
);
40 struct hostent
*_gethtbyaddr (const char *addr
, size_t __len
, int __af
);
41 extern u_int32_t
_getlong (const u_char
*__src
);
42 extern u_int16_t
_getshort (const u_char
*__src
);
43 extern void res_pquery (const res_state __statp
, const u_char
*__msg
,
44 int __len
, FILE *__file
);
45 extern void res_send_setqhook (res_send_qhook __hook
);
46 extern void res_send_setrhook (res_send_rhook __hook
);
47 extern int res_ourserver_p (const res_state __statp
,
48 const struct sockaddr_in6
*__inp
);
49 extern void __res_iclose(res_state statp
, bool free_addr
);
50 libc_hidden_proto (__res_ninit
)
51 libc_hidden_proto (__res_maybe_init
)
52 libc_hidden_proto (__res_nclose
)
53 libc_hidden_proto (__res_iclose
)
54 libc_hidden_proto (__res_randomid
)
55 libc_hidden_proto (__res_state
)
57 int __libc_res_nquery (res_state
, const char *, int, int, u_char
*, int,
59 int __libc_res_nsearch (res_state
, const char *, int, int, u_char
*, int,
61 int __libc_res_nsend (res_state
, const u_char
*, int, u_char
*, int,
65 libresolv_hidden_proto (_sethtent
)
66 libresolv_hidden_proto (_gethtent
)
67 libresolv_hidden_proto (_gethtbyaddr
)
68 libresolv_hidden_proto (_gethtbyname2
)
69 libresolv_hidden_proto (__dn_expand
)
70 libresolv_hidden_proto (__dn_comp
)
71 libresolv_hidden_proto (__dn_skipname
)
72 libresolv_hidden_proto (__res_hnok
)
73 libresolv_hidden_proto (__res_dnok
)
74 libresolv_hidden_proto (__putlong
)
75 libresolv_hidden_proto (__putshort
)
76 libresolv_hidden_proto (__p_cdnname
)
77 libresolv_hidden_proto (__p_fqnname
)
78 libresolv_hidden_proto (__p_option
)
79 libresolv_hidden_proto (__sym_ntos
)
80 libresolv_hidden_proto (__p_rcode
)
81 libresolv_hidden_proto (__p_class
)
82 libresolv_hidden_proto (__p_type
)
83 libresolv_hidden_proto (__loc_ntoa
)
84 libresolv_hidden_proto (__fp_nquery
)
85 libresolv_hidden_proto (__fp_query
)
86 libresolv_hidden_proto (__hostalias
)
87 libresolv_hidden_proto (__res_nmkquery
)
88 libresolv_hidden_proto (__libc_res_nquery
)
89 libresolv_hidden_proto (__res_nquery
)
90 libresolv_hidden_proto (__res_nquerydomain
)
91 libresolv_hidden_proto (__res_hostalias
)
92 libresolv_hidden_proto (__libc_res_nsearch
)
93 libresolv_hidden_proto (__res_nsearch
)
94 libresolv_hidden_proto (__res_nameinquery
)
95 libresolv_hidden_proto (__res_queriesmatch
)
96 libresolv_hidden_proto (__res_nsend
)
97 libresolv_hidden_proto (__b64_ntop
)
98 libresolv_hidden_proto (__ns_name_ntop
)
99 libresolv_hidden_proto (__ns_name_unpack
)
100 libresolv_hidden_proto (__ns_get16
)
101 libresolv_hidden_proto (__ns_get32
)
103 extern const char *_res_opcodes
[];
104 libresolv_hidden_proto (_res_opcodes
)