summaryrefslogtreecommitdiffstats
path: root/lib/libc/resolv/res_data.c
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2006-03-30 20:15:53 +0000
committerume <ume@FreeBSD.org>2006-03-30 20:15:53 +0000
commit3a893e11a7a11a71f7c387d15943b98cb1d40797 (patch)
tree301a2d20516db1ef585fb63207881444f480edae /lib/libc/resolv/res_data.c
parent19c7a1894198c99124d609f45f5c4fb3e5262143 (diff)
downloadFreeBSD-src-3a893e11a7a11a71f7c387d15943b98cb1d40797.zip
FreeBSD-src-3a893e11a7a11a71f7c387d15943b98cb1d40797.tar.gz
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
Diffstat (limited to 'lib/libc/resolv/res_data.c')
-rw-r--r--lib/libc/resolv/res_data.c6
1 files changed, 0 insertions, 6 deletions
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 <ctype.h>
#include <netdb.h>
#include <resolv.h>
-#ifndef _LIBC
#include <res_update.h>
-#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -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 */
OpenPOWER on IntegriCloud