3 #define RES_SET_H_ERRNO(r,x) \
6 (r)->res_h_errno = x; \
11 #include <resolv/resolv.h>
13 /* Now define the internal interfaces. */
14 extern int __res_vinit (res_state
, int);
15 extern void _sethtent (int);
16 extern void _endhtent (void);
17 extern struct hostent
*_gethtent (void);
18 extern struct hostent
*_gethtbyname (const char *__name
);
19 extern struct hostent
*_gethtbyname2 (const char *__name
, int __af
);
20 struct hostent
*_gethtbyaddr (const char *addr
, size_t __len
, int __af
);
21 extern u_int32_t
_getlong (const u_char
*__src
);
22 extern u_int16_t
_getshort (const u_char
*__src
);
23 extern void res_pquery (const res_state __statp
, const u_char
*__msg
,
24 int __len
, FILE *__file
);
25 extern void res_send_setqhook (res_send_qhook __hook
);
26 extern void res_send_setrhook (res_send_rhook __hook
);
27 extern int res_ourserver_p (const res_state __statp
,
28 const struct sockaddr_in6
*__inp
);