powerpc: Installed-header hygiene
[glibc.git] / include / resolv.h
blob699cc815694c69d838f14b93285822958f2c8269
1 #ifndef _RESOLV_H_
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
14 #include <resolv/resolv.h>
16 # if defined _RESOLV_H_ && !defined _ISOMAC
18 # if IS_IN (libc)
19 # define __resp __libc_resp
20 # endif
21 extern __thread struct __res_state *__resp attribute_tls_model_ie;
22 # undef _res
23 # define _res (*__resp)
25 /* Now define the internal interfaces. */
26 extern int __res_vinit (res_state, int);
27 extern int __res_maybe_init (res_state, int);
28 extern void _sethtent (int);
29 extern void _endhtent (void);
30 extern struct hostent *_gethtent (void);
31 extern struct hostent *_gethtbyname (const char *__name);
32 extern struct hostent *_gethtbyname2 (const char *__name, int __af);
33 struct hostent *_gethtbyaddr (const char *addr, size_t __len, int __af);
34 extern uint32_t _getlong (const unsigned char *__src);
35 extern uint16_t _getshort (const unsigned char *__src);
36 extern void res_pquery (const res_state __statp, const unsigned char *__msg,
37 int __len, FILE *__file);
38 extern int res_ourserver_p (const res_state __statp,
39 const struct sockaddr_in6 *__inp);
40 extern void __res_iclose (res_state statp, bool free_addr);
41 extern int __res_nopt(res_state statp, int n0, unsigned char *buf, int buflen,
42 int anslen);
43 libc_hidden_proto (__res_ninit)
44 libc_hidden_proto (__res_maybe_init)
45 libc_hidden_proto (__res_nclose)
46 libc_hidden_proto (__res_iclose)
47 libc_hidden_proto (__res_randomid)
48 libc_hidden_proto (__res_state)
50 int __libc_res_nquery (res_state, const char *, int, int,
51 unsigned char *, int, unsigned char **,
52 unsigned char **, int *, int *, int *);
53 int __libc_res_nsearch (res_state, const char *, int, int,
54 unsigned char *, int, unsigned char **,
55 unsigned char **, int *, int *, int *);
56 int __libc_res_nsend (res_state, const unsigned char *, int,
57 const unsigned char *, int, unsigned char *,
58 int, unsigned char **, unsigned char **,
59 int *, int *, int *)
60 attribute_hidden;
62 libresolv_hidden_proto (_sethtent)
63 libresolv_hidden_proto (_gethtent)
64 libresolv_hidden_proto (_gethtbyaddr)
65 libresolv_hidden_proto (_gethtbyname2)
66 libresolv_hidden_proto (__dn_expand)
67 libresolv_hidden_proto (__dn_comp)
68 libresolv_hidden_proto (__dn_skipname)
69 libresolv_hidden_proto (__res_hnok)
70 libresolv_hidden_proto (__res_dnok)
71 libresolv_hidden_proto (__putlong)
72 libresolv_hidden_proto (__putshort)
73 libresolv_hidden_proto (__p_cdnname)
74 libresolv_hidden_proto (__p_fqnname)
75 libresolv_hidden_proto (__p_option)
76 libresolv_hidden_proto (__sym_ntos)
77 libresolv_hidden_proto (__p_rcode)
78 libresolv_hidden_proto (__p_class)
79 libresolv_hidden_proto (__p_type)
80 libresolv_hidden_proto (__loc_ntoa)
81 libresolv_hidden_proto (__fp_nquery)
82 libresolv_hidden_proto (__fp_query)
83 libresolv_hidden_proto (__hostalias)
84 libresolv_hidden_proto (__res_nmkquery)
85 libresolv_hidden_proto (__libc_res_nquery)
86 libresolv_hidden_proto (__res_nquery)
87 libresolv_hidden_proto (__res_nquerydomain)
88 libresolv_hidden_proto (__res_hostalias)
89 libresolv_hidden_proto (__libc_res_nsearch)
90 libresolv_hidden_proto (__res_nsearch)
91 libresolv_hidden_proto (__res_nameinquery)
92 libresolv_hidden_proto (__res_queriesmatch)
93 libresolv_hidden_proto (__res_nsend)
94 libresolv_hidden_proto (__b64_ntop)
95 libresolv_hidden_proto (__res_nopt)
96 libresolv_hidden_proto (__dn_count_labels)
97 libresolv_hidden_proto (__p_secstodate)
99 extern const char *_res_opcodes[];
100 libresolv_hidden_proto (_res_opcodes)
102 # endif /* _RESOLV_H_ && !_ISOMAC */
103 #endif