From 3a893e11a7a11a71f7c387d15943b98cb1d40797 Mon Sep 17 00:00:00 2001 From: ume Date: Thu, 30 Mar 2006 20:15:53 +0000 Subject: Expose res_update and friends again. At least, ports/mail/spamilter uses them. Now, we have res_nupdate and res_nmkupdate as well, but they are still based on our old resolver for binary backward compatibility. So, they don't provide new features such as TSIG support. Reported by: pointyhat via kris --- lib/libc/resolv/res_data.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib/libc/resolv/res_data.c') diff --git a/lib/libc/resolv/res_data.c b/lib/libc/resolv/res_data.c index a864b60..ab6d575 100644 --- a/lib/libc/resolv/res_data.c +++ b/lib/libc/resolv/res_data.c @@ -35,9 +35,7 @@ __FBSDID("$FreeBSD$"); #include #include #include -#ifndef _LIBC #include -#endif #include #include #include @@ -156,7 +154,6 @@ res_mkquery(int op, /* opcode of query */ newrr_in, buf, buflen)); } -#ifndef _LIBC int res_mkupdate(ns_updrec *rrecp_in, u_char *buf, int buflen) { if ((_res.options & RES_INIT) == 0U && res_init() == -1) { @@ -166,7 +163,6 @@ res_mkupdate(ns_updrec *rrecp_in, u_char *buf, int buflen) { return (res_nmkupdate(&_res, rrecp_in, buf, buflen)); } -#endif int res_query(const char *name, /* domain name */ @@ -227,7 +223,6 @@ res_close(void) { res_nclose(&_res); } -#ifndef _LIBC int res_update(ns_updrec *rrecp_in) { if ((_res.options & RES_INIT) == 0U && res_init() == -1) { @@ -237,7 +232,6 @@ res_update(ns_updrec *rrecp_in) { return (res_nupdate(&_res, rrecp_in, NULL)); } -#endif int res_search(const char *name, /* domain name */ -- cgit v1.1