5 # define RES_SET_H_ERRNO(r,x) \
8 (r)->res_h_errno = x; \
14 #include <resolv/resolv.h>
16 # if defined _RESOLV_H_ && !defined _ISOMAC
19 # define __resp __libc_resp
21 extern __thread
struct __res_state
*__resp attribute_tls_model_ie
;
23 # define _res (*__resp)
25 /* Now define the internal interfaces. */
26 extern int __res_vinit (res_state
, int) attribute_hidden
;
27 extern void _sethtent (int);
28 extern struct hostent
*_gethtent (void);
29 extern struct hostent
*_gethtbyname (const char *__name
);
30 extern struct hostent
*_gethtbyname2 (const char *__name
, int __af
);
31 struct hostent
*_gethtbyaddr (const char *addr
, size_t __len
, int __af
);
32 extern uint32_t _getlong (const unsigned char *__src
);
33 extern uint16_t _getshort (const unsigned char *__src
);
34 extern void __res_iclose (res_state statp
, bool free_addr
);
35 libc_hidden_proto (__res_ninit
)
36 libc_hidden_proto (__res_nclose
)
37 libc_hidden_proto (__res_iclose
)
38 libc_hidden_proto (__res_randomid
)
39 libc_hidden_proto (__res_state
)
41 libresolv_hidden_proto (_sethtent
)
42 libresolv_hidden_proto (_gethtent
)
43 libresolv_hidden_proto (_gethtbyaddr
)
44 libresolv_hidden_proto (_gethtbyname2
)
45 libresolv_hidden_proto (__putlong
)
46 libresolv_hidden_proto (__putshort
)
47 libresolv_hidden_proto (__p_cdnname
)
48 libresolv_hidden_proto (__p_fqnname
)
49 libresolv_hidden_proto (__p_option
)
50 libresolv_hidden_proto (__sym_ntos
)
51 libresolv_hidden_proto (__p_rcode
)
52 libresolv_hidden_proto (__p_class
)
53 libresolv_hidden_proto (__p_type
)
54 libresolv_hidden_proto (__loc_ntoa
)
55 libresolv_hidden_proto (__fp_nquery
)
56 libresolv_hidden_proto (__fp_query
)
57 libresolv_hidden_proto (__b64_ntop
)
58 libresolv_hidden_proto (__dn_count_labels
)
60 extern __typeof (dn_expand
) __libc_dn_expand
;
61 libc_hidden_proto (__libc_dn_expand
)
62 extern __typeof (dn_skipname
) __libc_dn_skipname
;
63 libc_hidden_proto (__libc_dn_skipname
)
64 extern __typeof (res_dnok
) __libc_res_dnok
;
65 libc_hidden_proto (__libc_res_dnok
)
66 extern __typeof (res_hnok
) __libc_res_hnok
;
67 libc_hidden_proto (__libc_res_hnok
)
68 extern __typeof (__res_nameinquery
) __libc_res_nameinquery
;
69 libc_hidden_proto (__libc_res_nameinquery
)
70 extern __typeof (__res_queriesmatch
) __libc_res_queriesmatch
;
71 libc_hidden_proto (__libc_res_queriesmatch
)
73 /* Variant of res_hnok which operates on binary (but uncompressed) names. */
74 bool __res_binary_hnok (const unsigned char *dn
) attribute_hidden
;
76 # endif /* _RESOLV_H_ && !_ISOMAC */