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

source code of glibc/include/resolv.h