[!__ASSEMBLER__] (declare_symbol_1): Add missing comma to .type directive.
[glibc.git] / include / resolv.h
blobb9ed35e977cba8cc6b4221434a9667ab61ce979f
1 #ifndef _RESOLV_H_
3 #define RES_SET_H_ERRNO(r,x) \
4 do \
5 { \
6 (r)->res_h_errno = x; \
7 __set_h_errno(x); \
8 } \
9 while (0)
11 #include <resolv/resolv.h>
13 #ifdef _RESOLV_H_
15 # ifdef _LIBC_REENTRANT
16 # include <tls.h>
17 # if USE_TLS && HAVE___THREAD
18 # undef _res
19 extern __thread struct __res_state _res;
20 # endif
21 # else
22 # ifndef __BIND_NOSTATIC
23 # undef _res
24 extern struct __res_state _res;
25 # endif
26 # endif
28 /* Now define the internal interfaces. */
29 extern int __res_vinit (res_state, int);
30 extern void _sethtent (int);
31 extern void _endhtent (void);
32 extern struct hostent *_gethtent (void);
33 extern struct hostent *_gethtbyname (const char *__name);
34 extern struct hostent *_gethtbyname2 (const char *__name, int __af);
35 struct hostent *_gethtbyaddr (const char *addr, size_t __len, int __af);
36 extern u_int32_t _getlong (const u_char *__src);
37 extern u_int16_t _getshort (const u_char *__src);
38 extern void res_pquery (const res_state __statp, const u_char *__msg,
39 int __len, FILE *__file);
40 extern void res_send_setqhook (res_send_qhook __hook);
41 extern void res_send_setrhook (res_send_rhook __hook);
42 extern int res_ourserver_p (const res_state __statp,
43 const struct sockaddr_in6 *__inp);
44 libc_hidden_proto (__res_ninit)
45 libc_hidden_proto (__res_randomid)
46 #endif
48 #endif