Blame nscd/gai.c

Packit 6c4009
/* Copyright (C) 2004-2018 Free Software Foundation, Inc.
Packit 6c4009
   This file is part of the GNU C Library.
Packit 6c4009
   Contributed by Ulrich Drepper <drepper@cygnus.com>, 2004.
Packit 6c4009
Packit 6c4009
   This program is free software; you can redistribute it and/or modify
Packit 6c4009
   it under the terms of the GNU General Public License as published
Packit 6c4009
   by the Free Software Foundation; version 2 of the License, or
Packit 6c4009
   (at your option) any later version.
Packit 6c4009
Packit 6c4009
   This program is distributed in the hope that it will be useful,
Packit 6c4009
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 6c4009
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 6c4009
   GNU General Public License for more details.
Packit 6c4009
Packit 6c4009
   You should have received a copy of the GNU General Public License
Packit 6c4009
   along with this program; if not, see <http://www.gnu.org/licenses/>.  */
Packit 6c4009
Packit 6c4009
#include <alloca.h>
Packit 6c4009
Packit 6c4009
/* This file uses the getaddrinfo code but it compiles it without NSCD
Packit 6c4009
   support.  We just need a few symbol renames.  */
Packit Bot 0c2104
#define __inet_aton inet_aton
Packit 6c4009
#define __ioctl ioctl
Packit 6c4009
#define __getsockname getsockname
Packit 6c4009
#define __socket socket
Packit 6c4009
#define __recvmsg recvmsg
Packit 6c4009
#define __bind bind
Packit 6c4009
#define __sendto sendto
Packit 6c4009
#define __strchrnul strchrnul
Packit 6c4009
#define __getline getline
Packit 6c4009
#define __qsort_r qsort_r
Packit 6c4009
/* nscd uses 1MB or 2MB thread stacks.  */
Packit 6c4009
#define __libc_use_alloca(size) (size <= __MAX_ALLOCA_CUTOFF)
Packit 6c4009
#define __getifaddrs getifaddrs
Packit 6c4009
#define __freeifaddrs freeifaddrs
Packit 6c4009
Packit 6c4009
/* We are nscd, so we don't want to be talking to ourselves.  */
Packit 6c4009
#undef  USE_NSCD
Packit 6c4009
Packit 6c4009
#include <getaddrinfo.c>
Packit 6c4009
Packit 6c4009
/* Support code.  */
Packit 6c4009
#include <check_pf.c>
Packit 6c4009
#include <check_native.c>
Packit 6c4009
Packit 6c4009
/* Some variables normally defined in libc.  */
Packit 6c4009
service_user *__nss_hosts_database attribute_hidden;