diff options
author | peter <peter@FreeBSD.org> | 1996-12-30 13:25:38 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-12-30 13:25:38 +0000 |
commit | 7b950e65b2fd7b182f052a13da5c0465fb308334 (patch) | |
tree | b2edc56f80bd04e148814fe6ec8dec3a8d936daa /lib/libc/net | |
parent | 43be453b52c9807ae45f5761e14df21a517e496c (diff) | |
download | FreeBSD-src-7b950e65b2fd7b182f052a13da5c0465fb308334.zip FreeBSD-src-7b950e65b2fd7b182f052a13da5c0465fb308334.tar.gz |
Tempt fate! 'cvs add' a file remotely which also exists in the Attic on
RELENG_2_2!
This is part#2 of the previous commit to src/lib/libc/net to contain the
potential damage.
This provides stubs so that binaries linked in 2.2 will run on 3.0
Diffstat (limited to 'lib/libc/net')
-rw-r--r-- | lib/libc/net/res_stubs.c | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/lib/libc/net/res_stubs.c b/lib/libc/net/res_stubs.c new file mode 100644 index 0000000..0b9191f --- /dev/null +++ b/lib/libc/net/res_stubs.c @@ -0,0 +1,64 @@ +/* + * Copyright (C) 1996 Peter Wemm <peter@freebsd.org>. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * $Id$ + */ + +/* + * This file is for FreeBSD-3.0 that has a bind-4.9.5-P1 derived + * resolver in the libc. It provides aliases for functions that + * have moved since 4.9.4-P1. + * + * I'll save everybody the trouble and say it now: *THIS IS A HACK*! + * + * Yes, many of these are private functions to the resolver, but some are + * needed as there is no other way to provide the functionality and they've + * turned up all over the place. :-( + */ + +#include <sys/types.h> +#include <sys/cdefs.h> + +__weak_reference(__sym_ston, sym_ston); +__weak_reference(__sym_ntos, sym_ntos); +__weak_reference(__sym_ntop, sym_ntop); +__weak_reference(__b64_ntop, b64_ntop); +__weak_reference(__b64_pton, b64_pton); +__weak_reference(__fp_resstat, fp_resstat); +__weak_reference(__p_query, p_query); +__weak_reference(__p_fqnname, p_fqnname); +__weak_reference(__p_secstodate, p_secstodate); +__weak_reference(__dn_count_labels, dn_count_labels); +__weak_reference(__dn_comp, dn_comp); +__weak_reference(__res_send, res_send); +__weak_reference(__res_close, _res_close); +#ifdef BIND_RES_POSIX3 +__weak_reference(__dn_expand, dn_expand); +__weak_reference(__res_init, res_init); +__weak_reference(__res_query, res_query); +__weak_reference(__res_search, res_search); +__weak_reference(__res_querydomain, res_querydomain); +__weak_reference(__res_mkquery, res_mkquery); +#endif |