Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/resolv Provide access to the 8 symbols the bind8 re...



details:   https://anonhg.NetBSD.org/src/rev/52603575593f
branches:  trunk
changeset: 566874:52603575593f
user:      christos <christos%NetBSD.org@localhost>
date:      Sat May 22 23:47:09 2004 +0000

description:
Provide access to the 8 symbols the bind8 resolver did, through weak aliases.
3 of them [res_send_*, and res_querydomain], were done incorrectly before...

diffstat:

 lib/libc/resolv/res_comp.c |   6 +++---
 lib/libc/resolv/res_data.c |  19 ++++++++++++-------
 2 files changed, 15 insertions(+), 10 deletions(-)

diffs (76 lines):

diff -r 8f16f0f2b23b -r 52603575593f lib/libc/resolv/res_comp.c
--- a/lib/libc/resolv/res_comp.c        Sat May 22 23:46:16 2004 +0000
+++ b/lib/libc/resolv/res_comp.c        Sat May 22 23:47:09 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: res_comp.c,v 1.5 2004/05/21 16:03:05 christos Exp $    */
+/*     $NetBSD: res_comp.c,v 1.6 2004/05/22 23:47:09 christos Exp $    */
 
 /*
  * Copyright (c) 1985, 1993
@@ -75,7 +75,7 @@
 static const char sccsid[] = "@(#)res_comp.c   8.1 (Berkeley) 6/4/93";
 static const char rcsid[] = "Id: res_comp.c,v 1.1.2.1.4.1 2004/03/09 08:33:54 marka Exp";
 #else
-__RCSID("$NetBSD: res_comp.c,v 1.5 2004/05/21 16:03:05 christos Exp $");
+__RCSID("$NetBSD: res_comp.c,v 1.6 2004/05/22 23:47:09 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -93,10 +93,10 @@
 #include <unistd.h>
 #include "port_after.h"
 
-#if 0
 #ifdef __weak_alias
 __weak_alias(dn_expand,_dn_expand)
 __weak_alias(dn_comp,__dn_comp)
+#if 0
 __weak_alias(dn_skipname,__dn_skipname)
 __weak_alias(res_hnok,__res_hnok)
 __weak_alias(res_ownok,__res_ownok)
diff -r 8f16f0f2b23b -r 52603575593f lib/libc/resolv/res_data.c
--- a/lib/libc/resolv/res_data.c        Sat May 22 23:46:16 2004 +0000
+++ b/lib/libc/resolv/res_data.c        Sat May 22 23:47:09 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: res_data.c,v 1.6 2004/05/21 16:03:05 christos Exp $    */
+/*     $NetBSD: res_data.c,v 1.7 2004/05/22 23:47:09 christos Exp $    */
 
 /*
  * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
@@ -22,7 +22,7 @@
 #ifdef notdef
 static const char rcsid[] = "Id: res_data.c,v 1.1.206.2 2004/03/16 12:34:18 marka Exp";
 #else
-__RCSID("$NetBSD: res_data.c,v 1.6 2004/05/21 16:03:05 christos Exp $");
+__RCSID("$NetBSD: res_data.c,v 1.7 2004/05/22 23:47:09 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -49,17 +49,22 @@
 
 #include "port_after.h"
 
-#if 0
 #ifdef __weak_alias
 __weak_alias(res_init,_res_init)
 __weak_alias(res_mkquery,_res_mkquery)
+__weak_alias(res_query,_res_query)
+__weak_alias(res_search,_res_search)
+__weak_alias(res_send,__res_send)
+__weak_alias(res_close,__res_close)
+/* XXX: these leaked in the old bind8 libc */
+__weak_alias(res_querydomain,__res_querydomain)
 __weak_alias(res_send_setqhook,__res_send_setqhook)
 __weak_alias(res_send_setrhook,__res_send_setrhook)
+#if 0
+__weak_alias(p_query,__p_query)
+__weak_alias(fp_query,__fp_query)
+__weak_alias(fp_nquery,__fp_nquery)
 __weak_alias(res_isourserver,__res_isourserver)
-__weak_alias(res_send,__res_send)
-__weak_alias(res_close,__res_close)
-__weak_alias(res_search,_res_search)
-__weak_alias(res_querydomain,__res_querydomain)
 __weak_alias(res_opt,_res_opt)
 __weak_alias(hostalias,__hostalias)
 #endif



Home | Main Index | Thread Index | Old Index