Back to index

glibc  2.9
gai.c
Go to the documentation of this file.
00001 /* Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
00002    This file is part of the GNU C Library.
00003    Contributed by Ulrich Drepper <drepper@cygnus.com>, 2004.
00004 
00005    This program is free software; you can redistribute it and/or modify
00006    it under the terms of the GNU General Public License as published
00007    by the Free Software Foundation; version 2 of the License, or
00008    (at your option) any later version.
00009 
00010    This program is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013    GNU General Public License for more details.
00014 
00015    You should have received a copy of the GNU General Public License
00016    along with this program; if not, write to the Free Software Foundation,
00017    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
00018 
00019 #include <alloca.h>
00020 #include <kernel-features.h>
00021 
00022 /* This file uses the getaddrinfo code but it compiles it without NSCD
00023    support.  We just need a few symbol renames.  */
00024 #define __inet_aton inet_aton
00025 #define __ioctl ioctl
00026 #define __getsockname getsockname
00027 #define __socket socket
00028 #define __recvmsg recvmsg
00029 #define __bind bind
00030 #define __sendto sendto
00031 #define __strchrnul strchrnul
00032 #define __getline getline
00033 /* nscd uses 1MB or 2MB thread stacks.  */
00034 #define __libc_use_alloca(size) (size <= __MAX_ALLOCA_CUTOFF)
00035 
00036 #include <getaddrinfo.c>
00037 
00038 /* Support code.  */
00039 #include <check_pf.c>
00040 #include <check_native.c>
00041 #ifdef HAVE_LIBIDN
00042 # include <libidn/idn-stub.c>
00043 #endif
00044 
00045 /* Some variables normally defined in libc.  */
00046 service_user *__nss_hosts_database;
00047 
00048 #if defined NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0
00049 int __no_netlink_support attribute_hidden;
00050 #endif