resolv: hide relocations

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
This commit is contained in:
Bernhard Reutner-Fischer
2011-11-17 10:46:42 +01:00
parent eb51b7f135
commit dcf56488da
3 changed files with 14 additions and 0 deletions

View File

@@ -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 *,

View File

@@ -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

View File

@@ -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)