source: rtems/c/src/libnetworking/libc/res_stubs.c @ 39e6e65a

4.104.114.84.95
Last change on this file since 39e6e65a was 39e6e65a, checked in by Joel Sherrill <joel.sherrill@…>, on 08/19/98 at 21:32:28

Base files

  • Property mode set to 100644
File size: 3.2 KB
Line 
1/*
2 * Copyright (C) 1996 Peter Wemm <peter@freebsd.org>.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 *    notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 *    notice, this list of conditions and the following disclaimer in the
12 *    documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $Id$
27 */
28
29/*
30 * This file is for FreeBSD-3.0 that has a bind-4.9.5-P1 derived
31 * resolver in the libc.  It provides aliases for functions that
32 * have moved since 4.9.4-P1.
33 *
34 * I'll save everybody the trouble and say it now:  *THIS IS A HACK*!
35 *
36 * Yes, many of these are private functions to the resolver, but some are
37 * needed as there is no other way to provide the functionality and they've
38 * turned up all over the place. :-(
39 */
40
41#include <sys/types.h>
42#include <sys/cdefs.h>
43
44__weak_reference(__inet_addr, inet_addr);
45__weak_reference(__inet_aton, inet_aton);
46__weak_reference(__inet_lnaof, inet_lnaof);
47__weak_reference(__inet_makeaddr, inet_makeaddr);
48__weak_reference(__inet_neta, inet_neta);
49__weak_reference(__inet_netof, inet_netof);
50__weak_reference(__inet_network, inet_network);
51__weak_reference(__inet_net_ntop, inet_net_ntop);
52__weak_reference(__inet_net_pton, inet_net_pton);
53__weak_reference(__inet_ntoa, inet_ntoa);
54__weak_reference(__inet_pton, inet_pton);
55__weak_reference(__inet_ntop, inet_ntop);
56__weak_reference(__inet_nsap_addr, inet_nsap_addr);
57__weak_reference(__inet_nsap_ntoa, inet_nsap_ntoa);
58
59__weak_reference(__sym_ston, sym_ston);
60__weak_reference(__sym_ntos, sym_ntos);
61__weak_reference(__sym_ntop, sym_ntop);
62__weak_reference(__fp_resstat, fp_resstat);
63__weak_reference(__p_query, p_query);
64__weak_reference(__p_fqnname, p_fqnname);
65__weak_reference(__p_secstodate, p_secstodate);
66__weak_reference(__dn_count_labels, dn_count_labels);
67__weak_reference(__dn_comp, dn_comp);
68__weak_reference(__res_close, _res_close);
69__weak_reference(__dn_expand, dn_expand);
70__weak_reference(__res_init, res_init);
71__weak_reference(__res_query, res_query);
72__weak_reference(__res_search, res_search);
73__weak_reference(__res_querydomain, res_querydomain);
74__weak_reference(__res_mkquery, res_mkquery);
75__weak_reference(__res_send, res_send);
Note: See TracBrowser for help on using the repository browser.