]>
Commit | Line | Data |
---|---|---|
d614a753 | 1 | /* Copyright (C) 2004-2020 Free Software Foundation, Inc. |
43bc8ac6 UD |
2 | This file is part of the GNU C Library. |
3 | Contributed by Ulrich Drepper <drepper@cygnus.com>, 2004. | |
4 | ||
5 | This program is free software; you can redistribute it and/or modify | |
2e2efe65 RM |
6 | it under the terms of the GNU General Public License as published |
7 | by the Free Software Foundation; version 2 of the License, or | |
8 | (at your option) any later version. | |
43bc8ac6 UD |
9 | |
10 | This program is distributed in the hope that it will be useful, | |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | GNU General Public License for more details. | |
14 | ||
15 | You should have received a copy of the GNU General Public License | |
5a82c748 | 16 | along with this program; if not, see <https://www.gnu.org/licenses/>. */ |
43bc8ac6 | 17 | |
addc8335 | 18 | #include <alloca.h> |
f8de5057 | 19 | |
91a3b2ad UD |
20 | /* This file uses the getaddrinfo code but it compiles it without NSCD |
21 | support. We just need a few symbol renames. */ | |
43850227 | 22 | #define __ioctl ioctl |
91a3b2ad UD |
23 | #define __getsockname getsockname |
24 | #define __socket socket | |
25 | #define __recvmsg recvmsg | |
26 | #define __bind bind | |
27 | #define __sendto sendto | |
28 | #define __strchrnul strchrnul | |
077a30bc | 29 | #define __getline getline |
bef8fd60 | 30 | #define __qsort_r qsort_r |
addc8335 UD |
31 | /* nscd uses 1MB or 2MB thread stacks. */ |
32 | #define __libc_use_alloca(size) (size <= __MAX_ALLOCA_CUTOFF) | |
7c5b106d ST |
33 | #define __getifaddrs getifaddrs |
34 | #define __freeifaddrs freeifaddrs | |
91a3b2ad | 35 | |
f04e2132 RM |
36 | /* We are nscd, so we don't want to be talking to ourselves. */ |
37 | #undef USE_NSCD | |
38 | ||
91a3b2ad UD |
39 | #include <getaddrinfo.c> |
40 | ||
41 | /* Support code. */ | |
42 | #include <check_pf.c> | |
43850227 | 43 | #include <check_native.c> |
eaf6753f AS |
44 | |
45 | /* Some variables normally defined in libc. */ | |
46 | service_user *__nss_hosts_database attribute_hidden; |