diff options
author | ume <ume@FreeBSD.org> | 2006-03-30 20:15:53 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2006-03-30 20:15:53 +0000 |
commit | 3a893e11a7a11a71f7c387d15943b98cb1d40797 (patch) | |
tree | 301a2d20516db1ef585fb63207881444f480edae /lib/libc/resolv | |
parent | 19c7a1894198c99124d609f45f5c4fb3e5262143 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | lib/libc/resolv/Symbol.map | 2 | ||||
-rw-r--r-- | lib/libc/resolv/res_data.c | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/lib/libc/resolv/Symbol.map b/lib/libc/resolv/Symbol.map index 6e1de65..7aa2256 100644 --- a/lib/libc/resolv/Symbol.map +++ b/lib/libc/resolv/Symbol.map @@ -100,4 +100,6 @@ FBSD_1.0 { __res_close; _res_close; res_send; + __res_mkupdate; + res_update; # Why is this not __res_update? }; 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 */ |