source: rtems/cpukit/libnetworking/libc/res_stubs.c @ 0e16fa45

5
Last change on this file since 0e16fa45 was cb68253, checked in by Sebastian Huber <sebastian.huber@…>, on 09/07/18 at 04:19:02

network: Use kernel/user space header files

Add and use <machine/rtems-bsd-kernel-space.h> and
<machine/rtems-bsd-user-space.h> similar to the libbsd to avoid command
line defines and defines scattered throught the code base.

Simplify cpukit/libnetworking/Makefile.am.

Update #3375.

  • Property mode set to 100644
File size: 3.3 KB
Line 
1#include <machine/rtems-bsd-user-space.h>
2
3/*
4 * Copyright (C) 1996 Peter Wemm <peter@freebsd.org>.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 *    notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 *    notice, this list of conditions and the following disclaimer in the
14 *    documentation and/or other materials provided with the distribution.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
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#ifndef __rtems__
49__weak_reference(__inet_addr, inet_addr);
50__weak_reference(__inet_aton, inet_aton);
51__weak_reference(__inet_lnaof, inet_lnaof);
52__weak_reference(__inet_makeaddr, inet_makeaddr);
53__weak_reference(__inet_neta, inet_neta);
54__weak_reference(__inet_netof, inet_netof);
55__weak_reference(__inet_network, inet_network);
56__weak_reference(__inet_net_ntop, inet_net_ntop);
57__weak_reference(__inet_net_pton, inet_net_pton);
58__weak_reference(__inet_ntoa, inet_ntoa);
59__weak_reference(__inet_pton, inet_pton);
60__weak_reference(__inet_ntop, inet_ntop);
61__weak_reference(__inet_nsap_addr, inet_nsap_addr);
62__weak_reference(__inet_nsap_ntoa, inet_nsap_ntoa);
63#endif /* __rtems__ */
64
65__weak_reference(__sym_ston, sym_ston);
66__weak_reference(__sym_ntos, sym_ntos);
67__weak_reference(__sym_ntop, sym_ntop);
68__weak_reference(__fp_resstat, fp_resstat);
69__weak_reference(__p_query, p_query);
70__weak_reference(__p_fqnname, p_fqnname);
71__weak_reference(__p_secstodate, p_secstodate);
72__weak_reference(__dn_count_labels, dn_count_labels);
73__weak_reference(__dn_comp, dn_comp);
74__weak_reference(__res_close, _res_close);
75__weak_reference(__dn_expand, dn_expand);
76__weak_reference(__res_init, res_init);
77__weak_reference(__res_query, res_query);
78__weak_reference(__res_search, res_search);
79__weak_reference(__res_querydomain, res_querydomain);
80__weak_reference(__res_mkquery, res_mkquery);
81__weak_reference(__res_send, res_send);
Note: See TracBrowser for help on using the repository browser.