|
@@ -1,3 +1,4 @@
|
|
|
+
|
|
|
|
|
|
*
|
|
|
* Copyright (C) 1998 Kenneth Albanowski <kjahds@kjahds.com>,
|
|
@@ -173,61 +174,6 @@
|
|
|
# define USE_SELECT
|
|
|
#endif
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-#ifdef __UCLIBC_HAS_XLOCALE__
|
|
|
-
|
|
|
-#elif defined __UCLIBC_HAS_CTYPE_TABLES__
|
|
|
-
|
|
|
-#endif
|
|
|
-
|
|
|
#if defined __UCLIBC_HAS_IPV4__ && defined __UCLIBC_HAS_IPV6__
|
|
|
#define IF_HAS_BOTH(...) __VA_ARGS__
|
|
|
#else
|
|
@@ -364,8 +310,6 @@ extern int __decode_answer(const unsigned char * message, int offset,
|
|
|
extern int __length_question(const unsigned char * const message, int offset) attribute_hidden;
|
|
|
extern void __open_nameservers(void) attribute_hidden;
|
|
|
extern void __close_nameservers(void) attribute_hidden;
|
|
|
-extern int __dn_expand(const u_char *, const u_char *, const u_char *,
|
|
|
- char *, int);
|
|
|
|
|
|
|
|
|
* Theory of operation.
|
|
@@ -2485,7 +2429,7 @@ libc_hidden_def(gethostbyaddr)
|
|
|
* 'exp_dn' is a pointer to a buffer of size 'length' for the result.
|
|
|
* Return size of compressed name or -1 if there was an error.
|
|
|
*/
|
|
|
-int __dn_expand(const u_char *msg, const u_char *eom, const u_char *src,
|
|
|
+int dn_expand(const u_char *msg, const u_char *eom, const u_char *src,
|
|
|
char *dst, int dstsiz)
|
|
|
{
|
|
|
int n = ns_name_uncompress(msg, eom, src, dst, (size_t)dstsiz);
|
|
@@ -2875,7 +2819,8 @@ int res_query(const char *dname, int class, int type,
|
|
|
i = __dns_lookup(dname, type, &packet, &a);
|
|
|
|
|
|
if (i < 0) {
|
|
|
- h_errno = TRY_AGAIN;
|
|
|
+ if (!h_errno)
|
|
|
+ h_errno = TRY_AGAIN;
|
|
|
return -1;
|
|
|
}
|
|
|
|
|
@@ -3107,10 +3052,9 @@ int res_querydomain(const char *name, const char *domain, int class, int type,
|
|
|
return res_query(longname, class, type, answer, anslen);
|
|
|
}
|
|
|
libc_hidden_def(res_querydomain)
|
|
|
+#endif
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-#endif
|
|
|
-
|
|
|
-
|