about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-10-17 21:51:21 +0000
committerUlrich Drepper <drepper@redhat.com>2002-10-17 21:51:21 +0000
commit0420d8885a4889dca3b874c934fd5f42f2e99e5f (patch)
treedd8aecefe9a5f21d26df11cbc7f9c1dc6f2f5fd9 /include
parentd025fe269abcab6903b3973d193a8678228301e8 (diff)
downloadglibc-0420d8885a4889dca3b874c934fd5f42f2e99e5f.tar.gz
glibc-0420d8885a4889dca3b874c934fd5f42f2e99e5f.tar.xz
glibc-0420d8885a4889dca3b874c934fd5f42f2e99e5f.zip
Update.
2002-10-15  Jakub Jelinek  <jakub@redhat.com>

	* include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
	__libc_res_nsend): New prototypes.
	* resolv/res_query.c (QUERYSIZE): Define.
	(__libc_res_nquery): Renamed from res_nquery.  Added answerp
	argument.  Allocate only QUERYSIZE bytes first, if res_nmkquery
	fails use MAXPACKET buffer.  Call __libc_res_nsend instead of
	res_nsend, pass answerp.
	(res_nquery): Changed into wrapper around __libc_res_nquery.
	(__libc_res_nsearch): Renamed from res_nsearch.  Added answerp
	argument.  Call __libc_res_nquerydomain and __libc_res_nquery
	instead of the non-__libc_ variants, pass them answerp.
	(res_nsearch): Changed into wrapper around __libc_res_nsearch.
	(__libc_res_nquerydomain): Renamed from res_nquerydomain.
	Added answerp argument.  Call __libc_res_nquery instead of
	res_nquery, pass answerp.
	(res_nquerydomain): Changed into wrapper around
	__libc_res_nquerydomain.
	* resolv/res_send.c: Include sys/ioctl.h.
	(MAXPACKET): Define.
	(send_vc): Change arguments.  Reallocate answer buffer if it is
	too small.
	(send_dg): Likewise.
	(__libc_res_nsend): Renamed from res_nsend.  Added ansp argument.
	Reallocate answer buffer if it is too small and hooks are in use.
	Adjust calls to send_vc and send_dg.
	(res_nsend): Changed into wrapper around __libc_res_nsend.
	* resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
	just 1K answer buffer on the stack, use __libc_res_nsearch instead
	of res_nsearch.
	(_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
	* resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
	(_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
	* resolv/gethnamaddr.c (gethostbyname2): Likewise.
	(gethostbyaddr): Similarly with __libc_res_nquery.
	* resolv/Versions (libresolv): Export __libc_res_nquery and
	__libc_res_nsearch at GLIBC_PRIVATE.
Diffstat (limited to 'include')
-rw-r--r--include/resolv.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/resolv.h b/include/resolv.h
index 12b4f744da..8b5b852647 100644
--- a/include/resolv.h
+++ b/include/resolv.h
@@ -46,6 +46,15 @@ extern int res_ourserver_p (const res_state __statp,
 			    const struct sockaddr_in6 *__inp);
 libc_hidden_proto (__res_ninit)
 libc_hidden_proto (__res_randomid)
+
+int __libc_res_nquery (res_state, const char *, int, int, u_char *, int,
+		       u_char **);
+int __libc_res_nsearch (res_state, const char *, int, int, u_char *, int,
+			u_char **);
+int __libc_res_nsend (res_state, const u_char *, int, u_char *, int,
+		      u_char **)
+  attribute_hidden;
+
 #endif
 
 #endif