Correct incorrect bug number ordering in resolved bug list.
[glibc.git] / nscd / gai.c
blob2df7ea7487a1562f707d6ae5ecb617c9ddd0e27f
1 /* Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3 Contributed by Ulrich Drepper <drepper@cygnus.com>, 2004.
5 This program is free software; you can redistribute it and/or modify
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.
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.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, see <http://www.gnu.org/licenses/>. */
18 #include <alloca.h>
19 #include <kernel-features.h>
21 /* This file uses the getaddrinfo code but it compiles it without NSCD
22 support. We just need a few symbol renames. */
23 #define __inet_aton inet_aton
24 #define __ioctl ioctl
25 #define __getsockname getsockname
26 #define __socket socket
27 #define __recvmsg recvmsg
28 #define __bind bind
29 #define __sendto sendto
30 #define __strchrnul strchrnul
31 #define __getline getline
32 /* nscd uses 1MB or 2MB thread stacks. */
33 #define __libc_use_alloca(size) (size <= __MAX_ALLOCA_CUTOFF)
35 #include <getaddrinfo.c>
37 /* Support code. */
38 #include <check_pf.c>
39 #include <check_native.c>
40 #ifdef HAVE_LIBIDN
41 # include <libidn/idn-stub.c>
42 #endif
44 /* Some variables normally defined in libc. */
45 service_user *__nss_hosts_database;
47 #if defined NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0
48 int __no_netlink_support attribute_hidden;
49 #endif