summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/arpa/nameser.h4
-rw-r--r--include/resolv.h3
-rw-r--r--libc/inet/resolv.c7
3 files changed, 14 insertions, 0 deletions
diff --git a/include/arpa/nameser.h b/include/arpa/nameser.h
index dfab5b4bb..17c68f595 100644
--- a/include/arpa/nameser.h
+++ b/include/arpa/nameser.h
@@ -499,6 +499,7 @@ void ns_put32 (u_long, u_char *) __THROW;
int ns_initparse (const u_char *, int, ns_msg *) __THROW;
int ns_skiprr (const u_char *, const u_char *, ns_sect, int)
__THROW;
+libc_hidden_proto(ns_skiprr)
int ns_parserr (ns_msg *, ns_sect, int, ns_rr *) __THROW;
int ns_sprintrr (const ns_msg *, const ns_rr *,
const char *, const char *, char *, size_t)
@@ -520,12 +521,15 @@ int ns_name_unpack (const u_char *, const u_char *,
libc_hidden_proto(ns_name_unpack)
int ns_name_pack (const u_char *, u_char *, int,
const u_char **, const u_char **) __THROW;
+libc_hidden_proto(ns_name_pack)
int ns_name_uncompress (const u_char *, const u_char *,
const u_char *, char *, size_t) __THROW;
libc_hidden_proto(ns_name_uncompress)
int ns_name_compress (const char *, u_char *, size_t,
const u_char **, const u_char **) __THROW;
+libc_hidden_proto(ns_name_compress)
int ns_name_skip (const u_char **, const u_char *) __THROW;
+libc_hidden_proto(ns_name_skip)
void ns_name_rollback (const u_char *, const u_char **,
const u_char **) __THROW;
int ns_sign (u_char *, int *, int, int, void *,
diff --git a/include/resolv.h b/include/resolv.h
index 55e9dee91..9349be11f 100644
--- a/include/resolv.h
+++ b/include/resolv.h
@@ -405,10 +405,13 @@ char * p_secstodate (u_long) __THROW;
int dn_count_labels (const char *) __THROW;
#endif
int dn_skipname (const u_char *, const u_char *) __THROW;
+libc_hidden_proto(dn_skipname)
int dn_comp (const char *, u_char *, int, u_char **, u_char **)
__THROW;
+libc_hidden_proto(dn_comp)
int dn_expand (const u_char *, const u_char *, const u_char *,
char *, int) __THROW;
+libc_hidden_proto(dn_expand)
int res_ninit (res_state) __THROW;
void res_nclose (res_state) __THROW;
#if 0
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c
index e415d30a5..1155850bf 100644
--- a/libc/inet/resolv.c
+++ b/libc/inet/resolv.c
@@ -2663,6 +2663,7 @@ int dn_expand(const u_char *msg, const u_char *eom, const u_char *src,
dst[0] = '\0';
return n;
}
+libc_hidden_def(dn_expand)
/*
* Pack domain name 'exp_dn' in presentation form into 'comp_dn'.
@@ -2677,6 +2678,7 @@ dn_comp(const char *src, u_char *dst, int dstsiz,
(const u_char **) dnptrs,
(const u_char **) lastdnptr);
}
+libc_hidden_def(dn_comp)
#endif /* L_res_comp */
@@ -3323,6 +3325,7 @@ cleanup:
return dstp - dst;
}
+libc_hidden_def(ns_name_pack)
int ns_name_compress(const char *src,
unsigned char *dst, size_t dstsiz,
@@ -3336,6 +3339,7 @@ int ns_name_compress(const char *src,
return ns_name_pack(tmp, dst, dstsiz, dnptrs, lastdnptr);
}
+libc_hidden_def(ns_name_compress)
int ns_name_skip(const unsigned char **ptrptr,
const unsigned char *eom)
@@ -3379,6 +3383,7 @@ int ns_name_skip(const unsigned char **ptrptr,
return 0;
}
+libc_hidden_def(ns_name_skip)
int dn_skipname(const unsigned char *ptr, const unsigned char *eom)
{
@@ -3389,6 +3394,7 @@ int dn_skipname(const unsigned char *ptr, const unsigned char *eom)
return ptr - saveptr;
}
+libc_hidden_def(dn_skipname)
#endif /* L_ns_name */
@@ -4059,6 +4065,7 @@ int ns_skiprr(const unsigned char *ptr,
return ptr - optr;
}
+libc_hidden_def(ns_skiprr)
int
ns_initparse(const unsigned char *msg, int msglen, ns_msg *handle)