source: rtems/cpukit/libnetworking/libc/res_stubs.c @ ee613aa

4.115
Last change on this file since ee613aa was ee613aa, checked in by Ralf Corsepius <ralf.corsepius@…>, on 03/24/11 at 09:36:14

Include <sys/cdefs.h> (Eliminate rtems/bsd/sys/cdefs.h).

  • 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#if HAVE_CONFIG_H
42#include "config.h"
43#endif
44
45#include <sys/types.h>
46#include <sys/cdefs.h>
47
48__weak_reference(__inet_addr, inet_addr);
49__weak_reference(__inet_aton, inet_aton);
50__weak_reference(__inet_lnaof, inet_lnaof);
51__weak_reference(__inet_makeaddr, inet_makeaddr);
52__weak_reference(__inet_neta, inet_neta);
53__weak_reference(__inet_netof, inet_netof);
54__weak_reference(__inet_network, inet_network);
55__weak_reference(__inet_net_ntop, inet_net_ntop);
56__weak_reference(__inet_net_pton, inet_net_pton);
57__weak_reference(__inet_ntoa, inet_ntoa);
58__weak_reference(__inet_pton, inet_pton);
59__weak_reference(__inet_ntop, inet_ntop);
60__weak_reference(__inet_nsap_addr, inet_nsap_addr);
61__weak_reference(__inet_nsap_ntoa, inet_nsap_ntoa);
62
63__weak_reference(__sym_ston, sym_ston);
64__weak_reference(__sym_ntos, sym_ntos);
65__weak_reference(__sym_ntop, sym_ntop);
66__weak_reference(__fp_resstat, fp_resstat);
67__weak_reference(__p_query, p_query);
68__weak_reference(__p_fqnname, p_fqnname);
69__weak_reference(__p_secstodate, p_secstodate);
70__weak_reference(__dn_count_labels, dn_count_labels);
71__weak_reference(__dn_comp, dn_comp);
72__weak_reference(__res_close, _res_close);
73__weak_reference(__dn_expand, dn_expand);
74__weak_reference(__res_init, res_init);
75__weak_reference(__res_query, res_query);
76__weak_reference(__res_search, res_search);
77__weak_reference(__res_querydomain, res_querydomain);
78__weak_reference(__res_mkquery, res_mkquery);
79__weak_reference(__res_send, res_send);
Note: See TracBrowser for help on using the repository browser.