]> git.ipfire.org Git - thirdparty/glibc.git/blame - include/resolv.h
resolv: Move dn_expand to its own file and into libc
[thirdparty/glibc.git] / include / resolv.h
CommitLineData
e685e07d
UD
1#ifndef _RESOLV_H_
2
47755784
ZW
3# ifndef _ISOMAC
4# include <stdbool.h>
5# define RES_SET_H_ERRNO(r,x) \
e685e07d
UD
6 do \
7 { \
8 (r)->res_h_errno = x; \
9 __set_h_errno(x); \
10 } \
11 while (0)
47755784 12# endif
e685e07d 13
5f0e6fc7 14#include <resolv/resolv.h>
784d802e 15
47755784 16# if defined _RESOLV_H_ && !defined _ISOMAC
c2afe833 17
4f41c682 18# if IS_IN (libc)
fb431262 19# define __resp __libc_resp
c2afe833 20# endif
fb431262
RM
21extern __thread struct __res_state *__resp attribute_tls_model_ie;
22# undef _res
23# define _res (*__resp)
c2afe833 24
784d802e 25/* Now define the internal interfaces. */
ca3d65ff 26extern int __res_vinit (res_state, int) attribute_hidden;
784d802e 27extern void _sethtent (int);
784d802e
AJ
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);
11160cb7
ZW
32extern uint32_t _getlong (const unsigned char *__src);
33extern uint16_t _getshort (const unsigned char *__src);
784d802e
AJ
34extern int res_ourserver_p (const res_state __statp,
35 const struct sockaddr_in6 *__inp);
52d979bb 36extern void __res_iclose (res_state statp, bool free_addr);
37ba7d66 37libc_hidden_proto (__res_ninit)
2a3d906e 38libc_hidden_proto (__res_nclose)
cb07f6f6 39libc_hidden_proto (__res_iclose)
37ba7d66 40libc_hidden_proto (__res_randomid)
a4baf360 41libc_hidden_proto (__res_state)
0420d888 42
6f9d8e68
UD
43libresolv_hidden_proto (_sethtent)
44libresolv_hidden_proto (_gethtent)
45libresolv_hidden_proto (_gethtbyaddr)
46libresolv_hidden_proto (_gethtbyname2)
6f9d8e68
UD
47libresolv_hidden_proto (__dn_comp)
48libresolv_hidden_proto (__dn_skipname)
49libresolv_hidden_proto (__res_hnok)
50libresolv_hidden_proto (__res_dnok)
51libresolv_hidden_proto (__putlong)
52libresolv_hidden_proto (__putshort)
53libresolv_hidden_proto (__p_cdnname)
54libresolv_hidden_proto (__p_fqnname)
55libresolv_hidden_proto (__p_option)
56libresolv_hidden_proto (__sym_ntos)
57libresolv_hidden_proto (__p_rcode)
58libresolv_hidden_proto (__p_class)
59libresolv_hidden_proto (__p_type)
60libresolv_hidden_proto (__loc_ntoa)
61libresolv_hidden_proto (__fp_nquery)
62libresolv_hidden_proto (__fp_query)
6f9d8e68
UD
63libresolv_hidden_proto (__res_nameinquery)
64libresolv_hidden_proto (__res_queriesmatch)
6f9d8e68 65libresolv_hidden_proto (__b64_ntop)
cd5743fd 66libresolv_hidden_proto (__dn_count_labels)
6f9d8e68 67
640bbdf7
FW
68extern __typeof (dn_expand) __libc_dn_expand;
69libc_hidden_proto (__libc_dn_expand)
70
47755784 71# endif /* _RESOLV_H_ && !_ISOMAC */
e685e07d 72#endif