mirror of https://github.com/lukechilds/node.git
Browse Source
Also remove c-ares since it's included in libuv now. libuv version b7b7df090ca285e53eb51bf518c4e5064876596v0.7.4-release
Ryan Dahl
14 years ago
215 changed files with 67663 additions and 9429 deletions
@ -1,22 +0,0 @@ |
|||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}) |
|
||||
include_directories(${node_platform}-${cares_arch}) |
|
||||
add_definitions(-DHAVE_CONFIG_H=1) |
|
||||
|
|
||||
include(CheckLibraryExists) |
|
||||
check_library_exists(socket socket "" HAVE_SOCKET_LIB) |
|
||||
check_library_exists(nsl gethostbyname "" HAVE_NSL_LIB) |
|
||||
|
|
||||
file(GLOB lib_sources *.c) |
|
||||
add_library(cares ${lib_sources}) |
|
||||
|
|
||||
if(${HAVE_SOCKET_LIB}) |
|
||||
set(cares_libs ${cares_libs} socket) |
|
||||
endif() |
|
||||
|
|
||||
if(${HAVE_NSL_LIB}) |
|
||||
set(cares_libs ${cares_libs} nsl) |
|
||||
endif() |
|
||||
|
|
||||
if(cares_libs) |
|
||||
target_link_libraries(cares ${cares_libs}) |
|
||||
endif() |
|
@ -1,21 +0,0 @@ |
|||||
Library: c-ares, DNS resolver |
|
||||
|
|
||||
Version: 1.7.3 (11 June, 2010) |
|
||||
|
|
||||
Authors: Greg Hudson, Daniel Stenberg |
|
||||
|
|
||||
License: MIT |
|
||||
|
|
||||
Notes: |
|
||||
|
|
||||
Just use waf instead of the autoconf based configure script. Delete most of |
|
||||
the documentation and other files distributed with it. To upgrade, run |
|
||||
./configure on linux, macintosh, solaris (and other supported platforms) and |
|
||||
copy |
|
||||
- ares_config.h |
|
||||
- ares_setup.h |
|
||||
- ares_build.h |
|
||||
into the appropriate directory. |
|
||||
|
|
||||
|
|
||||
|
|
@ -1,112 +0,0 @@ |
|||||
/* ares_build.h. Generated from ares_build.h.in by configure. */ |
|
||||
#ifndef __CARES_BUILD_H |
|
||||
#define __CARES_BUILD_H |
|
||||
|
|
||||
/* $Id$ */ |
|
||||
|
|
||||
/* Copyright (C) 2009 by Daniel Stenberg et al
|
|
||||
* |
|
||||
* Permission to use, copy, modify, and distribute this software and its |
|
||||
* documentation for any purpose and without fee is hereby granted, provided |
|
||||
* that the above copyright notice appear in all copies and that both that |
|
||||
* copyright notice and this permission notice appear in supporting |
|
||||
* documentation, and that the name of M.I.T. not be used in advertising or |
|
||||
* publicity pertaining to distribution of the software without specific, |
|
||||
* written prior permission. M.I.T. makes no representations about the |
|
||||
* suitability of this software for any purpose. It is provided "as is" |
|
||||
* without express or implied warranty. |
|
||||
*/ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* NOTES FOR CONFIGURE CAPABLE SYSTEMS */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* NOTE 1: |
|
||||
* ------- |
|
||||
* |
|
||||
* Nothing in this file is intended to be modified or adjusted by the |
|
||||
* c-ares library user nor by the c-ares library builder. |
|
||||
* |
|
||||
* If you think that something actually needs to be changed, adjusted |
|
||||
* or fixed in this file, then, report it on the c-ares development |
|
||||
* mailing list: http://cool.haxx.se/mailman/listinfo/c-ares/
|
|
||||
* |
|
||||
* This header file shall only export symbols which are 'cares' or 'CARES' |
|
||||
* prefixed, otherwise public name space would be polluted. |
|
||||
* |
|
||||
* NOTE 2: |
|
||||
* ------- |
|
||||
* |
|
||||
* Right now you might be staring at file ares_build.h.in or ares_build.h, |
|
||||
* this is due to the following reason: |
|
||||
* |
|
||||
* On systems capable of running the configure script, the configure process |
|
||||
* will overwrite the distributed ares_build.h file with one that is suitable |
|
||||
* and specific to the library being configured and built, which is generated |
|
||||
* from the ares_build.h.in template file. |
|
||||
* |
|
||||
*/ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
#ifdef CARES_SIZEOF_LONG |
|
||||
# error "CARES_SIZEOF_LONG shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_SIZEOF_LONG_already_defined |
|
||||
#endif |
|
||||
|
|
||||
#ifdef CARES_TYPEOF_ARES_SOCKLEN_T |
|
||||
# error "CARES_TYPEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_TYPEOF_ARES_SOCKLEN_T_already_defined |
|
||||
#endif |
|
||||
|
|
||||
#ifdef CARES_SIZEOF_ARES_SOCKLEN_T |
|
||||
# error "CARES_SIZEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_SIZEOF_ARES_SOCKLEN_T_already_defined |
|
||||
#endif |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* EXTERNAL INTERFACE SETTINGS FOR CONFIGURE CAPABLE SYSTEMS ONLY */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file ws2tcpip.h must be included by the external interface. */ |
|
||||
/* #undef CARES_PULL_WS2TCPIP_H */ |
|
||||
#ifdef CARES_PULL_WS2TCPIP_H |
|
||||
# ifndef WIN32_LEAN_AND_MEAN |
|
||||
# define WIN32_LEAN_AND_MEAN |
|
||||
# endif |
|
||||
# include <windows.h> |
|
||||
# include <winsock2.h> |
|
||||
# include <ws2tcpip.h> |
|
||||
#endif |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file sys/types.h must be included by the external interface. */ |
|
||||
#define CARES_PULL_SYS_TYPES_H 1 |
|
||||
#ifdef CARES_PULL_SYS_TYPES_H |
|
||||
# include <sys/types.h> |
|
||||
#endif |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file sys/socket.h must be included by the external interface. */ |
|
||||
#define CARES_PULL_SYS_SOCKET_H 1 |
|
||||
#ifdef CARES_PULL_SYS_SOCKET_H |
|
||||
# include <sys/socket.h> |
|
||||
#endif |
|
||||
|
|
||||
/* The size of `long', as computed by sizeof. */ |
|
||||
#define CARES_SIZEOF_LONG 4 |
|
||||
|
|
||||
/* Integral data type used for ares_socklen_t. */ |
|
||||
#define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t |
|
||||
|
|
||||
/* The size of `ares_socklen_t', as computed by sizeof. */ |
|
||||
#define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
|
||||
|
|
||||
/* Data type definition of ares_socklen_t. */ |
|
||||
typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t; |
|
||||
|
|
||||
#endif /* __CARES_BUILD_H */ |
|
@ -1,513 +0,0 @@ |
|||||
/* ares_config.h. Generated from ares_config.h.in by configure. */ |
|
||||
/* ares_config.h.in. Generated from configure.ac by autoheader. */ |
|
||||
|
|
||||
/* Define if building universal (internal helper macro) */ |
|
||||
/* #undef AC_APPLE_UNIVERSAL_BUILD */ |
|
||||
|
|
||||
/* define this if ares is built for a big endian system */ |
|
||||
/* #undef ARES_BIG_ENDIAN */ |
|
||||
|
|
||||
/* when building as static part of libcurl */ |
|
||||
/* #undef BUILDING_LIBCURL */ |
|
||||
|
|
||||
/* when building c-ares library */ |
|
||||
/* #undef CARES_BUILDING_LIBRARY */ |
|
||||
|
|
||||
/* when not building a shared library */ |
|
||||
/* #undef CARES_STATICLIB */ |
|
||||
|
|
||||
/* Define to 1 to enable hiding of library internal symbols. */ |
|
||||
#define CARES_SYMBOL_HIDING 1 |
|
||||
|
|
||||
/* Definition to make a library symbol externally visible. */ |
|
||||
#define CARES_SYMBOL_SCOPE_EXTERN __attribute__ ((visibility ("default"))) |
|
||||
|
|
||||
/* if a /etc/inet dir is being used */ |
|
||||
/* #undef ETC_INET */ |
|
||||
|
|
||||
/* Define to the type qualifier of arg 1 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_QUAL_ARG1 const |
|
||||
|
|
||||
/* Define to the type of arg 1 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG1 struct sockaddr * |
|
||||
|
|
||||
/* Define to the type of arg 2 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG2 socklen_t |
|
||||
|
|
||||
/* Define to the type of args 4 and 6 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG46 int |
|
||||
|
|
||||
/* Define to the type of arg 7 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG7 int |
|
||||
|
|
||||
/* Specifies the number of arguments to getservbyport_r */ |
|
||||
/* #undef GETSERVBYPORT_R_ARGS */ |
|
||||
|
|
||||
/* Specifies the size of the buffer to pass to getservbyport_r */ |
|
||||
/* #undef GETSERVBYPORT_R_BUFSIZE */ |
|
||||
|
|
||||
/* Define to 1 if you have AF_INET6. */ |
|
||||
#define HAVE_AF_INET6 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/inet.h> header file. */ |
|
||||
#define HAVE_ARPA_INET_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/nameser_compat.h> header file. */ |
|
||||
#define HAVE_ARPA_NAMESER_COMPAT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/nameser.h> header file. */ |
|
||||
#define HAVE_ARPA_NAMESER_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <assert.h> header file. */ |
|
||||
#define HAVE_ASSERT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `bitncmp' function. */ |
|
||||
/* #undef HAVE_BITNCMP */ |
|
||||
|
|
||||
/* Define to 1 if bool is an available type. */ |
|
||||
#define HAVE_BOOL_T 1 |
|
||||
|
|
||||
/* Define to 1 if you have the clock_gettime function and monotonic timer. */ |
|
||||
/* #undef HAVE_CLOCK_GETTIME_MONOTONIC */ |
|
||||
|
|
||||
/* Define to 1 if you have the closesocket function. */ |
|
||||
/* #undef HAVE_CLOSESOCKET */ |
|
||||
|
|
||||
/* Define to 1 if you have the CloseSocket camel case function. */ |
|
||||
/* #undef HAVE_CLOSESOCKET_CAMEL */ |
|
||||
|
|
||||
/* Define to 1 if you have the connect function. */ |
|
||||
#define HAVE_CONNECT 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */ |
|
||||
#define HAVE_DLFCN_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <errno.h> header file. */ |
|
||||
#define HAVE_ERRNO_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the fcntl function. */ |
|
||||
#define HAVE_FCNTL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <fcntl.h> header file. */ |
|
||||
#define HAVE_FCNTL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working fcntl O_NONBLOCK function. */ |
|
||||
#define HAVE_FCNTL_O_NONBLOCK 1 |
|
||||
|
|
||||
/* Define to 1 if you have the freeaddrinfo function. */ |
|
||||
#define HAVE_FREEADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working getaddrinfo function. */ |
|
||||
#define HAVE_GETADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if the getaddrinfo function is threadsafe. */ |
|
||||
/* #undef HAVE_GETADDRINFO_THREADSAFE */ |
|
||||
|
|
||||
/* Define to 1 if you have the gethostbyaddr function. */ |
|
||||
#define HAVE_GETHOSTBYADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have the gethostbyname function. */ |
|
||||
#define HAVE_GETHOSTBYNAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the gethostname function. */ |
|
||||
#define HAVE_GETHOSTNAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the getnameinfo function. */ |
|
||||
#define HAVE_GETNAMEINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have the getservbyport_r function. */ |
|
||||
/* #undef HAVE_GETSERVBYPORT_R */ |
|
||||
|
|
||||
/* Define to 1 if you have the `gettimeofday' function. */ |
|
||||
#define HAVE_GETTIMEOFDAY 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `if_indextoname' function. */ |
|
||||
#define HAVE_IF_INDEXTONAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `inet_net_pton' function. */ |
|
||||
/* #undef HAVE_INET_NET_PTON */ |
|
||||
|
|
||||
/* Define to 1 if inet_net_pton supports IPv6. */ |
|
||||
/* #undef HAVE_INET_NET_PTON_IPV6 */ |
|
||||
|
|
||||
/* Define to 1 if you have a IPv6 capable working inet_ntop function. */ |
|
||||
#define HAVE_INET_NTOP 1 |
|
||||
|
|
||||
/* Define to 1 if you have a IPv6 capable working inet_pton function. */ |
|
||||
#define HAVE_INET_PTON 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */ |
|
||||
#define HAVE_INTTYPES_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ioctl function. */ |
|
||||
#define HAVE_IOCTL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ioctlsocket function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET */ |
|
||||
|
|
||||
/* Define to 1 if you have the IoctlSocket camel case function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET_CAMEL */ |
|
||||
|
|
||||
/* Define to 1 if you have a working IoctlSocket camel case FIONBIO function.
|
|
||||
*/ |
|
||||
/* #undef HAVE_IOCTLSOCKET_CAMEL_FIONBIO */ |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctlsocket FIONBIO function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET_FIONBIO */ |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctl FIONBIO function. */ |
|
||||
#define HAVE_IOCTL_FIONBIO 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctl SIOCGIFADDR function. */ |
|
||||
#define HAVE_IOCTL_SIOCGIFADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `resolve' library (-lresolve). */ |
|
||||
/* #undef HAVE_LIBRESOLVE */ |
|
||||
|
|
||||
/* Define to 1 if you have the <limits.h> header file. */ |
|
||||
#define HAVE_LIMITS_H 1 |
|
||||
|
|
||||
/* if your compiler supports LL */ |
|
||||
#define HAVE_LL 1 |
|
||||
|
|
||||
/* Define to 1 if the compiler supports the 'long long' data type. */ |
|
||||
#define HAVE_LONGLONG 1 |
|
||||
|
|
||||
/* Define to 1 if you have the malloc.h header file. */ |
|
||||
#define HAVE_MALLOC_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the memory.h header file. */ |
|
||||
#define HAVE_MEMORY_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the MSG_NOSIGNAL flag. */ |
|
||||
#define HAVE_MSG_NOSIGNAL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <netdb.h> header file. */ |
|
||||
#define HAVE_NETDB_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <netinet/in.h> header file. */ |
|
||||
#define HAVE_NETINET_IN_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <netinet/tcp.h> header file. */ |
|
||||
#define HAVE_NETINET_TCP_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <net/if.h> header file. */ |
|
||||
#define HAVE_NET_IF_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have PF_INET6. */ |
|
||||
#define HAVE_PF_INET6 1 |
|
||||
|
|
||||
/* Define to 1 if you have the recv function. */ |
|
||||
#define HAVE_RECV 1 |
|
||||
|
|
||||
/* Define to 1 if you have the recvfrom function. */ |
|
||||
#define HAVE_RECVFROM 1 |
|
||||
|
|
||||
/* Define to 1 if you have the send function. */ |
|
||||
#define HAVE_SEND 1 |
|
||||
|
|
||||
/* Define to 1 if you have the setsockopt function. */ |
|
||||
#define HAVE_SETSOCKOPT 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working setsockopt SO_NONBLOCK function. */ |
|
||||
/* #undef HAVE_SETSOCKOPT_SO_NONBLOCK */ |
|
||||
|
|
||||
/* Define to 1 if you have the <signal.h> header file. */ |
|
||||
#define HAVE_SIGNAL_H 1 |
|
||||
|
|
||||
/* Define to 1 if sig_atomic_t is an available typedef. */ |
|
||||
#define HAVE_SIG_ATOMIC_T 1 |
|
||||
|
|
||||
/* Define to 1 if sig_atomic_t is already defined as volatile. */ |
|
||||
/* #undef HAVE_SIG_ATOMIC_T_VOLATILE */ |
|
||||
|
|
||||
/* Define to 1 if your struct sockaddr_in6 has sin6_scope_id. */ |
|
||||
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
|
||||
|
|
||||
/* Define to 1 if you have the socket function. */ |
|
||||
#define HAVE_SOCKET 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <socket.h> header file. */ |
|
||||
/* #undef HAVE_SOCKET_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the <stdbool.h> header file. */ |
|
||||
#define HAVE_STDBOOL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <stdint.h> header file. */ |
|
||||
#define HAVE_STDINT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */ |
|
||||
#define HAVE_STDLIB_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strcasecmp function. */ |
|
||||
#define HAVE_STRCASECMP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strcmpi function. */ |
|
||||
/* #undef HAVE_STRCMPI */ |
|
||||
|
|
||||
/* Define to 1 if you have the strdup function. */ |
|
||||
#define HAVE_STRDUP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the stricmp function. */ |
|
||||
/* #undef HAVE_STRICMP */ |
|
||||
|
|
||||
/* Define to 1 if you have the <strings.h> header file. */ |
|
||||
#define HAVE_STRINGS_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <string.h> header file. */ |
|
||||
#define HAVE_STRING_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strncasecmp function. */ |
|
||||
#define HAVE_STRNCASECMP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strncmpi function. */ |
|
||||
/* #undef HAVE_STRNCMPI */ |
|
||||
|
|
||||
/* Define to 1 if you have the strnicmp function. */ |
|
||||
/* #undef HAVE_STRNICMP */ |
|
||||
|
|
||||
/* Define to 1 if you have the <stropts.h> header file. */ |
|
||||
/* #undef HAVE_STROPTS_H */ |
|
||||
|
|
||||
/* Define to 1 if you have struct addrinfo. */ |
|
||||
#define HAVE_STRUCT_ADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have struct in6_addr. */ |
|
||||
#define HAVE_STRUCT_IN6_ADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have struct sockaddr_in6. */ |
|
||||
#define HAVE_STRUCT_SOCKADDR_IN6 1 |
|
||||
|
|
||||
/* if struct sockaddr_storage is defined */ |
|
||||
#define HAVE_STRUCT_SOCKADDR_STORAGE 1 |
|
||||
|
|
||||
/* Define to 1 if you have the timeval struct. */ |
|
||||
#define HAVE_STRUCT_TIMEVAL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/ioctl.h> header file. */ |
|
||||
#define HAVE_SYS_IOCTL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/param.h> header file. */ |
|
||||
#define HAVE_SYS_PARAM_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/select.h> header file. */ |
|
||||
#define HAVE_SYS_SELECT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/socket.h> header file. */ |
|
||||
#define HAVE_SYS_SOCKET_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */ |
|
||||
#define HAVE_SYS_STAT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/time.h> header file. */ |
|
||||
#define HAVE_SYS_TIME_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */ |
|
||||
#define HAVE_SYS_TYPES_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/uio.h> header file. */ |
|
||||
#define HAVE_SYS_UIO_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <time.h> header file. */ |
|
||||
#define HAVE_TIME_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <unistd.h> header file. */ |
|
||||
#define HAVE_UNISTD_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the windows.h header file. */ |
|
||||
/* #undef HAVE_WINDOWS_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the winsock2.h header file. */ |
|
||||
/* #undef HAVE_WINSOCK2_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the winsock.h header file. */ |
|
||||
/* #undef HAVE_WINSOCK_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the writev function. */ |
|
||||
#define HAVE_WRITEV 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ws2tcpip.h header file. */ |
|
||||
/* #undef HAVE_WS2TCPIP_H */ |
|
||||
|
|
||||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
|
||||
*/ |
|
||||
#define LT_OBJDIR ".libs/" |
|
||||
|
|
||||
/* Define to 1 if you are building a native Windows target. */ |
|
||||
/* #undef NATIVE_WINDOWS */ |
|
||||
|
|
||||
/* Define to 1 if you need the malloc.h header file even with stdlib.h */ |
|
||||
/* #undef NEED_MALLOC_H */ |
|
||||
|
|
||||
/* Define to 1 if you need the memory.h header file even with stdlib.h */ |
|
||||
/* #undef NEED_MEMORY_H */ |
|
||||
|
|
||||
/* Define to 1 if _REENTRANT preprocessor symbol must be defined. */ |
|
||||
/* #undef NEED_REENTRANT */ |
|
||||
|
|
||||
/* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */ |
|
||||
/* #undef NEED_THREAD_SAFE */ |
|
||||
|
|
||||
/* Define to 1 if your C compiler doesn't accept -c and -o together. */ |
|
||||
/* #undef NO_MINUS_C_MINUS_O */ |
|
||||
|
|
||||
/* cpu-machine-OS */ |
|
||||
#define OS "i686-pc-cygwin" |
|
||||
|
|
||||
/* Name of package */ |
|
||||
#define PACKAGE "c-ares" |
|
||||
|
|
||||
/* Define to the address where bug reports for this package should be sent. */ |
|
||||
#define PACKAGE_BUGREPORT "c-ares mailing list => http://cool.haxx.se/mailman/listinfo/c-ares"
|
|
||||
|
|
||||
/* Define to the full name of this package. */ |
|
||||
#define PACKAGE_NAME "c-ares" |
|
||||
|
|
||||
/* Define to the full name and version of this package. */ |
|
||||
#define PACKAGE_STRING "c-ares 1.7.1" |
|
||||
|
|
||||
/* Define to the one symbol short name of this package. */ |
|
||||
#define PACKAGE_TARNAME "c-ares" |
|
||||
|
|
||||
/* Define to the home page for this package. */ |
|
||||
#define PACKAGE_URL "" |
|
||||
|
|
||||
/* Define to the version of this package. */ |
|
||||
#define PACKAGE_VERSION "1.7.1" |
|
||||
|
|
||||
/* a suitable file/device to read random data from */ |
|
||||
#define RANDOM_FILE "/dev/urandom" |
|
||||
|
|
||||
/* Define to the type of arg 1 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG1 int |
|
||||
|
|
||||
/* Define to the type pointed by arg 2 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG2 void |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 2 for recvfrom is void. */ |
|
||||
#define RECVFROM_TYPE_ARG2_IS_VOID 1 |
|
||||
|
|
||||
/* Define to the type of arg 3 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG3 size_t |
|
||||
|
|
||||
/* Define to the type of arg 4 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the type pointed by arg 5 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG5 struct sockaddr |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 5 for recvfrom is void. */ |
|
||||
/* #undef RECVFROM_TYPE_ARG5_IS_VOID */ |
|
||||
|
|
||||
/* Define to the type pointed by arg 6 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG6 socklen_t |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 6 for recvfrom is void. */ |
|
||||
/* #undef RECVFROM_TYPE_ARG6_IS_VOID */ |
|
||||
|
|
||||
/* Define to the function return type for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_RETV int |
|
||||
|
|
||||
/* Define to the type of arg 1 for recv. */ |
|
||||
#define RECV_TYPE_ARG1 int |
|
||||
|
|
||||
/* Define to the type of arg 2 for recv. */ |
|
||||
#define RECV_TYPE_ARG2 void * |
|
||||
|
|
||||
/* Define to the type of arg 3 for recv. */ |
|
||||
#define RECV_TYPE_ARG3 size_t |
|
||||
|
|
||||
/* Define to the type of arg 4 for recv. */ |
|
||||
#define RECV_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the function return type for recv. */ |
|
||||
#define RECV_TYPE_RETV int |
|
||||
|
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */ |
|
||||
#define RETSIGTYPE void |
|
||||
|
|
||||
/* Define to the type qualifier of arg 2 for send. */ |
|
||||
#define SEND_QUAL_ARG2 const |
|
||||
|
|
||||
/* Define to the type of arg 1 for send. */ |
|
||||
#define SEND_TYPE_ARG1 int |
|
||||
|
|
||||
/* Define to the type of arg 2 for send. */ |
|
||||
#define SEND_TYPE_ARG2 void * |
|
||||
|
|
||||
/* Define to the type of arg 3 for send. */ |
|
||||
#define SEND_TYPE_ARG3 size_t |
|
||||
|
|
||||
/* Define to the type of arg 4 for send. */ |
|
||||
#define SEND_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the function return type for send. */ |
|
||||
#define SEND_TYPE_RETV int |
|
||||
|
|
||||
/* The size of `int', as computed by sizeof. */ |
|
||||
#define SIZEOF_INT 4 |
|
||||
|
|
||||
/* The size of `long', as computed by sizeof. */ |
|
||||
#define SIZEOF_LONG 4 |
|
||||
|
|
||||
/* The size of `size_t', as computed by sizeof. */ |
|
||||
#define SIZEOF_SIZE_T 4 |
|
||||
|
|
||||
/* The size of `struct in6_addr', as computed by sizeof. */ |
|
||||
#define SIZEOF_STRUCT_IN6_ADDR 16 |
|
||||
|
|
||||
/* The size of `struct in_addr', as computed by sizeof. */ |
|
||||
#define SIZEOF_STRUCT_IN_ADDR 4 |
|
||||
|
|
||||
/* The size of `time_t', as computed by sizeof. */ |
|
||||
#define SIZEOF_TIME_T 4 |
|
||||
|
|
||||
/* Define to 1 if you have the ANSI C header files. */ |
|
||||
#define STDC_HEADERS 1 |
|
||||
|
|
||||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ |
|
||||
#define TIME_WITH_SYS_TIME 1 |
|
||||
|
|
||||
/* Define to disable non-blocking sockets. */ |
|
||||
/* #undef USE_BLOCKING_SOCKETS */ |
|
||||
|
|
||||
/* Version number of package */ |
|
||||
#define VERSION "1.7.1" |
|
||||
|
|
||||
/* Define to avoid automatic inclusion of winsock.h */ |
|
||||
/* #undef WIN32_LEAN_AND_MEAN */ |
|
||||
|
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
|
||||
significant byte first (like Motorola and SPARC, unlike Intel). */ |
|
||||
#if defined AC_APPLE_UNIVERSAL_BUILD |
|
||||
# if defined __BIG_ENDIAN__ |
|
||||
# define WORDS_BIGENDIAN 1 |
|
||||
# endif |
|
||||
#else |
|
||||
# ifndef WORDS_BIGENDIAN |
|
||||
/* # undef WORDS_BIGENDIAN */ |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/* Define to 1 if OS is AIX. */ |
|
||||
#ifndef _ALL_SOURCE |
|
||||
/* # undef _ALL_SOURCE */ |
|
||||
#endif |
|
||||
|
|
||||
/* Number of bits in a file offset, on hosts where this is settable. */ |
|
||||
/* #undef _FILE_OFFSET_BITS */ |
|
||||
|
|
||||
/* Define for large files, on AIX-style hosts. */ |
|
||||
/* #undef _LARGE_FILES */ |
|
||||
|
|
||||
/* Define to empty if `const' does not conform to ANSI C. */ |
|
||||
/* #undef const */ |
|
||||
|
|
||||
/* Type to use in place of in_addr_t when system does not provide it. */ |
|
||||
/* #undef in_addr_t */ |
|
||||
|
|
||||
/* Define to `unsigned int' if <sys/types.h> does not define. */ |
|
||||
/* #undef size_t */ |
|
||||
|
|
||||
/* the signed version of size_t */ |
|
||||
/* #undef ssize_t */ |
|
@ -1,513 +0,0 @@ |
|||||
/* ares_config.h. Generated from ares_config.h.in by configure. */ |
|
||||
/* ares_config.h.in. Generated from configure.ac by autoheader. */ |
|
||||
|
|
||||
/* Define if building universal (internal helper macro) */ |
|
||||
/* #undef AC_APPLE_UNIVERSAL_BUILD */ |
|
||||
|
|
||||
/* define this if ares is built for a big endian system */ |
|
||||
/* #undef ARES_BIG_ENDIAN */ |
|
||||
|
|
||||
/* when building as static part of libcurl */ |
|
||||
/* #undef BUILDING_LIBCURL */ |
|
||||
|
|
||||
/* when building c-ares library */ |
|
||||
/* #undef CARES_BUILDING_LIBRARY */ |
|
||||
|
|
||||
/* when not building a shared library */ |
|
||||
/* #undef CARES_STATICLIB */ |
|
||||
|
|
||||
/* Define to 1 to enable hiding of library internal symbols. */ |
|
||||
#define CARES_SYMBOL_HIDING 1 |
|
||||
|
|
||||
/* Definition to make a library symbol externally visible. */ |
|
||||
#define CARES_SYMBOL_SCOPE_EXTERN __attribute__ ((visibility ("default"))) |
|
||||
|
|
||||
/* if a /etc/inet dir is being used */ |
|
||||
/* #undef ETC_INET */ |
|
||||
|
|
||||
/* Define to the type qualifier of arg 1 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_QUAL_ARG1 const |
|
||||
|
|
||||
/* Define to the type of arg 1 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG1 struct sockaddr * |
|
||||
|
|
||||
/* Define to the type of arg 2 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG2 socklen_t |
|
||||
|
|
||||
/* Define to the type of args 4 and 6 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG46 socklen_t |
|
||||
|
|
||||
/* Define to the type of arg 7 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG7 int |
|
||||
|
|
||||
/* Specifies the number of arguments to getservbyport_r */ |
|
||||
/* #undef GETSERVBYPORT_R_ARGS */ |
|
||||
|
|
||||
/* Specifies the size of the buffer to pass to getservbyport_r */ |
|
||||
/* #undef GETSERVBYPORT_R_BUFSIZE */ |
|
||||
|
|
||||
/* Define to 1 if you have AF_INET6. */ |
|
||||
#define HAVE_AF_INET6 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/inet.h> header file. */ |
|
||||
#define HAVE_ARPA_INET_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/nameser_compat.h> header file. */ |
|
||||
#define HAVE_ARPA_NAMESER_COMPAT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/nameser.h> header file. */ |
|
||||
#define HAVE_ARPA_NAMESER_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <assert.h> header file. */ |
|
||||
#define HAVE_ASSERT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `bitncmp' function. */ |
|
||||
/* #undef HAVE_BITNCMP */ |
|
||||
|
|
||||
/* Define to 1 if bool is an available type. */ |
|
||||
#define HAVE_BOOL_T 1 |
|
||||
|
|
||||
/* Define to 1 if you have the clock_gettime function and monotonic timer. */ |
|
||||
/* #undef HAVE_CLOCK_GETTIME_MONOTONIC */ |
|
||||
|
|
||||
/* Define to 1 if you have the closesocket function. */ |
|
||||
/* #undef HAVE_CLOSESOCKET */ |
|
||||
|
|
||||
/* Define to 1 if you have the CloseSocket camel case function. */ |
|
||||
/* #undef HAVE_CLOSESOCKET_CAMEL */ |
|
||||
|
|
||||
/* Define to 1 if you have the connect function. */ |
|
||||
#define HAVE_CONNECT 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */ |
|
||||
#define HAVE_DLFCN_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <errno.h> header file. */ |
|
||||
#define HAVE_ERRNO_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the fcntl function. */ |
|
||||
#define HAVE_FCNTL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <fcntl.h> header file. */ |
|
||||
#define HAVE_FCNTL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working fcntl O_NONBLOCK function. */ |
|
||||
#define HAVE_FCNTL_O_NONBLOCK 1 |
|
||||
|
|
||||
/* Define to 1 if you have the freeaddrinfo function. */ |
|
||||
#define HAVE_FREEADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working getaddrinfo function. */ |
|
||||
#define HAVE_GETADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if the getaddrinfo function is threadsafe. */ |
|
||||
#define HAVE_GETADDRINFO_THREADSAFE 1 |
|
||||
|
|
||||
/* Define to 1 if you have the gethostbyaddr function. */ |
|
||||
#define HAVE_GETHOSTBYADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have the gethostbyname function. */ |
|
||||
#define HAVE_GETHOSTBYNAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the gethostname function. */ |
|
||||
#define HAVE_GETHOSTNAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the getnameinfo function. */ |
|
||||
#define HAVE_GETNAMEINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have the getservbyport_r function. */ |
|
||||
/* #undef HAVE_GETSERVBYPORT_R */ |
|
||||
|
|
||||
/* Define to 1 if you have the `gettimeofday' function. */ |
|
||||
#define HAVE_GETTIMEOFDAY 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `if_indextoname' function. */ |
|
||||
#define HAVE_IF_INDEXTONAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `inet_net_pton' function. */ |
|
||||
#define HAVE_INET_NET_PTON 1 |
|
||||
|
|
||||
/* Define to 1 if inet_net_pton supports IPv6. */ |
|
||||
#define HAVE_INET_NET_PTON_IPV6 1 |
|
||||
|
|
||||
/* Define to 1 if you have a IPv6 capable working inet_ntop function. */ |
|
||||
#define HAVE_INET_NTOP 1 |
|
||||
|
|
||||
/* Define to 1 if you have a IPv6 capable working inet_pton function. */ |
|
||||
#define HAVE_INET_PTON 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */ |
|
||||
#define HAVE_INTTYPES_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ioctl function. */ |
|
||||
#define HAVE_IOCTL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ioctlsocket function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET */ |
|
||||
|
|
||||
/* Define to 1 if you have the IoctlSocket camel case function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET_CAMEL */ |
|
||||
|
|
||||
/* Define to 1 if you have a working IoctlSocket camel case FIONBIO function.
|
|
||||
*/ |
|
||||
/* #undef HAVE_IOCTLSOCKET_CAMEL_FIONBIO */ |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctlsocket FIONBIO function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET_FIONBIO */ |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctl FIONBIO function. */ |
|
||||
#define HAVE_IOCTL_FIONBIO 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctl SIOCGIFADDR function. */ |
|
||||
#define HAVE_IOCTL_SIOCGIFADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `resolve' library (-lresolve). */ |
|
||||
/* #undef HAVE_LIBRESOLVE */ |
|
||||
|
|
||||
/* Define to 1 if you have the <limits.h> header file. */ |
|
||||
#define HAVE_LIMITS_H 1 |
|
||||
|
|
||||
/* if your compiler supports LL */ |
|
||||
#define HAVE_LL 1 |
|
||||
|
|
||||
/* Define to 1 if the compiler supports the 'long long' data type. */ |
|
||||
#define HAVE_LONGLONG 1 |
|
||||
|
|
||||
/* Define to 1 if you have the malloc.h header file. */ |
|
||||
/* #undef HAVE_MALLOC_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the memory.h header file. */ |
|
||||
#define HAVE_MEMORY_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the MSG_NOSIGNAL flag. */ |
|
||||
/* #undef HAVE_MSG_NOSIGNAL */ |
|
||||
|
|
||||
/* Define to 1 if you have the <netdb.h> header file. */ |
|
||||
#define HAVE_NETDB_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <netinet/in.h> header file. */ |
|
||||
#define HAVE_NETINET_IN_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <netinet/tcp.h> header file. */ |
|
||||
#define HAVE_NETINET_TCP_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <net/if.h> header file. */ |
|
||||
#define HAVE_NET_IF_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have PF_INET6. */ |
|
||||
#define HAVE_PF_INET6 1 |
|
||||
|
|
||||
/* Define to 1 if you have the recv function. */ |
|
||||
#define HAVE_RECV 1 |
|
||||
|
|
||||
/* Define to 1 if you have the recvfrom function. */ |
|
||||
#define HAVE_RECVFROM 1 |
|
||||
|
|
||||
/* Define to 1 if you have the send function. */ |
|
||||
#define HAVE_SEND 1 |
|
||||
|
|
||||
/* Define to 1 if you have the setsockopt function. */ |
|
||||
#define HAVE_SETSOCKOPT 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working setsockopt SO_NONBLOCK function. */ |
|
||||
/* #undef HAVE_SETSOCKOPT_SO_NONBLOCK */ |
|
||||
|
|
||||
/* Define to 1 if you have the <signal.h> header file. */ |
|
||||
#define HAVE_SIGNAL_H 1 |
|
||||
|
|
||||
/* Define to 1 if sig_atomic_t is an available typedef. */ |
|
||||
#define HAVE_SIG_ATOMIC_T 1 |
|
||||
|
|
||||
/* Define to 1 if sig_atomic_t is already defined as volatile. */ |
|
||||
/* #undef HAVE_SIG_ATOMIC_T_VOLATILE */ |
|
||||
|
|
||||
/* Define to 1 if your struct sockaddr_in6 has sin6_scope_id. */ |
|
||||
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
|
||||
|
|
||||
/* Define to 1 if you have the socket function. */ |
|
||||
#define HAVE_SOCKET 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <socket.h> header file. */ |
|
||||
/* #undef HAVE_SOCKET_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the <stdbool.h> header file. */ |
|
||||
#define HAVE_STDBOOL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <stdint.h> header file. */ |
|
||||
#define HAVE_STDINT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */ |
|
||||
#define HAVE_STDLIB_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strcasecmp function. */ |
|
||||
#define HAVE_STRCASECMP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strcmpi function. */ |
|
||||
/* #undef HAVE_STRCMPI */ |
|
||||
|
|
||||
/* Define to 1 if you have the strdup function. */ |
|
||||
#define HAVE_STRDUP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the stricmp function. */ |
|
||||
/* #undef HAVE_STRICMP */ |
|
||||
|
|
||||
/* Define to 1 if you have the <strings.h> header file. */ |
|
||||
#define HAVE_STRINGS_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <string.h> header file. */ |
|
||||
#define HAVE_STRING_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strncasecmp function. */ |
|
||||
#define HAVE_STRNCASECMP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strncmpi function. */ |
|
||||
/* #undef HAVE_STRNCMPI */ |
|
||||
|
|
||||
/* Define to 1 if you have the strnicmp function. */ |
|
||||
/* #undef HAVE_STRNICMP */ |
|
||||
|
|
||||
/* Define to 1 if you have the <stropts.h> header file. */ |
|
||||
/* #undef HAVE_STROPTS_H */ |
|
||||
|
|
||||
/* Define to 1 if you have struct addrinfo. */ |
|
||||
#define HAVE_STRUCT_ADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have struct in6_addr. */ |
|
||||
#define HAVE_STRUCT_IN6_ADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have struct sockaddr_in6. */ |
|
||||
#define HAVE_STRUCT_SOCKADDR_IN6 1 |
|
||||
|
|
||||
/* if struct sockaddr_storage is defined */ |
|
||||
#define HAVE_STRUCT_SOCKADDR_STORAGE 1 |
|
||||
|
|
||||
/* Define to 1 if you have the timeval struct. */ |
|
||||
#define HAVE_STRUCT_TIMEVAL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/ioctl.h> header file. */ |
|
||||
#define HAVE_SYS_IOCTL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/param.h> header file. */ |
|
||||
#define HAVE_SYS_PARAM_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/select.h> header file. */ |
|
||||
#define HAVE_SYS_SELECT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/socket.h> header file. */ |
|
||||
#define HAVE_SYS_SOCKET_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */ |
|
||||
#define HAVE_SYS_STAT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/time.h> header file. */ |
|
||||
#define HAVE_SYS_TIME_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */ |
|
||||
#define HAVE_SYS_TYPES_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/uio.h> header file. */ |
|
||||
#define HAVE_SYS_UIO_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <time.h> header file. */ |
|
||||
#define HAVE_TIME_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <unistd.h> header file. */ |
|
||||
#define HAVE_UNISTD_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the windows.h header file. */ |
|
||||
/* #undef HAVE_WINDOWS_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the winsock2.h header file. */ |
|
||||
/* #undef HAVE_WINSOCK2_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the winsock.h header file. */ |
|
||||
/* #undef HAVE_WINSOCK_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the writev function. */ |
|
||||
#define HAVE_WRITEV 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ws2tcpip.h header file. */ |
|
||||
/* #undef HAVE_WS2TCPIP_H */ |
|
||||
|
|
||||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
|
||||
*/ |
|
||||
#define LT_OBJDIR ".libs/" |
|
||||
|
|
||||
/* Define to 1 if you are building a native Windows target. */ |
|
||||
/* #undef NATIVE_WINDOWS */ |
|
||||
|
|
||||
/* Define to 1 if you need the malloc.h header file even with stdlib.h */ |
|
||||
/* #undef NEED_MALLOC_H */ |
|
||||
|
|
||||
/* Define to 1 if you need the memory.h header file even with stdlib.h */ |
|
||||
/* #undef NEED_MEMORY_H */ |
|
||||
|
|
||||
/* Define to 1 if _REENTRANT preprocessor symbol must be defined. */ |
|
||||
/* #undef NEED_REENTRANT */ |
|
||||
|
|
||||
/* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */ |
|
||||
/* #undef NEED_THREAD_SAFE */ |
|
||||
|
|
||||
/* Define to 1 if your C compiler doesn't accept -c and -o together. */ |
|
||||
/* #undef NO_MINUS_C_MINUS_O */ |
|
||||
|
|
||||
/* cpu-machine-OS */ |
|
||||
#define OS "i386-apple-darwin9.8.0" |
|
||||
|
|
||||
/* Name of package */ |
|
||||
#define PACKAGE "c-ares" |
|
||||
|
|
||||
/* Define to the address where bug reports for this package should be sent. */ |
|
||||
#define PACKAGE_BUGREPORT "c-ares mailing list => http://cool.haxx.se/mailman/listinfo/c-ares"
|
|
||||
|
|
||||
/* Define to the full name of this package. */ |
|
||||
#define PACKAGE_NAME "c-ares" |
|
||||
|
|
||||
/* Define to the full name and version of this package. */ |
|
||||
#define PACKAGE_STRING "c-ares 1.7.1" |
|
||||
|
|
||||
/* Define to the one symbol short name of this package. */ |
|
||||
#define PACKAGE_TARNAME "c-ares" |
|
||||
|
|
||||
/* Define to the home page for this package. */ |
|
||||
#define PACKAGE_URL "" |
|
||||
|
|
||||
/* Define to the version of this package. */ |
|
||||
#define PACKAGE_VERSION "1.7.1" |
|
||||
|
|
||||
/* a suitable file/device to read random data from */ |
|
||||
#define RANDOM_FILE "/dev/urandom" |
|
||||
|
|
||||
/* Define to the type of arg 1 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG1 int |
|
||||
|
|
||||
/* Define to the type pointed by arg 2 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG2 void |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 2 for recvfrom is void. */ |
|
||||
#define RECVFROM_TYPE_ARG2_IS_VOID 1 |
|
||||
|
|
||||
/* Define to the type of arg 3 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG3 size_t |
|
||||
|
|
||||
/* Define to the type of arg 4 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the type pointed by arg 5 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG5 struct sockaddr |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 5 for recvfrom is void. */ |
|
||||
/* #undef RECVFROM_TYPE_ARG5_IS_VOID */ |
|
||||
|
|
||||
/* Define to the type pointed by arg 6 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG6 socklen_t |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 6 for recvfrom is void. */ |
|
||||
/* #undef RECVFROM_TYPE_ARG6_IS_VOID */ |
|
||||
|
|
||||
/* Define to the function return type for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_RETV ssize_t |
|
||||
|
|
||||
/* Define to the type of arg 1 for recv. */ |
|
||||
#define RECV_TYPE_ARG1 int |
|
||||
|
|
||||
/* Define to the type of arg 2 for recv. */ |
|
||||
#define RECV_TYPE_ARG2 void * |
|
||||
|
|
||||
/* Define to the type of arg 3 for recv. */ |
|
||||
#define RECV_TYPE_ARG3 size_t |
|
||||
|
|
||||
/* Define to the type of arg 4 for recv. */ |
|
||||
#define RECV_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the function return type for recv. */ |
|
||||
#define RECV_TYPE_RETV ssize_t |
|
||||
|
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */ |
|
||||
#define RETSIGTYPE void |
|
||||
|
|
||||
/* Define to the type qualifier of arg 2 for send. */ |
|
||||
#define SEND_QUAL_ARG2 const |
|
||||
|
|
||||
/* Define to the type of arg 1 for send. */ |
|
||||
#define SEND_TYPE_ARG1 int |
|
||||
|
|
||||
/* Define to the type of arg 2 for send. */ |
|
||||
#define SEND_TYPE_ARG2 void * |
|
||||
|
|
||||
/* Define to the type of arg 3 for send. */ |
|
||||
#define SEND_TYPE_ARG3 size_t |
|
||||
|
|
||||
/* Define to the type of arg 4 for send. */ |
|
||||
#define SEND_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the function return type for send. */ |
|
||||
#define SEND_TYPE_RETV ssize_t |
|
||||
|
|
||||
/* The size of `int', as computed by sizeof. */ |
|
||||
#define SIZEOF_INT 4 |
|
||||
|
|
||||
/* The size of `long', as computed by sizeof. */ |
|
||||
#define SIZEOF_LONG 4 |
|
||||
|
|
||||
/* The size of `size_t', as computed by sizeof. */ |
|
||||
#define SIZEOF_SIZE_T 4 |
|
||||
|
|
||||
/* The size of `struct in6_addr', as computed by sizeof. */ |
|
||||
#define SIZEOF_STRUCT_IN6_ADDR 16 |
|
||||
|
|
||||
/* The size of `struct in_addr', as computed by sizeof. */ |
|
||||
#define SIZEOF_STRUCT_IN_ADDR 4 |
|
||||
|
|
||||
/* The size of `time_t', as computed by sizeof. */ |
|
||||
#define SIZEOF_TIME_T 4 |
|
||||
|
|
||||
/* Define to 1 if you have the ANSI C header files. */ |
|
||||
#define STDC_HEADERS 1 |
|
||||
|
|
||||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ |
|
||||
#define TIME_WITH_SYS_TIME 1 |
|
||||
|
|
||||
/* Define to disable non-blocking sockets. */ |
|
||||
/* #undef USE_BLOCKING_SOCKETS */ |
|
||||
|
|
||||
/* Version number of package */ |
|
||||
#define VERSION "1.7.1" |
|
||||
|
|
||||
/* Define to avoid automatic inclusion of winsock.h */ |
|
||||
/* #undef WIN32_LEAN_AND_MEAN */ |
|
||||
|
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
|
||||
significant byte first (like Motorola and SPARC, unlike Intel). */ |
|
||||
#if defined AC_APPLE_UNIVERSAL_BUILD |
|
||||
# if defined __BIG_ENDIAN__ |
|
||||
# define WORDS_BIGENDIAN 1 |
|
||||
# endif |
|
||||
#else |
|
||||
# ifndef WORDS_BIGENDIAN |
|
||||
/* # undef WORDS_BIGENDIAN */ |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/* Define to 1 if OS is AIX. */ |
|
||||
#ifndef _ALL_SOURCE |
|
||||
/* # undef _ALL_SOURCE */ |
|
||||
#endif |
|
||||
|
|
||||
/* Number of bits in a file offset, on hosts where this is settable. */ |
|
||||
/* #undef _FILE_OFFSET_BITS */ |
|
||||
|
|
||||
/* Define for large files, on AIX-style hosts. */ |
|
||||
/* #undef _LARGE_FILES */ |
|
||||
|
|
||||
/* Define to empty if `const' does not conform to ANSI C. */ |
|
||||
/* #undef const */ |
|
||||
|
|
||||
/* Type to use in place of in_addr_t when system does not provide it. */ |
|
||||
/* #undef in_addr_t */ |
|
||||
|
|
||||
/* Define to `unsigned int' if <sys/types.h> does not define. */ |
|
||||
/* #undef size_t */ |
|
||||
|
|
||||
/* the signed version of size_t */ |
|
||||
/* #undef ssize_t */ |
|
@ -1,198 +0,0 @@ |
|||||
#ifndef HEADER_CARES_SETUP_H |
|
||||
#define HEADER_CARES_SETUP_H |
|
||||
|
|
||||
/* $Id$ */ |
|
||||
|
|
||||
/* Copyright (C) 2004 - 2009 by Daniel Stenberg et al
|
|
||||
* |
|
||||
* Permission to use, copy, modify, and distribute this software and its |
|
||||
* documentation for any purpose and without fee is hereby granted, provided |
|
||||
* that the above copyright notice appear in all copies and that both that |
|
||||
* copyright notice and this permission notice appear in supporting |
|
||||
* documentation, and that the name of M.I.T. not be used in advertising or |
|
||||
* publicity pertaining to distribution of the software without specific, |
|
||||
* written prior permission. M.I.T. makes no representations about the |
|
||||
* suitability of this software for any purpose. It is provided "as is" |
|
||||
* without express or implied warranty. |
|
||||
*/ |
|
||||
|
|
||||
/*
|
|
||||
* Define WIN32 when build target is Win32 API |
|
||||
*/ |
|
||||
|
|
||||
#if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32) |
|
||||
#define WIN32 |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Include configuration script results or hand-crafted |
|
||||
* configuration file for platforms which lack config tool. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef HAVE_CONFIG_H |
|
||||
#include "ares_config.h" |
|
||||
#else |
|
||||
|
|
||||
#ifdef WIN32 |
|
||||
#include "config-win32.h" |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HAVE_CONFIG_H */ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* Definition of preprocessor macros/symbols which modify compiler */ |
|
||||
/* behaviour or generated code characteristics must be done here, */ |
|
||||
/* as appropriate, before any system header file is included. It is */ |
|
||||
/* also possible to have them defined in the config file included */ |
|
||||
/* before this point. As a result of all this we frown inclusion of */ |
|
||||
/* system header files in our config files, avoid this at any cost. */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* AIX 4.3 and newer needs _THREAD_SAFE defined to build |
|
||||
* proper reentrant code. Others may also need it. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef NEED_THREAD_SAFE |
|
||||
# ifndef _THREAD_SAFE |
|
||||
# define _THREAD_SAFE |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Tru64 needs _REENTRANT set for a few function prototypes and |
|
||||
* things to appear in the system header files. Unixware needs it |
|
||||
* to build proper reentrant code. Others may also need it. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef NEED_REENTRANT |
|
||||
# ifndef _REENTRANT |
|
||||
# define _REENTRANT |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* If you need to include a system header file for your platform, */ |
|
||||
/* please, do it beyond the point further indicated in this file. */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* c-ares external interface definitions are also used internally, |
|
||||
* and might also include required system header files to define them. |
|
||||
*/ |
|
||||
|
|
||||
#include <ares_build.h> |
|
||||
|
|
||||
/*
|
|
||||
* Compile time sanity checks must also be done when building the library. |
|
||||
*/ |
|
||||
|
|
||||
#include <ares_rules.h> |
|
||||
|
|
||||
/* ================================================================= */ |
|
||||
/* No system header file shall be included in this file before this */ |
|
||||
/* point. The only allowed ones are those included from ares_build.h */ |
|
||||
/* ================================================================= */ |
|
||||
|
|
||||
/*
|
|
||||
* Include header files for windows builds before redefining anything. |
|
||||
* Use this preproessor block only to include or exclude windows.h, |
|
||||
* winsock2.h, ws2tcpip.h or winsock.h. Any other windows thing belongs |
|
||||
* to any other further and independent block. Under Cygwin things work |
|
||||
* just as under linux (e.g. <sys/socket.h>) and the winsock headers should |
|
||||
* never be included when __CYGWIN__ is defined. configure script takes |
|
||||
* care of this, not defining HAVE_WINDOWS_H, HAVE_WINSOCK_H, HAVE_WINSOCK2_H, |
|
||||
* neither HAVE_WS2TCPIP_H when __CYGWIN__ is defined. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef HAVE_WINDOWS_H |
|
||||
# ifndef WIN32_LEAN_AND_MEAN |
|
||||
# define WIN32_LEAN_AND_MEAN |
|
||||
# endif |
|
||||
# include <windows.h> |
|
||||
# ifdef HAVE_WINSOCK2_H |
|
||||
# include <winsock2.h> |
|
||||
# ifdef HAVE_WS2TCPIP_H |
|
||||
# include <ws2tcpip.h> |
|
||||
# endif |
|
||||
# else |
|
||||
# ifdef HAVE_WINSOCK_H |
|
||||
# include <winsock.h> |
|
||||
# endif |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Define USE_WINSOCK to 2 if we have and use WINSOCK2 API, else |
|
||||
* define USE_WINSOCK to 1 if we have and use WINSOCK API, else |
|
||||
* undefine USE_WINSOCK. |
|
||||
*/ |
|
||||
|
|
||||
#undef USE_WINSOCK |
|
||||
|
|
||||
#ifdef HAVE_WINSOCK2_H |
|
||||
# define USE_WINSOCK 2 |
|
||||
#else |
|
||||
# ifdef HAVE_WINSOCK_H |
|
||||
# define USE_WINSOCK 1 |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Work-arounds for systems without configure support |
|
||||
*/ |
|
||||
|
|
||||
#ifndef HAVE_CONFIG_H |
|
||||
|
|
||||
#if !defined(HAVE_SYS_TIME_H) && !defined(_MSC_VER) && !defined(__WATCOMC__) |
|
||||
#define HAVE_SYS_TIME_H |
|
||||
#endif |
|
||||
|
|
||||
#if !defined(HAVE_UNISTD_H) && !defined(_MSC_VER) |
|
||||
#define HAVE_UNISTD_H 1 |
|
||||
#endif |
|
||||
|
|
||||
#if !defined(HAVE_SYS_UIO_H) && !defined(WIN32) && !defined(MSDOS) |
|
||||
#define HAVE_SYS_UIO_H |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HAVE_CONFIG_H */ |
|
||||
|
|
||||
#ifdef __POCC__ |
|
||||
# include <sys/types.h> |
|
||||
# include <unistd.h> |
|
||||
# define ESRCH 3 |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Recent autoconf versions define these symbols in ares_config.h. We don't |
|
||||
* want them (since they collide with the libcurl ones when we build |
|
||||
* --enable-debug) so we undef them again here. |
|
||||
*/ |
|
||||
|
|
||||
#undef PACKAGE_STRING |
|
||||
#undef PACKAGE_TARNAME |
|
||||
#undef PACKAGE_VERSION |
|
||||
#undef PACKAGE_BUGREPORT |
|
||||
#undef PACKAGE_NAME |
|
||||
#undef VERSION |
|
||||
#undef PACKAGE |
|
||||
|
|
||||
/* IPv6 compatibility */ |
|
||||
#if !defined(HAVE_AF_INET6) |
|
||||
#if defined(HAVE_PF_INET6) |
|
||||
#define AF_INET6 PF_INET6 |
|
||||
#else |
|
||||
#define AF_INET6 AF_MAX+1 |
|
||||
#endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Include macros and defines that should only be processed once. |
|
||||
*/ |
|
||||
|
|
||||
#ifndef __SETUP_ONCE_H |
|
||||
#include "setup_once.h" |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HEADER_CARES_SETUP_H */ |
|
@ -1,112 +0,0 @@ |
|||||
/* ares_build.h. Generated from ares_build.h.in by configure. */ |
|
||||
#ifndef __CARES_BUILD_H |
|
||||
#define __CARES_BUILD_H |
|
||||
|
|
||||
/* $Id$ */ |
|
||||
|
|
||||
/* Copyright (C) 2009 by Daniel Stenberg et al
|
|
||||
* |
|
||||
* Permission to use, copy, modify, and distribute this software and its |
|
||||
* documentation for any purpose and without fee is hereby granted, provided |
|
||||
* that the above copyright notice appear in all copies and that both that |
|
||||
* copyright notice and this permission notice appear in supporting |
|
||||
* documentation, and that the name of M.I.T. not be used in advertising or |
|
||||
* publicity pertaining to distribution of the software without specific, |
|
||||
* written prior permission. M.I.T. makes no representations about the |
|
||||
* suitability of this software for any purpose. It is provided "as is" |
|
||||
* without express or implied warranty. |
|
||||
*/ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* NOTES FOR CONFIGURE CAPABLE SYSTEMS */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* NOTE 1: |
|
||||
* ------- |
|
||||
* |
|
||||
* Nothing in this file is intended to be modified or adjusted by the |
|
||||
* c-ares library user nor by the c-ares library builder. |
|
||||
* |
|
||||
* If you think that something actually needs to be changed, adjusted |
|
||||
* or fixed in this file, then, report it on the c-ares development |
|
||||
* mailing list: http://cool.haxx.se/mailman/listinfo/c-ares/
|
|
||||
* |
|
||||
* This header file shall only export symbols which are 'cares' or 'CARES' |
|
||||
* prefixed, otherwise public name space would be polluted. |
|
||||
* |
|
||||
* NOTE 2: |
|
||||
* ------- |
|
||||
* |
|
||||
* Right now you might be staring at file ares_build.h.in or ares_build.h, |
|
||||
* this is due to the following reason: |
|
||||
* |
|
||||
* On systems capable of running the configure script, the configure process |
|
||||
* will overwrite the distributed ares_build.h file with one that is suitable |
|
||||
* and specific to the library being configured and built, which is generated |
|
||||
* from the ares_build.h.in template file. |
|
||||
* |
|
||||
*/ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
#ifdef CARES_SIZEOF_LONG |
|
||||
# error "CARES_SIZEOF_LONG shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_SIZEOF_LONG_already_defined |
|
||||
#endif |
|
||||
|
|
||||
#ifdef CARES_TYPEOF_ARES_SOCKLEN_T |
|
||||
# error "CARES_TYPEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_TYPEOF_ARES_SOCKLEN_T_already_defined |
|
||||
#endif |
|
||||
|
|
||||
#ifdef CARES_SIZEOF_ARES_SOCKLEN_T |
|
||||
# error "CARES_SIZEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_SIZEOF_ARES_SOCKLEN_T_already_defined |
|
||||
#endif |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* EXTERNAL INTERFACE SETTINGS FOR CONFIGURE CAPABLE SYSTEMS ONLY */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file ws2tcpip.h must be included by the external interface. */ |
|
||||
/* #undef CARES_PULL_WS2TCPIP_H */ |
|
||||
#ifdef CARES_PULL_WS2TCPIP_H |
|
||||
# ifndef WIN32_LEAN_AND_MEAN |
|
||||
# define WIN32_LEAN_AND_MEAN |
|
||||
# endif |
|
||||
# include <windows.h> |
|
||||
# include <winsock2.h> |
|
||||
# include <ws2tcpip.h> |
|
||||
#endif |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file sys/types.h must be included by the external interface. */ |
|
||||
#define CARES_PULL_SYS_TYPES_H 1 |
|
||||
#ifdef CARES_PULL_SYS_TYPES_H |
|
||||
# include <sys/types.h> |
|
||||
#endif |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file sys/socket.h must be included by the external interface. */ |
|
||||
#define CARES_PULL_SYS_SOCKET_H 1 |
|
||||
#ifdef CARES_PULL_SYS_SOCKET_H |
|
||||
# include <sys/socket.h> |
|
||||
#endif |
|
||||
|
|
||||
/* The size of `long', as computed by sizeof. */ |
|
||||
#define CARES_SIZEOF_LONG 8 |
|
||||
|
|
||||
/* Integral data type used for ares_socklen_t. */ |
|
||||
#define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t |
|
||||
|
|
||||
/* The size of `ares_socklen_t', as computed by sizeof. */ |
|
||||
#define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
|
||||
|
|
||||
/* Data type definition of ares_socklen_t. */ |
|
||||
typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t; |
|
||||
|
|
||||
#endif /* __CARES_BUILD_H */ |
|
@ -1,513 +0,0 @@ |
|||||
/* ares_config.h. Generated from ares_config.h.in by configure. */ |
|
||||
/* ares_config.h.in. Generated from configure.ac by autoheader. */ |
|
||||
|
|
||||
/* Define if building universal (internal helper macro) */ |
|
||||
/* #undef AC_APPLE_UNIVERSAL_BUILD */ |
|
||||
|
|
||||
/* define this if ares is built for a big endian system */ |
|
||||
/* #undef ARES_BIG_ENDIAN */ |
|
||||
|
|
||||
/* when building as static part of libcurl */ |
|
||||
/* #undef BUILDING_LIBCURL */ |
|
||||
|
|
||||
/* when building c-ares library */ |
|
||||
/* #undef CARES_BUILDING_LIBRARY */ |
|
||||
|
|
||||
/* when not building a shared library */ |
|
||||
/* #undef CARES_STATICLIB */ |
|
||||
|
|
||||
/* Define to 1 to enable hiding of library internal symbols. */ |
|
||||
#define CARES_SYMBOL_HIDING 1 |
|
||||
|
|
||||
/* Definition to make a library symbol externally visible. */ |
|
||||
#define CARES_SYMBOL_SCOPE_EXTERN __attribute__ ((visibility ("default"))) |
|
||||
|
|
||||
/* if a /etc/inet dir is being used */ |
|
||||
/* #undef ETC_INET */ |
|
||||
|
|
||||
/* Define to the type qualifier of arg 1 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_QUAL_ARG1 const |
|
||||
|
|
||||
/* Define to the type of arg 1 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG1 struct sockaddr * |
|
||||
|
|
||||
/* Define to the type of arg 2 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG2 socklen_t |
|
||||
|
|
||||
/* Define to the type of args 4 and 6 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG46 socklen_t |
|
||||
|
|
||||
/* Define to the type of arg 7 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG7 int |
|
||||
|
|
||||
/* Specifies the number of arguments to getservbyport_r */ |
|
||||
/* #undef GETSERVBYPORT_R_ARGS */ |
|
||||
|
|
||||
/* Specifies the size of the buffer to pass to getservbyport_r */ |
|
||||
/* #undef GETSERVBYPORT_R_BUFSIZE */ |
|
||||
|
|
||||
/* Define to 1 if you have AF_INET6. */ |
|
||||
#define HAVE_AF_INET6 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/inet.h> header file. */ |
|
||||
#define HAVE_ARPA_INET_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/nameser_compat.h> header file. */ |
|
||||
#define HAVE_ARPA_NAMESER_COMPAT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/nameser.h> header file. */ |
|
||||
#define HAVE_ARPA_NAMESER_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <assert.h> header file. */ |
|
||||
#define HAVE_ASSERT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `bitncmp' function. */ |
|
||||
/* #undef HAVE_BITNCMP */ |
|
||||
|
|
||||
/* Define to 1 if bool is an available type. */ |
|
||||
#define HAVE_BOOL_T 1 |
|
||||
|
|
||||
/* Define to 1 if you have the clock_gettime function and monotonic timer. */ |
|
||||
/* #undef HAVE_CLOCK_GETTIME_MONOTONIC */ |
|
||||
|
|
||||
/* Define to 1 if you have the closesocket function. */ |
|
||||
/* #undef HAVE_CLOSESOCKET */ |
|
||||
|
|
||||
/* Define to 1 if you have the CloseSocket camel case function. */ |
|
||||
/* #undef HAVE_CLOSESOCKET_CAMEL */ |
|
||||
|
|
||||
/* Define to 1 if you have the connect function. */ |
|
||||
#define HAVE_CONNECT 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */ |
|
||||
#define HAVE_DLFCN_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <errno.h> header file. */ |
|
||||
#define HAVE_ERRNO_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the fcntl function. */ |
|
||||
#define HAVE_FCNTL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <fcntl.h> header file. */ |
|
||||
#define HAVE_FCNTL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working fcntl O_NONBLOCK function. */ |
|
||||
#define HAVE_FCNTL_O_NONBLOCK 1 |
|
||||
|
|
||||
/* Define to 1 if you have the freeaddrinfo function. */ |
|
||||
#define HAVE_FREEADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working getaddrinfo function. */ |
|
||||
#define HAVE_GETADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if the getaddrinfo function is threadsafe. */ |
|
||||
#define HAVE_GETADDRINFO_THREADSAFE 1 |
|
||||
|
|
||||
/* Define to 1 if you have the gethostbyaddr function. */ |
|
||||
#define HAVE_GETHOSTBYADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have the gethostbyname function. */ |
|
||||
#define HAVE_GETHOSTBYNAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the gethostname function. */ |
|
||||
#define HAVE_GETHOSTNAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the getnameinfo function. */ |
|
||||
#define HAVE_GETNAMEINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have the getservbyport_r function. */ |
|
||||
/* #undef HAVE_GETSERVBYPORT_R */ |
|
||||
|
|
||||
/* Define to 1 if you have the `gettimeofday' function. */ |
|
||||
#define HAVE_GETTIMEOFDAY 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `if_indextoname' function. */ |
|
||||
#define HAVE_IF_INDEXTONAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `inet_net_pton' function. */ |
|
||||
#define HAVE_INET_NET_PTON 1 |
|
||||
|
|
||||
/* Define to 1 if inet_net_pton supports IPv6. */ |
|
||||
#define HAVE_INET_NET_PTON_IPV6 1 |
|
||||
|
|
||||
/* Define to 1 if you have a IPv6 capable working inet_ntop function. */ |
|
||||
#define HAVE_INET_NTOP 1 |
|
||||
|
|
||||
/* Define to 1 if you have a IPv6 capable working inet_pton function. */ |
|
||||
#define HAVE_INET_PTON 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */ |
|
||||
#define HAVE_INTTYPES_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ioctl function. */ |
|
||||
#define HAVE_IOCTL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ioctlsocket function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET */ |
|
||||
|
|
||||
/* Define to 1 if you have the IoctlSocket camel case function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET_CAMEL */ |
|
||||
|
|
||||
/* Define to 1 if you have a working IoctlSocket camel case FIONBIO function.
|
|
||||
*/ |
|
||||
/* #undef HAVE_IOCTLSOCKET_CAMEL_FIONBIO */ |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctlsocket FIONBIO function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET_FIONBIO */ |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctl FIONBIO function. */ |
|
||||
#define HAVE_IOCTL_FIONBIO 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctl SIOCGIFADDR function. */ |
|
||||
#define HAVE_IOCTL_SIOCGIFADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `resolve' library (-lresolve). */ |
|
||||
/* #undef HAVE_LIBRESOLVE */ |
|
||||
|
|
||||
/* Define to 1 if you have the <limits.h> header file. */ |
|
||||
#define HAVE_LIMITS_H 1 |
|
||||
|
|
||||
/* if your compiler supports LL */ |
|
||||
#define HAVE_LL 1 |
|
||||
|
|
||||
/* Define to 1 if the compiler supports the 'long long' data type. */ |
|
||||
#define HAVE_LONGLONG 1 |
|
||||
|
|
||||
/* Define to 1 if you have the malloc.h header file. */ |
|
||||
/* #undef HAVE_MALLOC_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the memory.h header file. */ |
|
||||
#define HAVE_MEMORY_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the MSG_NOSIGNAL flag. */ |
|
||||
/* #undef HAVE_MSG_NOSIGNAL */ |
|
||||
|
|
||||
/* Define to 1 if you have the <netdb.h> header file. */ |
|
||||
#define HAVE_NETDB_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <netinet/in.h> header file. */ |
|
||||
#define HAVE_NETINET_IN_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <netinet/tcp.h> header file. */ |
|
||||
#define HAVE_NETINET_TCP_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <net/if.h> header file. */ |
|
||||
#define HAVE_NET_IF_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have PF_INET6. */ |
|
||||
#define HAVE_PF_INET6 1 |
|
||||
|
|
||||
/* Define to 1 if you have the recv function. */ |
|
||||
#define HAVE_RECV 1 |
|
||||
|
|
||||
/* Define to 1 if you have the recvfrom function. */ |
|
||||
#define HAVE_RECVFROM 1 |
|
||||
|
|
||||
/* Define to 1 if you have the send function. */ |
|
||||
#define HAVE_SEND 1 |
|
||||
|
|
||||
/* Define to 1 if you have the setsockopt function. */ |
|
||||
#define HAVE_SETSOCKOPT 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working setsockopt SO_NONBLOCK function. */ |
|
||||
/* #undef HAVE_SETSOCKOPT_SO_NONBLOCK */ |
|
||||
|
|
||||
/* Define to 1 if you have the <signal.h> header file. */ |
|
||||
#define HAVE_SIGNAL_H 1 |
|
||||
|
|
||||
/* Define to 1 if sig_atomic_t is an available typedef. */ |
|
||||
#define HAVE_SIG_ATOMIC_T 1 |
|
||||
|
|
||||
/* Define to 1 if sig_atomic_t is already defined as volatile. */ |
|
||||
/* #undef HAVE_SIG_ATOMIC_T_VOLATILE */ |
|
||||
|
|
||||
/* Define to 1 if your struct sockaddr_in6 has sin6_scope_id. */ |
|
||||
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
|
||||
|
|
||||
/* Define to 1 if you have the socket function. */ |
|
||||
#define HAVE_SOCKET 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <socket.h> header file. */ |
|
||||
/* #undef HAVE_SOCKET_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the <stdbool.h> header file. */ |
|
||||
#define HAVE_STDBOOL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <stdint.h> header file. */ |
|
||||
#define HAVE_STDINT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */ |
|
||||
#define HAVE_STDLIB_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strcasecmp function. */ |
|
||||
#define HAVE_STRCASECMP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strcmpi function. */ |
|
||||
/* #undef HAVE_STRCMPI */ |
|
||||
|
|
||||
/* Define to 1 if you have the strdup function. */ |
|
||||
#define HAVE_STRDUP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the stricmp function. */ |
|
||||
/* #undef HAVE_STRICMP */ |
|
||||
|
|
||||
/* Define to 1 if you have the <strings.h> header file. */ |
|
||||
#define HAVE_STRINGS_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <string.h> header file. */ |
|
||||
#define HAVE_STRING_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strncasecmp function. */ |
|
||||
#define HAVE_STRNCASECMP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strncmpi function. */ |
|
||||
/* #undef HAVE_STRNCMPI */ |
|
||||
|
|
||||
/* Define to 1 if you have the strnicmp function. */ |
|
||||
/* #undef HAVE_STRNICMP */ |
|
||||
|
|
||||
/* Define to 1 if you have the <stropts.h> header file. */ |
|
||||
/* #undef HAVE_STROPTS_H */ |
|
||||
|
|
||||
/* Define to 1 if you have struct addrinfo. */ |
|
||||
#define HAVE_STRUCT_ADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have struct in6_addr. */ |
|
||||
#define HAVE_STRUCT_IN6_ADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have struct sockaddr_in6. */ |
|
||||
#define HAVE_STRUCT_SOCKADDR_IN6 1 |
|
||||
|
|
||||
/* if struct sockaddr_storage is defined */ |
|
||||
#define HAVE_STRUCT_SOCKADDR_STORAGE 1 |
|
||||
|
|
||||
/* Define to 1 if you have the timeval struct. */ |
|
||||
#define HAVE_STRUCT_TIMEVAL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/ioctl.h> header file. */ |
|
||||
#define HAVE_SYS_IOCTL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/param.h> header file. */ |
|
||||
#define HAVE_SYS_PARAM_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/select.h> header file. */ |
|
||||
#define HAVE_SYS_SELECT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/socket.h> header file. */ |
|
||||
#define HAVE_SYS_SOCKET_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */ |
|
||||
#define HAVE_SYS_STAT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/time.h> header file. */ |
|
||||
#define HAVE_SYS_TIME_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */ |
|
||||
#define HAVE_SYS_TYPES_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/uio.h> header file. */ |
|
||||
#define HAVE_SYS_UIO_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <time.h> header file. */ |
|
||||
#define HAVE_TIME_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <unistd.h> header file. */ |
|
||||
#define HAVE_UNISTD_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the windows.h header file. */ |
|
||||
/* #undef HAVE_WINDOWS_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the winsock2.h header file. */ |
|
||||
/* #undef HAVE_WINSOCK2_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the winsock.h header file. */ |
|
||||
/* #undef HAVE_WINSOCK_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the writev function. */ |
|
||||
#define HAVE_WRITEV 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ws2tcpip.h header file. */ |
|
||||
/* #undef HAVE_WS2TCPIP_H */ |
|
||||
|
|
||||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
|
||||
*/ |
|
||||
#define LT_OBJDIR ".libs/" |
|
||||
|
|
||||
/* Define to 1 if you are building a native Windows target. */ |
|
||||
/* #undef NATIVE_WINDOWS */ |
|
||||
|
|
||||
/* Define to 1 if you need the malloc.h header file even with stdlib.h */ |
|
||||
/* #undef NEED_MALLOC_H */ |
|
||||
|
|
||||
/* Define to 1 if you need the memory.h header file even with stdlib.h */ |
|
||||
/* #undef NEED_MEMORY_H */ |
|
||||
|
|
||||
/* Define to 1 if _REENTRANT preprocessor symbol must be defined. */ |
|
||||
/* #undef NEED_REENTRANT */ |
|
||||
|
|
||||
/* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */ |
|
||||
/* #undef NEED_THREAD_SAFE */ |
|
||||
|
|
||||
/* Define to 1 if your C compiler doesn't accept -c and -o together. */ |
|
||||
/* #undef NO_MINUS_C_MINUS_O */ |
|
||||
|
|
||||
/* cpu-machine-OS */ |
|
||||
#define OS "x86_64-apple-darwin10.3.0" |
|
||||
|
|
||||
/* Name of package */ |
|
||||
#define PACKAGE "c-ares" |
|
||||
|
|
||||
/* Define to the address where bug reports for this package should be sent. */ |
|
||||
#define PACKAGE_BUGREPORT "c-ares mailing list => http://cool.haxx.se/mailman/listinfo/c-ares"
|
|
||||
|
|
||||
/* Define to the full name of this package. */ |
|
||||
#define PACKAGE_NAME "c-ares" |
|
||||
|
|
||||
/* Define to the full name and version of this package. */ |
|
||||
#define PACKAGE_STRING "c-ares 1.7.1" |
|
||||
|
|
||||
/* Define to the one symbol short name of this package. */ |
|
||||
#define PACKAGE_TARNAME "c-ares" |
|
||||
|
|
||||
/* Define to the home page for this package. */ |
|
||||
#define PACKAGE_URL "" |
|
||||
|
|
||||
/* Define to the version of this package. */ |
|
||||
#define PACKAGE_VERSION "1.7.1" |
|
||||
|
|
||||
/* a suitable file/device to read random data from */ |
|
||||
#define RANDOM_FILE "/dev/urandom" |
|
||||
|
|
||||
/* Define to the type of arg 1 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG1 int |
|
||||
|
|
||||
/* Define to the type pointed by arg 2 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG2 void |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 2 for recvfrom is void. */ |
|
||||
#define RECVFROM_TYPE_ARG2_IS_VOID 1 |
|
||||
|
|
||||
/* Define to the type of arg 3 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG3 size_t |
|
||||
|
|
||||
/* Define to the type of arg 4 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the type pointed by arg 5 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG5 struct sockaddr |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 5 for recvfrom is void. */ |
|
||||
/* #undef RECVFROM_TYPE_ARG5_IS_VOID */ |
|
||||
|
|
||||
/* Define to the type pointed by arg 6 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG6 socklen_t |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 6 for recvfrom is void. */ |
|
||||
/* #undef RECVFROM_TYPE_ARG6_IS_VOID */ |
|
||||
|
|
||||
/* Define to the function return type for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_RETV ssize_t |
|
||||
|
|
||||
/* Define to the type of arg 1 for recv. */ |
|
||||
#define RECV_TYPE_ARG1 int |
|
||||
|
|
||||
/* Define to the type of arg 2 for recv. */ |
|
||||
#define RECV_TYPE_ARG2 void * |
|
||||
|
|
||||
/* Define to the type of arg 3 for recv. */ |
|
||||
#define RECV_TYPE_ARG3 size_t |
|
||||
|
|
||||
/* Define to the type of arg 4 for recv. */ |
|
||||
#define RECV_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the function return type for recv. */ |
|
||||
#define RECV_TYPE_RETV ssize_t |
|
||||
|
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */ |
|
||||
#define RETSIGTYPE void |
|
||||
|
|
||||
/* Define to the type qualifier of arg 2 for send. */ |
|
||||
#define SEND_QUAL_ARG2 const |
|
||||
|
|
||||
/* Define to the type of arg 1 for send. */ |
|
||||
#define SEND_TYPE_ARG1 int |
|
||||
|
|
||||
/* Define to the type of arg 2 for send. */ |
|
||||
#define SEND_TYPE_ARG2 void * |
|
||||
|
|
||||
/* Define to the type of arg 3 for send. */ |
|
||||
#define SEND_TYPE_ARG3 size_t |
|
||||
|
|
||||
/* Define to the type of arg 4 for send. */ |
|
||||
#define SEND_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the function return type for send. */ |
|
||||
#define SEND_TYPE_RETV ssize_t |
|
||||
|
|
||||
/* The size of `int', as computed by sizeof. */ |
|
||||
#define SIZEOF_INT 4 |
|
||||
|
|
||||
/* The size of `long', as computed by sizeof. */ |
|
||||
#define SIZEOF_LONG 8 |
|
||||
|
|
||||
/* The size of `size_t', as computed by sizeof. */ |
|
||||
#define SIZEOF_SIZE_T 8 |
|
||||
|
|
||||
/* The size of `struct in6_addr', as computed by sizeof. */ |
|
||||
#define SIZEOF_STRUCT_IN6_ADDR 16 |
|
||||
|
|
||||
/* The size of `struct in_addr', as computed by sizeof. */ |
|
||||
#define SIZEOF_STRUCT_IN_ADDR 4 |
|
||||
|
|
||||
/* The size of `time_t', as computed by sizeof. */ |
|
||||
#define SIZEOF_TIME_T 8 |
|
||||
|
|
||||
/* Define to 1 if you have the ANSI C header files. */ |
|
||||
#define STDC_HEADERS 1 |
|
||||
|
|
||||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ |
|
||||
#define TIME_WITH_SYS_TIME 1 |
|
||||
|
|
||||
/* Define to disable non-blocking sockets. */ |
|
||||
/* #undef USE_BLOCKING_SOCKETS */ |
|
||||
|
|
||||
/* Version number of package */ |
|
||||
#define VERSION "1.7.1" |
|
||||
|
|
||||
/* Define to avoid automatic inclusion of winsock.h */ |
|
||||
/* #undef WIN32_LEAN_AND_MEAN */ |
|
||||
|
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
|
||||
significant byte first (like Motorola and SPARC, unlike Intel). */ |
|
||||
#if defined AC_APPLE_UNIVERSAL_BUILD |
|
||||
# if defined __BIG_ENDIAN__ |
|
||||
# define WORDS_BIGENDIAN 1 |
|
||||
# endif |
|
||||
#else |
|
||||
# ifndef WORDS_BIGENDIAN |
|
||||
/* # undef WORDS_BIGENDIAN */ |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/* Define to 1 if OS is AIX. */ |
|
||||
#ifndef _ALL_SOURCE |
|
||||
/* # undef _ALL_SOURCE */ |
|
||||
#endif |
|
||||
|
|
||||
/* Number of bits in a file offset, on hosts where this is settable. */ |
|
||||
/* #undef _FILE_OFFSET_BITS */ |
|
||||
|
|
||||
/* Define for large files, on AIX-style hosts. */ |
|
||||
/* #undef _LARGE_FILES */ |
|
||||
|
|
||||
/* Define to empty if `const' does not conform to ANSI C. */ |
|
||||
/* #undef const */ |
|
||||
|
|
||||
/* Type to use in place of in_addr_t when system does not provide it. */ |
|
||||
/* #undef in_addr_t */ |
|
||||
|
|
||||
/* Define to `unsigned int' if <sys/types.h> does not define. */ |
|
||||
/* #undef size_t */ |
|
||||
|
|
||||
/* the signed version of size_t */ |
|
||||
/* #undef ssize_t */ |
|
@ -1,198 +0,0 @@ |
|||||
#ifndef HEADER_CARES_SETUP_H |
|
||||
#define HEADER_CARES_SETUP_H |
|
||||
|
|
||||
/* $Id$ */ |
|
||||
|
|
||||
/* Copyright (C) 2004 - 2009 by Daniel Stenberg et al
|
|
||||
* |
|
||||
* Permission to use, copy, modify, and distribute this software and its |
|
||||
* documentation for any purpose and without fee is hereby granted, provided |
|
||||
* that the above copyright notice appear in all copies and that both that |
|
||||
* copyright notice and this permission notice appear in supporting |
|
||||
* documentation, and that the name of M.I.T. not be used in advertising or |
|
||||
* publicity pertaining to distribution of the software without specific, |
|
||||
* written prior permission. M.I.T. makes no representations about the |
|
||||
* suitability of this software for any purpose. It is provided "as is" |
|
||||
* without express or implied warranty. |
|
||||
*/ |
|
||||
|
|
||||
/*
|
|
||||
* Define WIN32 when build target is Win32 API |
|
||||
*/ |
|
||||
|
|
||||
#if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32) |
|
||||
#define WIN32 |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Include configuration script results or hand-crafted |
|
||||
* configuration file for platforms which lack config tool. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef HAVE_CONFIG_H |
|
||||
#include "ares_config.h" |
|
||||
#else |
|
||||
|
|
||||
#ifdef WIN32 |
|
||||
#include "config-win32.h" |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HAVE_CONFIG_H */ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* Definition of preprocessor macros/symbols which modify compiler */ |
|
||||
/* behaviour or generated code characteristics must be done here, */ |
|
||||
/* as appropriate, before any system header file is included. It is */ |
|
||||
/* also possible to have them defined in the config file included */ |
|
||||
/* before this point. As a result of all this we frown inclusion of */ |
|
||||
/* system header files in our config files, avoid this at any cost. */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* AIX 4.3 and newer needs _THREAD_SAFE defined to build |
|
||||
* proper reentrant code. Others may also need it. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef NEED_THREAD_SAFE |
|
||||
# ifndef _THREAD_SAFE |
|
||||
# define _THREAD_SAFE |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Tru64 needs _REENTRANT set for a few function prototypes and |
|
||||
* things to appear in the system header files. Unixware needs it |
|
||||
* to build proper reentrant code. Others may also need it. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef NEED_REENTRANT |
|
||||
# ifndef _REENTRANT |
|
||||
# define _REENTRANT |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* If you need to include a system header file for your platform, */ |
|
||||
/* please, do it beyond the point further indicated in this file. */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* c-ares external interface definitions are also used internally, |
|
||||
* and might also include required system header files to define them. |
|
||||
*/ |
|
||||
|
|
||||
#include <ares_build.h> |
|
||||
|
|
||||
/*
|
|
||||
* Compile time sanity checks must also be done when building the library. |
|
||||
*/ |
|
||||
|
|
||||
#include <ares_rules.h> |
|
||||
|
|
||||
/* ================================================================= */ |
|
||||
/* No system header file shall be included in this file before this */ |
|
||||
/* point. The only allowed ones are those included from ares_build.h */ |
|
||||
/* ================================================================= */ |
|
||||
|
|
||||
/*
|
|
||||
* Include header files for windows builds before redefining anything. |
|
||||
* Use this preproessor block only to include or exclude windows.h, |
|
||||
* winsock2.h, ws2tcpip.h or winsock.h. Any other windows thing belongs |
|
||||
* to any other further and independent block. Under Cygwin things work |
|
||||
* just as under linux (e.g. <sys/socket.h>) and the winsock headers should |
|
||||
* never be included when __CYGWIN__ is defined. configure script takes |
|
||||
* care of this, not defining HAVE_WINDOWS_H, HAVE_WINSOCK_H, HAVE_WINSOCK2_H, |
|
||||
* neither HAVE_WS2TCPIP_H when __CYGWIN__ is defined. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef HAVE_WINDOWS_H |
|
||||
# ifndef WIN32_LEAN_AND_MEAN |
|
||||
# define WIN32_LEAN_AND_MEAN |
|
||||
# endif |
|
||||
# include <windows.h> |
|
||||
# ifdef HAVE_WINSOCK2_H |
|
||||
# include <winsock2.h> |
|
||||
# ifdef HAVE_WS2TCPIP_H |
|
||||
# include <ws2tcpip.h> |
|
||||
# endif |
|
||||
# else |
|
||||
# ifdef HAVE_WINSOCK_H |
|
||||
# include <winsock.h> |
|
||||
# endif |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Define USE_WINSOCK to 2 if we have and use WINSOCK2 API, else |
|
||||
* define USE_WINSOCK to 1 if we have and use WINSOCK API, else |
|
||||
* undefine USE_WINSOCK. |
|
||||
*/ |
|
||||
|
|
||||
#undef USE_WINSOCK |
|
||||
|
|
||||
#ifdef HAVE_WINSOCK2_H |
|
||||
# define USE_WINSOCK 2 |
|
||||
#else |
|
||||
# ifdef HAVE_WINSOCK_H |
|
||||
# define USE_WINSOCK 1 |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Work-arounds for systems without configure support |
|
||||
*/ |
|
||||
|
|
||||
#ifndef HAVE_CONFIG_H |
|
||||
|
|
||||
#if !defined(HAVE_SYS_TIME_H) && !defined(_MSC_VER) && !defined(__WATCOMC__) |
|
||||
#define HAVE_SYS_TIME_H |
|
||||
#endif |
|
||||
|
|
||||
#if !defined(HAVE_UNISTD_H) && !defined(_MSC_VER) |
|
||||
#define HAVE_UNISTD_H 1 |
|
||||
#endif |
|
||||
|
|
||||
#if !defined(HAVE_SYS_UIO_H) && !defined(WIN32) && !defined(MSDOS) |
|
||||
#define HAVE_SYS_UIO_H |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HAVE_CONFIG_H */ |
|
||||
|
|
||||
#ifdef __POCC__ |
|
||||
# include <sys/types.h> |
|
||||
# include <unistd.h> |
|
||||
# define ESRCH 3 |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Recent autoconf versions define these symbols in ares_config.h. We don't |
|
||||
* want them (since they collide with the libcurl ones when we build |
|
||||
* --enable-debug) so we undef them again here. |
|
||||
*/ |
|
||||
|
|
||||
#undef PACKAGE_STRING |
|
||||
#undef PACKAGE_TARNAME |
|
||||
#undef PACKAGE_VERSION |
|
||||
#undef PACKAGE_BUGREPORT |
|
||||
#undef PACKAGE_NAME |
|
||||
#undef VERSION |
|
||||
#undef PACKAGE |
|
||||
|
|
||||
/* IPv6 compatibility */ |
|
||||
#if !defined(HAVE_AF_INET6) |
|
||||
#if defined(HAVE_PF_INET6) |
|
||||
#define AF_INET6 PF_INET6 |
|
||||
#else |
|
||||
#define AF_INET6 AF_MAX+1 |
|
||||
#endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Include macros and defines that should only be processed once. |
|
||||
*/ |
|
||||
|
|
||||
#ifndef __SETUP_ONCE_H |
|
||||
#include "setup_once.h" |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HEADER_CARES_SETUP_H */ |
|
@ -1,112 +0,0 @@ |
|||||
/* ares_build.h. Generated from ares_build.h.in by configure. */ |
|
||||
#ifndef __CARES_BUILD_H |
|
||||
#define __CARES_BUILD_H |
|
||||
|
|
||||
/* $Id$ */ |
|
||||
|
|
||||
/* Copyright (C) 2009 by Daniel Stenberg et al
|
|
||||
* |
|
||||
* Permission to use, copy, modify, and distribute this software and its |
|
||||
* documentation for any purpose and without fee is hereby granted, provided |
|
||||
* that the above copyright notice appear in all copies and that both that |
|
||||
* copyright notice and this permission notice appear in supporting |
|
||||
* documentation, and that the name of M.I.T. not be used in advertising or |
|
||||
* publicity pertaining to distribution of the software without specific, |
|
||||
* written prior permission. M.I.T. makes no representations about the |
|
||||
* suitability of this software for any purpose. It is provided "as is" |
|
||||
* without express or implied warranty. |
|
||||
*/ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* NOTES FOR CONFIGURE CAPABLE SYSTEMS */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* NOTE 1: |
|
||||
* ------- |
|
||||
* |
|
||||
* Nothing in this file is intended to be modified or adjusted by the |
|
||||
* c-ares library user nor by the c-ares library builder. |
|
||||
* |
|
||||
* If you think that something actually needs to be changed, adjusted |
|
||||
* or fixed in this file, then, report it on the c-ares development |
|
||||
* mailing list: http://cool.haxx.se/mailman/listinfo/c-ares/
|
|
||||
* |
|
||||
* This header file shall only export symbols which are 'cares' or 'CARES' |
|
||||
* prefixed, otherwise public name space would be polluted. |
|
||||
* |
|
||||
* NOTE 2: |
|
||||
* ------- |
|
||||
* |
|
||||
* Right now you might be staring at file ares_build.h.in or ares_build.h, |
|
||||
* this is due to the following reason: |
|
||||
* |
|
||||
* On systems capable of running the configure script, the configure process |
|
||||
* will overwrite the distributed ares_build.h file with one that is suitable |
|
||||
* and specific to the library being configured and built, which is generated |
|
||||
* from the ares_build.h.in template file. |
|
||||
* |
|
||||
*/ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
#ifdef CARES_SIZEOF_LONG |
|
||||
# error "CARES_SIZEOF_LONG shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_SIZEOF_LONG_already_defined |
|
||||
#endif |
|
||||
|
|
||||
#ifdef CARES_TYPEOF_ARES_SOCKLEN_T |
|
||||
# error "CARES_TYPEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_TYPEOF_ARES_SOCKLEN_T_already_defined |
|
||||
#endif |
|
||||
|
|
||||
#ifdef CARES_SIZEOF_ARES_SOCKLEN_T |
|
||||
# error "CARES_SIZEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_SIZEOF_ARES_SOCKLEN_T_already_defined |
|
||||
#endif |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* EXTERNAL INTERFACE SETTINGS FOR CONFIGURE CAPABLE SYSTEMS ONLY */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file ws2tcpip.h must be included by the external interface. */ |
|
||||
/* #undef CARES_PULL_WS2TCPIP_H */ |
|
||||
#ifdef CARES_PULL_WS2TCPIP_H |
|
||||
# ifndef WIN32_LEAN_AND_MEAN |
|
||||
# define WIN32_LEAN_AND_MEAN |
|
||||
# endif |
|
||||
# include <windows.h> |
|
||||
# include <winsock2.h> |
|
||||
# include <ws2tcpip.h> |
|
||||
#endif |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file sys/types.h must be included by the external interface. */ |
|
||||
#define CARES_PULL_SYS_TYPES_H 1 |
|
||||
#ifdef CARES_PULL_SYS_TYPES_H |
|
||||
# include <sys/types.h> |
|
||||
#endif |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file sys/socket.h must be included by the external interface. */ |
|
||||
#define CARES_PULL_SYS_SOCKET_H 1 |
|
||||
#ifdef CARES_PULL_SYS_SOCKET_H |
|
||||
# include <sys/socket.h> |
|
||||
#endif |
|
||||
|
|
||||
/* The size of `long', as computed by sizeof. */ |
|
||||
#define CARES_SIZEOF_LONG 4 |
|
||||
|
|
||||
/* Integral data type used for ares_socklen_t. */ |
|
||||
#define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t |
|
||||
|
|
||||
/* The size of `ares_socklen_t', as computed by sizeof. */ |
|
||||
#define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
|
||||
|
|
||||
/* Data type definition of ares_socklen_t. */ |
|
||||
typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t; |
|
||||
|
|
||||
#endif /* __CARES_BUILD_H */ |
|
@ -1,513 +0,0 @@ |
|||||
/* ares_config.h. Generated from ares_config.h.in by configure. */ |
|
||||
/* ares_config.h.in. Generated from configure.ac by autoheader. */ |
|
||||
|
|
||||
/* Define if building universal (internal helper macro) */ |
|
||||
/* #undef AC_APPLE_UNIVERSAL_BUILD */ |
|
||||
|
|
||||
/* define this if ares is built for a big endian system */ |
|
||||
/* #undef ARES_BIG_ENDIAN */ |
|
||||
|
|
||||
/* when building as static part of libcurl */ |
|
||||
/* #undef BUILDING_LIBCURL */ |
|
||||
|
|
||||
/* when building c-ares library */ |
|
||||
/* #undef CARES_BUILDING_LIBRARY */ |
|
||||
|
|
||||
/* when not building a shared library */ |
|
||||
/* #undef CARES_STATICLIB */ |
|
||||
|
|
||||
/* Define to 1 to enable hiding of library internal symbols. */ |
|
||||
#define CARES_SYMBOL_HIDING 1 |
|
||||
|
|
||||
/* Definition to make a library symbol externally visible. */ |
|
||||
#define CARES_SYMBOL_SCOPE_EXTERN __attribute__ ((visibility ("default"))) |
|
||||
|
|
||||
/* if a /etc/inet dir is being used */ |
|
||||
/* #undef ETC_INET */ |
|
||||
|
|
||||
/* Define to the type qualifier of arg 1 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_QUAL_ARG1 const |
|
||||
|
|
||||
/* Define to the type of arg 1 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG1 struct sockaddr * |
|
||||
|
|
||||
/* Define to the type of arg 2 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG2 socklen_t |
|
||||
|
|
||||
/* Define to the type of args 4 and 6 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG46 size_t |
|
||||
|
|
||||
/* Define to the type of arg 7 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG7 int |
|
||||
|
|
||||
/* Specifies the number of arguments to getservbyport_r */ |
|
||||
#define GETSERVBYPORT_R_ARGS 6 |
|
||||
|
|
||||
/* Specifies the size of the buffer to pass to getservbyport_r */ |
|
||||
#define GETSERVBYPORT_R_BUFSIZE 4096 |
|
||||
|
|
||||
/* Define to 1 if you have AF_INET6. */ |
|
||||
#define HAVE_AF_INET6 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/inet.h> header file. */ |
|
||||
#define HAVE_ARPA_INET_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/nameser_compat.h> header file. */ |
|
||||
#define HAVE_ARPA_NAMESER_COMPAT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/nameser.h> header file. */ |
|
||||
#define HAVE_ARPA_NAMESER_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <assert.h> header file. */ |
|
||||
#define HAVE_ASSERT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `bitncmp' function. */ |
|
||||
/* #undef HAVE_BITNCMP */ |
|
||||
|
|
||||
/* Define to 1 if bool is an available type. */ |
|
||||
#define HAVE_BOOL_T 1 |
|
||||
|
|
||||
/* Define to 1 if you have the clock_gettime function and monotonic timer. */ |
|
||||
#define HAVE_CLOCK_GETTIME_MONOTONIC 1 |
|
||||
|
|
||||
/* Define to 1 if you have the closesocket function. */ |
|
||||
/* #undef HAVE_CLOSESOCKET */ |
|
||||
|
|
||||
/* Define to 1 if you have the CloseSocket camel case function. */ |
|
||||
/* #undef HAVE_CLOSESOCKET_CAMEL */ |
|
||||
|
|
||||
/* Define to 1 if you have the connect function. */ |
|
||||
#define HAVE_CONNECT 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */ |
|
||||
#define HAVE_DLFCN_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <errno.h> header file. */ |
|
||||
#define HAVE_ERRNO_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the fcntl function. */ |
|
||||
#define HAVE_FCNTL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <fcntl.h> header file. */ |
|
||||
#define HAVE_FCNTL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working fcntl O_NONBLOCK function. */ |
|
||||
#define HAVE_FCNTL_O_NONBLOCK 1 |
|
||||
|
|
||||
/* Define to 1 if you have the freeaddrinfo function. */ |
|
||||
#define HAVE_FREEADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working getaddrinfo function. */ |
|
||||
#define HAVE_GETADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if the getaddrinfo function is threadsafe. */ |
|
||||
#define HAVE_GETADDRINFO_THREADSAFE 1 |
|
||||
|
|
||||
/* Define to 1 if you have the gethostbyaddr function. */ |
|
||||
#define HAVE_GETHOSTBYADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have the gethostbyname function. */ |
|
||||
#define HAVE_GETHOSTBYNAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the gethostname function. */ |
|
||||
#define HAVE_GETHOSTNAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the getnameinfo function. */ |
|
||||
#define HAVE_GETNAMEINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have the getservbyport_r function. */ |
|
||||
#define HAVE_GETSERVBYPORT_R 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `gettimeofday' function. */ |
|
||||
#define HAVE_GETTIMEOFDAY 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `if_indextoname' function. */ |
|
||||
#define HAVE_IF_INDEXTONAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `inet_net_pton' function. */ |
|
||||
#define HAVE_INET_NET_PTON 1 |
|
||||
|
|
||||
/* Define to 1 if inet_net_pton supports IPv6. */ |
|
||||
/* #undef HAVE_INET_NET_PTON_IPV6 */ |
|
||||
|
|
||||
/* Define to 1 if you have a IPv6 capable working inet_ntop function. */ |
|
||||
#define HAVE_INET_NTOP 1 |
|
||||
|
|
||||
/* Define to 1 if you have a IPv6 capable working inet_pton function. */ |
|
||||
#define HAVE_INET_PTON 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */ |
|
||||
#define HAVE_INTTYPES_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ioctl function. */ |
|
||||
#define HAVE_IOCTL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ioctlsocket function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET */ |
|
||||
|
|
||||
/* Define to 1 if you have the IoctlSocket camel case function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET_CAMEL */ |
|
||||
|
|
||||
/* Define to 1 if you have a working IoctlSocket camel case FIONBIO function.
|
|
||||
*/ |
|
||||
/* #undef HAVE_IOCTLSOCKET_CAMEL_FIONBIO */ |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctlsocket FIONBIO function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET_FIONBIO */ |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctl FIONBIO function. */ |
|
||||
#define HAVE_IOCTL_FIONBIO 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctl SIOCGIFADDR function. */ |
|
||||
#define HAVE_IOCTL_SIOCGIFADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `resolve' library (-lresolve). */ |
|
||||
/* #undef HAVE_LIBRESOLVE */ |
|
||||
|
|
||||
/* Define to 1 if you have the <limits.h> header file. */ |
|
||||
#define HAVE_LIMITS_H 1 |
|
||||
|
|
||||
/* if your compiler supports LL */ |
|
||||
#define HAVE_LL 1 |
|
||||
|
|
||||
/* Define to 1 if the compiler supports the 'long long' data type. */ |
|
||||
#define HAVE_LONGLONG 1 |
|
||||
|
|
||||
/* Define to 1 if you have the malloc.h header file. */ |
|
||||
/* #undef HAVE_MALLOC_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the memory.h header file. */ |
|
||||
#define HAVE_MEMORY_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the MSG_NOSIGNAL flag. */ |
|
||||
#define HAVE_MSG_NOSIGNAL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <netdb.h> header file. */ |
|
||||
#define HAVE_NETDB_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <netinet/in.h> header file. */ |
|
||||
#define HAVE_NETINET_IN_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <netinet/tcp.h> header file. */ |
|
||||
#define HAVE_NETINET_TCP_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <net/if.h> header file. */ |
|
||||
#define HAVE_NET_IF_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have PF_INET6. */ |
|
||||
#define HAVE_PF_INET6 1 |
|
||||
|
|
||||
/* Define to 1 if you have the recv function. */ |
|
||||
#define HAVE_RECV 1 |
|
||||
|
|
||||
/* Define to 1 if you have the recvfrom function. */ |
|
||||
#define HAVE_RECVFROM 1 |
|
||||
|
|
||||
/* Define to 1 if you have the send function. */ |
|
||||
#define HAVE_SEND 1 |
|
||||
|
|
||||
/* Define to 1 if you have the setsockopt function. */ |
|
||||
#define HAVE_SETSOCKOPT 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working setsockopt SO_NONBLOCK function. */ |
|
||||
/* #undef HAVE_SETSOCKOPT_SO_NONBLOCK */ |
|
||||
|
|
||||
/* Define to 1 if you have the <signal.h> header file. */ |
|
||||
#define HAVE_SIGNAL_H 1 |
|
||||
|
|
||||
/* Define to 1 if sig_atomic_t is an available typedef. */ |
|
||||
#define HAVE_SIG_ATOMIC_T 1 |
|
||||
|
|
||||
/* Define to 1 if sig_atomic_t is already defined as volatile. */ |
|
||||
/* #undef HAVE_SIG_ATOMIC_T_VOLATILE */ |
|
||||
|
|
||||
/* Define to 1 if your struct sockaddr_in6 has sin6_scope_id. */ |
|
||||
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
|
||||
|
|
||||
/* Define to 1 if you have the socket function. */ |
|
||||
#define HAVE_SOCKET 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <socket.h> header file. */ |
|
||||
/* #undef HAVE_SOCKET_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the <stdbool.h> header file. */ |
|
||||
#define HAVE_STDBOOL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <stdint.h> header file. */ |
|
||||
#define HAVE_STDINT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */ |
|
||||
#define HAVE_STDLIB_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strcasecmp function. */ |
|
||||
#define HAVE_STRCASECMP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strcmpi function. */ |
|
||||
/* #undef HAVE_STRCMPI */ |
|
||||
|
|
||||
/* Define to 1 if you have the strdup function. */ |
|
||||
#define HAVE_STRDUP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the stricmp function. */ |
|
||||
/* #undef HAVE_STRICMP */ |
|
||||
|
|
||||
/* Define to 1 if you have the <strings.h> header file. */ |
|
||||
#define HAVE_STRINGS_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <string.h> header file. */ |
|
||||
#define HAVE_STRING_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strncasecmp function. */ |
|
||||
#define HAVE_STRNCASECMP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strncmpi function. */ |
|
||||
/* #undef HAVE_STRNCMPI */ |
|
||||
|
|
||||
/* Define to 1 if you have the strnicmp function. */ |
|
||||
/* #undef HAVE_STRNICMP */ |
|
||||
|
|
||||
/* Define to 1 if you have the <stropts.h> header file. */ |
|
||||
/* #undef HAVE_STROPTS_H */ |
|
||||
|
|
||||
/* Define to 1 if you have struct addrinfo. */ |
|
||||
#define HAVE_STRUCT_ADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have struct in6_addr. */ |
|
||||
#define HAVE_STRUCT_IN6_ADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have struct sockaddr_in6. */ |
|
||||
#define HAVE_STRUCT_SOCKADDR_IN6 1 |
|
||||
|
|
||||
/* if struct sockaddr_storage is defined */ |
|
||||
#define HAVE_STRUCT_SOCKADDR_STORAGE 1 |
|
||||
|
|
||||
/* Define to 1 if you have the timeval struct. */ |
|
||||
#define HAVE_STRUCT_TIMEVAL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/ioctl.h> header file. */ |
|
||||
#define HAVE_SYS_IOCTL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/param.h> header file. */ |
|
||||
#define HAVE_SYS_PARAM_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/select.h> header file. */ |
|
||||
#define HAVE_SYS_SELECT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/socket.h> header file. */ |
|
||||
#define HAVE_SYS_SOCKET_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */ |
|
||||
#define HAVE_SYS_STAT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/time.h> header file. */ |
|
||||
#define HAVE_SYS_TIME_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */ |
|
||||
#define HAVE_SYS_TYPES_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/uio.h> header file. */ |
|
||||
#define HAVE_SYS_UIO_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <time.h> header file. */ |
|
||||
#define HAVE_TIME_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <unistd.h> header file. */ |
|
||||
#define HAVE_UNISTD_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the windows.h header file. */ |
|
||||
/* #undef HAVE_WINDOWS_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the winsock2.h header file. */ |
|
||||
/* #undef HAVE_WINSOCK2_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the winsock.h header file. */ |
|
||||
/* #undef HAVE_WINSOCK_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the writev function. */ |
|
||||
#define HAVE_WRITEV 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ws2tcpip.h header file. */ |
|
||||
/* #undef HAVE_WS2TCPIP_H */ |
|
||||
|
|
||||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
|
||||
*/ |
|
||||
#define LT_OBJDIR ".libs/" |
|
||||
|
|
||||
/* Define to 1 if you are building a native Windows target. */ |
|
||||
/* #undef NATIVE_WINDOWS */ |
|
||||
|
|
||||
/* Define to 1 if you need the malloc.h header file even with stdlib.h */ |
|
||||
/* #undef NEED_MALLOC_H */ |
|
||||
|
|
||||
/* Define to 1 if you need the memory.h header file even with stdlib.h */ |
|
||||
/* #undef NEED_MEMORY_H */ |
|
||||
|
|
||||
/* Define to 1 if _REENTRANT preprocessor symbol must be defined. */ |
|
||||
/* #undef NEED_REENTRANT */ |
|
||||
|
|
||||
/* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */ |
|
||||
/* #undef NEED_THREAD_SAFE */ |
|
||||
|
|
||||
/* Define to 1 if your C compiler doesn't accept -c and -o together. */ |
|
||||
/* #undef NO_MINUS_C_MINUS_O */ |
|
||||
|
|
||||
/* cpu-machine-OS */ |
|
||||
#define OS "i386-portbld-freebsd8.0" |
|
||||
|
|
||||
/* Name of package */ |
|
||||
#define PACKAGE "c-ares" |
|
||||
|
|
||||
/* Define to the address where bug reports for this package should be sent. */ |
|
||||
#define PACKAGE_BUGREPORT "c-ares mailing list => http://cool.haxx.se/mailman/listinfo/c-ares"
|
|
||||
|
|
||||
/* Define to the full name of this package. */ |
|
||||
#define PACKAGE_NAME "c-ares" |
|
||||
|
|
||||
/* Define to the full name and version of this package. */ |
|
||||
#define PACKAGE_STRING "c-ares 1.7.1" |
|
||||
|
|
||||
/* Define to the one symbol short name of this package. */ |
|
||||
#define PACKAGE_TARNAME "c-ares" |
|
||||
|
|
||||
/* Define to the home page for this package. */ |
|
||||
#define PACKAGE_URL "" |
|
||||
|
|
||||
/* Define to the version of this package. */ |
|
||||
#define PACKAGE_VERSION "1.7.1" |
|
||||
|
|
||||
/* a suitable file/device to read random data from */ |
|
||||
#define RANDOM_FILE "/dev/urandom" |
|
||||
|
|
||||
/* Define to the type of arg 1 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG1 int |
|
||||
|
|
||||
/* Define to the type pointed by arg 2 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG2 void |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 2 for recvfrom is void. */ |
|
||||
#define RECVFROM_TYPE_ARG2_IS_VOID 1 |
|
||||
|
|
||||
/* Define to the type of arg 3 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG3 size_t |
|
||||
|
|
||||
/* Define to the type of arg 4 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the type pointed by arg 5 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG5 struct sockaddr |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 5 for recvfrom is void. */ |
|
||||
/* #undef RECVFROM_TYPE_ARG5_IS_VOID */ |
|
||||
|
|
||||
/* Define to the type pointed by arg 6 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG6 socklen_t |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 6 for recvfrom is void. */ |
|
||||
/* #undef RECVFROM_TYPE_ARG6_IS_VOID */ |
|
||||
|
|
||||
/* Define to the function return type for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_RETV int |
|
||||
|
|
||||
/* Define to the type of arg 1 for recv. */ |
|
||||
#define RECV_TYPE_ARG1 int |
|
||||
|
|
||||
/* Define to the type of arg 2 for recv. */ |
|
||||
#define RECV_TYPE_ARG2 void * |
|
||||
|
|
||||
/* Define to the type of arg 3 for recv. */ |
|
||||
#define RECV_TYPE_ARG3 size_t |
|
||||
|
|
||||
/* Define to the type of arg 4 for recv. */ |
|
||||
#define RECV_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the function return type for recv. */ |
|
||||
#define RECV_TYPE_RETV int |
|
||||
|
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */ |
|
||||
#define RETSIGTYPE void |
|
||||
|
|
||||
/* Define to the type qualifier of arg 2 for send. */ |
|
||||
#define SEND_QUAL_ARG2 const |
|
||||
|
|
||||
/* Define to the type of arg 1 for send. */ |
|
||||
#define SEND_TYPE_ARG1 int |
|
||||
|
|
||||
/* Define to the type of arg 2 for send. */ |
|
||||
#define SEND_TYPE_ARG2 void * |
|
||||
|
|
||||
/* Define to the type of arg 3 for send. */ |
|
||||
#define SEND_TYPE_ARG3 size_t |
|
||||
|
|
||||
/* Define to the type of arg 4 for send. */ |
|
||||
#define SEND_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the function return type for send. */ |
|
||||
#define SEND_TYPE_RETV int |
|
||||
|
|
||||
/* The size of `int', as computed by sizeof. */ |
|
||||
#define SIZEOF_INT 4 |
|
||||
|
|
||||
/* The size of `long', as computed by sizeof. */ |
|
||||
#define SIZEOF_LONG 4 |
|
||||
|
|
||||
/* The size of `size_t', as computed by sizeof. */ |
|
||||
#define SIZEOF_SIZE_T 4 |
|
||||
|
|
||||
/* The size of `struct in6_addr', as computed by sizeof. */ |
|
||||
#define SIZEOF_STRUCT_IN6_ADDR 16 |
|
||||
|
|
||||
/* The size of `struct in_addr', as computed by sizeof. */ |
|
||||
#define SIZEOF_STRUCT_IN_ADDR 4 |
|
||||
|
|
||||
/* The size of `time_t', as computed by sizeof. */ |
|
||||
#define SIZEOF_TIME_T 4 |
|
||||
|
|
||||
/* Define to 1 if you have the ANSI C header files. */ |
|
||||
#define STDC_HEADERS 1 |
|
||||
|
|
||||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ |
|
||||
#define TIME_WITH_SYS_TIME 1 |
|
||||
|
|
||||
/* Define to disable non-blocking sockets. */ |
|
||||
/* #undef USE_BLOCKING_SOCKETS */ |
|
||||
|
|
||||
/* Version number of package */ |
|
||||
#define VERSION "1.7.1" |
|
||||
|
|
||||
/* Define to avoid automatic inclusion of winsock.h */ |
|
||||
/* #undef WIN32_LEAN_AND_MEAN */ |
|
||||
|
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
|
||||
significant byte first (like Motorola and SPARC, unlike Intel). */ |
|
||||
#if defined AC_APPLE_UNIVERSAL_BUILD |
|
||||
# if defined __BIG_ENDIAN__ |
|
||||
# define WORDS_BIGENDIAN 1 |
|
||||
# endif |
|
||||
#else |
|
||||
# ifndef WORDS_BIGENDIAN |
|
||||
/* # undef WORDS_BIGENDIAN */ |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/* Define to 1 if OS is AIX. */ |
|
||||
#ifndef _ALL_SOURCE |
|
||||
/* # undef _ALL_SOURCE */ |
|
||||
#endif |
|
||||
|
|
||||
/* Number of bits in a file offset, on hosts where this is settable. */ |
|
||||
/* #undef _FILE_OFFSET_BITS */ |
|
||||
|
|
||||
/* Define for large files, on AIX-style hosts. */ |
|
||||
/* #undef _LARGE_FILES */ |
|
||||
|
|
||||
/* Define to empty if `const' does not conform to ANSI C. */ |
|
||||
/* #undef const */ |
|
||||
|
|
||||
/* Type to use in place of in_addr_t when system does not provide it. */ |
|
||||
/* #undef in_addr_t */ |
|
||||
|
|
||||
/* Define to `unsigned int' if <sys/types.h> does not define. */ |
|
||||
/* #undef size_t */ |
|
||||
|
|
||||
/* the signed version of size_t */ |
|
||||
/* #undef ssize_t */ |
|
@ -1,198 +0,0 @@ |
|||||
#ifndef HEADER_CARES_SETUP_H |
|
||||
#define HEADER_CARES_SETUP_H |
|
||||
|
|
||||
/* $Id$ */ |
|
||||
|
|
||||
/* Copyright (C) 2004 - 2009 by Daniel Stenberg et al
|
|
||||
* |
|
||||
* Permission to use, copy, modify, and distribute this software and its |
|
||||
* documentation for any purpose and without fee is hereby granted, provided |
|
||||
* that the above copyright notice appear in all copies and that both that |
|
||||
* copyright notice and this permission notice appear in supporting |
|
||||
* documentation, and that the name of M.I.T. not be used in advertising or |
|
||||
* publicity pertaining to distribution of the software without specific, |
|
||||
* written prior permission. M.I.T. makes no representations about the |
|
||||
* suitability of this software for any purpose. It is provided "as is" |
|
||||
* without express or implied warranty. |
|
||||
*/ |
|
||||
|
|
||||
/*
|
|
||||
* Define WIN32 when build target is Win32 API |
|
||||
*/ |
|
||||
|
|
||||
#if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32) |
|
||||
#define WIN32 |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Include configuration script results or hand-crafted |
|
||||
* configuration file for platforms which lack config tool. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef HAVE_CONFIG_H |
|
||||
#include "ares_config.h" |
|
||||
#else |
|
||||
|
|
||||
#ifdef WIN32 |
|
||||
#include "config-win32.h" |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HAVE_CONFIG_H */ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* Definition of preprocessor macros/symbols which modify compiler */ |
|
||||
/* behaviour or generated code characteristics must be done here, */ |
|
||||
/* as appropriate, before any system header file is included. It is */ |
|
||||
/* also possible to have them defined in the config file included */ |
|
||||
/* before this point. As a result of all this we frown inclusion of */ |
|
||||
/* system header files in our config files, avoid this at any cost. */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* AIX 4.3 and newer needs _THREAD_SAFE defined to build |
|
||||
* proper reentrant code. Others may also need it. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef NEED_THREAD_SAFE |
|
||||
# ifndef _THREAD_SAFE |
|
||||
# define _THREAD_SAFE |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Tru64 needs _REENTRANT set for a few function prototypes and |
|
||||
* things to appear in the system header files. Unixware needs it |
|
||||
* to build proper reentrant code. Others may also need it. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef NEED_REENTRANT |
|
||||
# ifndef _REENTRANT |
|
||||
# define _REENTRANT |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* If you need to include a system header file for your platform, */ |
|
||||
/* please, do it beyond the point further indicated in this file. */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* c-ares external interface definitions are also used internally, |
|
||||
* and might also include required system header files to define them. |
|
||||
*/ |
|
||||
|
|
||||
#include <ares_build.h> |
|
||||
|
|
||||
/*
|
|
||||
* Compile time sanity checks must also be done when building the library. |
|
||||
*/ |
|
||||
|
|
||||
#include <ares_rules.h> |
|
||||
|
|
||||
/* ================================================================= */ |
|
||||
/* No system header file shall be included in this file before this */ |
|
||||
/* point. The only allowed ones are those included from ares_build.h */ |
|
||||
/* ================================================================= */ |
|
||||
|
|
||||
/*
|
|
||||
* Include header files for windows builds before redefining anything. |
|
||||
* Use this preproessor block only to include or exclude windows.h, |
|
||||
* winsock2.h, ws2tcpip.h or winsock.h. Any other windows thing belongs |
|
||||
* to any other further and independent block. Under Cygwin things work |
|
||||
* just as under linux (e.g. <sys/socket.h>) and the winsock headers should |
|
||||
* never be included when __CYGWIN__ is defined. configure script takes |
|
||||
* care of this, not defining HAVE_WINDOWS_H, HAVE_WINSOCK_H, HAVE_WINSOCK2_H, |
|
||||
* neither HAVE_WS2TCPIP_H when __CYGWIN__ is defined. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef HAVE_WINDOWS_H |
|
||||
# ifndef WIN32_LEAN_AND_MEAN |
|
||||
# define WIN32_LEAN_AND_MEAN |
|
||||
# endif |
|
||||
# include <windows.h> |
|
||||
# ifdef HAVE_WINSOCK2_H |
|
||||
# include <winsock2.h> |
|
||||
# ifdef HAVE_WS2TCPIP_H |
|
||||
# include <ws2tcpip.h> |
|
||||
# endif |
|
||||
# else |
|
||||
# ifdef HAVE_WINSOCK_H |
|
||||
# include <winsock.h> |
|
||||
# endif |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Define USE_WINSOCK to 2 if we have and use WINSOCK2 API, else |
|
||||
* define USE_WINSOCK to 1 if we have and use WINSOCK API, else |
|
||||
* undefine USE_WINSOCK. |
|
||||
*/ |
|
||||
|
|
||||
#undef USE_WINSOCK |
|
||||
|
|
||||
#ifdef HAVE_WINSOCK2_H |
|
||||
# define USE_WINSOCK 2 |
|
||||
#else |
|
||||
# ifdef HAVE_WINSOCK_H |
|
||||
# define USE_WINSOCK 1 |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Work-arounds for systems without configure support |
|
||||
*/ |
|
||||
|
|
||||
#ifndef HAVE_CONFIG_H |
|
||||
|
|
||||
#if !defined(HAVE_SYS_TIME_H) && !defined(_MSC_VER) && !defined(__WATCOMC__) |
|
||||
#define HAVE_SYS_TIME_H |
|
||||
#endif |
|
||||
|
|
||||
#if !defined(HAVE_UNISTD_H) && !defined(_MSC_VER) |
|
||||
#define HAVE_UNISTD_H 1 |
|
||||
#endif |
|
||||
|
|
||||
#if !defined(HAVE_SYS_UIO_H) && !defined(WIN32) && !defined(MSDOS) |
|
||||
#define HAVE_SYS_UIO_H |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HAVE_CONFIG_H */ |
|
||||
|
|
||||
#ifdef __POCC__ |
|
||||
# include <sys/types.h> |
|
||||
# include <unistd.h> |
|
||||
# define ESRCH 3 |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Recent autoconf versions define these symbols in ares_config.h. We don't |
|
||||
* want them (since they collide with the libcurl ones when we build |
|
||||
* --enable-debug) so we undef them again here. |
|
||||
*/ |
|
||||
|
|
||||
#undef PACKAGE_STRING |
|
||||
#undef PACKAGE_TARNAME |
|
||||
#undef PACKAGE_VERSION |
|
||||
#undef PACKAGE_BUGREPORT |
|
||||
#undef PACKAGE_NAME |
|
||||
#undef VERSION |
|
||||
#undef PACKAGE |
|
||||
|
|
||||
/* IPv6 compatibility */ |
|
||||
#if !defined(HAVE_AF_INET6) |
|
||||
#if defined(HAVE_PF_INET6) |
|
||||
#define AF_INET6 PF_INET6 |
|
||||
#else |
|
||||
#define AF_INET6 AF_MAX+1 |
|
||||
#endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Include macros and defines that should only be processed once. |
|
||||
*/ |
|
||||
|
|
||||
#ifndef __SETUP_ONCE_H |
|
||||
#include "setup_once.h" |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HEADER_CARES_SETUP_H */ |
|
@ -1,112 +0,0 @@ |
|||||
/* ares_build.h. Generated from ares_build.h.in by configure. */ |
|
||||
#ifndef __CARES_BUILD_H |
|
||||
#define __CARES_BUILD_H |
|
||||
|
|
||||
/* $Id$ */ |
|
||||
|
|
||||
/* Copyright (C) 2009 by Daniel Stenberg et al
|
|
||||
* |
|
||||
* Permission to use, copy, modify, and distribute this software and its |
|
||||
* documentation for any purpose and without fee is hereby granted, provided |
|
||||
* that the above copyright notice appear in all copies and that both that |
|
||||
* copyright notice and this permission notice appear in supporting |
|
||||
* documentation, and that the name of M.I.T. not be used in advertising or |
|
||||
* publicity pertaining to distribution of the software without specific, |
|
||||
* written prior permission. M.I.T. makes no representations about the |
|
||||
* suitability of this software for any purpose. It is provided "as is" |
|
||||
* without express or implied warranty. |
|
||||
*/ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* NOTES FOR CONFIGURE CAPABLE SYSTEMS */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* NOTE 1: |
|
||||
* ------- |
|
||||
* |
|
||||
* Nothing in this file is intended to be modified or adjusted by the |
|
||||
* c-ares library user nor by the c-ares library builder. |
|
||||
* |
|
||||
* If you think that something actually needs to be changed, adjusted |
|
||||
* or fixed in this file, then, report it on the c-ares development |
|
||||
* mailing list: http://cool.haxx.se/mailman/listinfo/c-ares/
|
|
||||
* |
|
||||
* This header file shall only export symbols which are 'cares' or 'CARES' |
|
||||
* prefixed, otherwise public name space would be polluted. |
|
||||
* |
|
||||
* NOTE 2: |
|
||||
* ------- |
|
||||
* |
|
||||
* Right now you might be staring at file ares_build.h.in or ares_build.h, |
|
||||
* this is due to the following reason: |
|
||||
* |
|
||||
* On systems capable of running the configure script, the configure process |
|
||||
* will overwrite the distributed ares_build.h file with one that is suitable |
|
||||
* and specific to the library being configured and built, which is generated |
|
||||
* from the ares_build.h.in template file. |
|
||||
* |
|
||||
*/ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
#ifdef CARES_SIZEOF_LONG |
|
||||
# error "CARES_SIZEOF_LONG shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_SIZEOF_LONG_already_defined |
|
||||
#endif |
|
||||
|
|
||||
#ifdef CARES_TYPEOF_ARES_SOCKLEN_T |
|
||||
# error "CARES_TYPEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_TYPEOF_ARES_SOCKLEN_T_already_defined |
|
||||
#endif |
|
||||
|
|
||||
#ifdef CARES_SIZEOF_ARES_SOCKLEN_T |
|
||||
# error "CARES_SIZEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_SIZEOF_ARES_SOCKLEN_T_already_defined |
|
||||
#endif |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* EXTERNAL INTERFACE SETTINGS FOR CONFIGURE CAPABLE SYSTEMS ONLY */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file ws2tcpip.h must be included by the external interface. */ |
|
||||
/* #undef CARES_PULL_WS2TCPIP_H */ |
|
||||
#ifdef CARES_PULL_WS2TCPIP_H |
|
||||
# ifndef WIN32_LEAN_AND_MEAN |
|
||||
# define WIN32_LEAN_AND_MEAN |
|
||||
# endif |
|
||||
# include <windows.h> |
|
||||
# include <winsock2.h> |
|
||||
# include <ws2tcpip.h> |
|
||||
#endif |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file sys/types.h must be included by the external interface. */ |
|
||||
#define CARES_PULL_SYS_TYPES_H 1 |
|
||||
#ifdef CARES_PULL_SYS_TYPES_H |
|
||||
# include <sys/types.h> |
|
||||
#endif |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file sys/socket.h must be included by the external interface. */ |
|
||||
#define CARES_PULL_SYS_SOCKET_H 1 |
|
||||
#ifdef CARES_PULL_SYS_SOCKET_H |
|
||||
# include <sys/socket.h> |
|
||||
#endif |
|
||||
|
|
||||
/* The size of `long', as computed by sizeof. */ |
|
||||
#define CARES_SIZEOF_LONG 8 |
|
||||
|
|
||||
/* Integral data type used for ares_socklen_t. */ |
|
||||
#define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t |
|
||||
|
|
||||
/* The size of `ares_socklen_t', as computed by sizeof. */ |
|
||||
#define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
|
||||
|
|
||||
/* Data type definition of ares_socklen_t. */ |
|
||||
typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t; |
|
||||
|
|
||||
#endif /* __CARES_BUILD_H */ |
|
@ -1,513 +0,0 @@ |
|||||
/* ares_config.h. Generated from ares_config.h.in by configure. */ |
|
||||
/* ares_config.h.in. Generated from configure.ac by autoheader. */ |
|
||||
|
|
||||
/* Define if building universal (internal helper macro) */ |
|
||||
/* #undef AC_APPLE_UNIVERSAL_BUILD */ |
|
||||
|
|
||||
/* define this if ares is built for a big endian system */ |
|
||||
/* #undef ARES_BIG_ENDIAN */ |
|
||||
|
|
||||
/* when building as static part of libcurl */ |
|
||||
/* #undef BUILDING_LIBCURL */ |
|
||||
|
|
||||
/* when building c-ares library */ |
|
||||
/* #undef CARES_BUILDING_LIBRARY */ |
|
||||
|
|
||||
/* when not building a shared library */ |
|
||||
/* #undef CARES_STATICLIB */ |
|
||||
|
|
||||
/* Define to 1 to enable hiding of library internal symbols. */ |
|
||||
#define CARES_SYMBOL_HIDING 1 |
|
||||
|
|
||||
/* Definition to make a library symbol externally visible. */ |
|
||||
#define CARES_SYMBOL_SCOPE_EXTERN __attribute__ ((visibility ("default"))) |
|
||||
|
|
||||
/* if a /etc/inet dir is being used */ |
|
||||
/* #undef ETC_INET */ |
|
||||
|
|
||||
/* Define to the type qualifier of arg 1 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_QUAL_ARG1 const |
|
||||
|
|
||||
/* Define to the type of arg 1 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG1 struct sockaddr * |
|
||||
|
|
||||
/* Define to the type of arg 2 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG2 socklen_t |
|
||||
|
|
||||
/* Define to the type of args 4 and 6 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG46 size_t |
|
||||
|
|
||||
/* Define to the type of arg 7 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG7 int |
|
||||
|
|
||||
/* Specifies the number of arguments to getservbyport_r */ |
|
||||
#define GETSERVBYPORT_R_ARGS 6 |
|
||||
|
|
||||
/* Specifies the size of the buffer to pass to getservbyport_r */ |
|
||||
#define GETSERVBYPORT_R_BUFSIZE 4096 |
|
||||
|
|
||||
/* Define to 1 if you have AF_INET6. */ |
|
||||
#define HAVE_AF_INET6 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/inet.h> header file. */ |
|
||||
#define HAVE_ARPA_INET_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/nameser_compat.h> header file. */ |
|
||||
#define HAVE_ARPA_NAMESER_COMPAT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/nameser.h> header file. */ |
|
||||
#define HAVE_ARPA_NAMESER_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <assert.h> header file. */ |
|
||||
#define HAVE_ASSERT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `bitncmp' function. */ |
|
||||
/* #undef HAVE_BITNCMP */ |
|
||||
|
|
||||
/* Define to 1 if bool is an available type. */ |
|
||||
#define HAVE_BOOL_T 1 |
|
||||
|
|
||||
/* Define to 1 if you have the clock_gettime function and monotonic timer. */ |
|
||||
#define HAVE_CLOCK_GETTIME_MONOTONIC 1 |
|
||||
|
|
||||
/* Define to 1 if you have the closesocket function. */ |
|
||||
/* #undef HAVE_CLOSESOCKET */ |
|
||||
|
|
||||
/* Define to 1 if you have the CloseSocket camel case function. */ |
|
||||
/* #undef HAVE_CLOSESOCKET_CAMEL */ |
|
||||
|
|
||||
/* Define to 1 if you have the connect function. */ |
|
||||
#define HAVE_CONNECT 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */ |
|
||||
#define HAVE_DLFCN_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <errno.h> header file. */ |
|
||||
#define HAVE_ERRNO_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the fcntl function. */ |
|
||||
#define HAVE_FCNTL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <fcntl.h> header file. */ |
|
||||
#define HAVE_FCNTL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working fcntl O_NONBLOCK function. */ |
|
||||
#define HAVE_FCNTL_O_NONBLOCK 1 |
|
||||
|
|
||||
/* Define to 1 if you have the freeaddrinfo function. */ |
|
||||
#define HAVE_FREEADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working getaddrinfo function. */ |
|
||||
#define HAVE_GETADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if the getaddrinfo function is threadsafe. */ |
|
||||
#define HAVE_GETADDRINFO_THREADSAFE 1 |
|
||||
|
|
||||
/* Define to 1 if you have the gethostbyaddr function. */ |
|
||||
#define HAVE_GETHOSTBYADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have the gethostbyname function. */ |
|
||||
#define HAVE_GETHOSTBYNAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the gethostname function. */ |
|
||||
#define HAVE_GETHOSTNAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the getnameinfo function. */ |
|
||||
#define HAVE_GETNAMEINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have the getservbyport_r function. */ |
|
||||
#define HAVE_GETSERVBYPORT_R 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `gettimeofday' function. */ |
|
||||
#define HAVE_GETTIMEOFDAY 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `if_indextoname' function. */ |
|
||||
#define HAVE_IF_INDEXTONAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `inet_net_pton' function. */ |
|
||||
#define HAVE_INET_NET_PTON 1 |
|
||||
|
|
||||
/* Define to 1 if inet_net_pton supports IPv6. */ |
|
||||
/* #undef HAVE_INET_NET_PTON_IPV6 */ |
|
||||
|
|
||||
/* Define to 1 if you have a IPv6 capable working inet_ntop function. */ |
|
||||
#define HAVE_INET_NTOP 1 |
|
||||
|
|
||||
/* Define to 1 if you have a IPv6 capable working inet_pton function. */ |
|
||||
#define HAVE_INET_PTON 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */ |
|
||||
#define HAVE_INTTYPES_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ioctl function. */ |
|
||||
#define HAVE_IOCTL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ioctlsocket function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET */ |
|
||||
|
|
||||
/* Define to 1 if you have the IoctlSocket camel case function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET_CAMEL */ |
|
||||
|
|
||||
/* Define to 1 if you have a working IoctlSocket camel case FIONBIO function.
|
|
||||
*/ |
|
||||
/* #undef HAVE_IOCTLSOCKET_CAMEL_FIONBIO */ |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctlsocket FIONBIO function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET_FIONBIO */ |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctl FIONBIO function. */ |
|
||||
#define HAVE_IOCTL_FIONBIO 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctl SIOCGIFADDR function. */ |
|
||||
#define HAVE_IOCTL_SIOCGIFADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `resolve' library (-lresolve). */ |
|
||||
/* #undef HAVE_LIBRESOLVE */ |
|
||||
|
|
||||
/* Define to 1 if you have the <limits.h> header file. */ |
|
||||
#define HAVE_LIMITS_H 1 |
|
||||
|
|
||||
/* if your compiler supports LL */ |
|
||||
#define HAVE_LL 1 |
|
||||
|
|
||||
/* Define to 1 if the compiler supports the 'long long' data type. */ |
|
||||
#define HAVE_LONGLONG 1 |
|
||||
|
|
||||
/* Define to 1 if you have the malloc.h header file. */ |
|
||||
/* #undef HAVE_MALLOC_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the memory.h header file. */ |
|
||||
#define HAVE_MEMORY_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the MSG_NOSIGNAL flag. */ |
|
||||
#define HAVE_MSG_NOSIGNAL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <netdb.h> header file. */ |
|
||||
#define HAVE_NETDB_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <netinet/in.h> header file. */ |
|
||||
#define HAVE_NETINET_IN_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <netinet/tcp.h> header file. */ |
|
||||
#define HAVE_NETINET_TCP_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <net/if.h> header file. */ |
|
||||
#define HAVE_NET_IF_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have PF_INET6. */ |
|
||||
#define HAVE_PF_INET6 1 |
|
||||
|
|
||||
/* Define to 1 if you have the recv function. */ |
|
||||
#define HAVE_RECV 1 |
|
||||
|
|
||||
/* Define to 1 if you have the recvfrom function. */ |
|
||||
#define HAVE_RECVFROM 1 |
|
||||
|
|
||||
/* Define to 1 if you have the send function. */ |
|
||||
#define HAVE_SEND 1 |
|
||||
|
|
||||
/* Define to 1 if you have the setsockopt function. */ |
|
||||
#define HAVE_SETSOCKOPT 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working setsockopt SO_NONBLOCK function. */ |
|
||||
/* #undef HAVE_SETSOCKOPT_SO_NONBLOCK */ |
|
||||
|
|
||||
/* Define to 1 if you have the <signal.h> header file. */ |
|
||||
#define HAVE_SIGNAL_H 1 |
|
||||
|
|
||||
/* Define to 1 if sig_atomic_t is an available typedef. */ |
|
||||
#define HAVE_SIG_ATOMIC_T 1 |
|
||||
|
|
||||
/* Define to 1 if sig_atomic_t is already defined as volatile. */ |
|
||||
/* #undef HAVE_SIG_ATOMIC_T_VOLATILE */ |
|
||||
|
|
||||
/* Define to 1 if your struct sockaddr_in6 has sin6_scope_id. */ |
|
||||
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
|
||||
|
|
||||
/* Define to 1 if you have the socket function. */ |
|
||||
#define HAVE_SOCKET 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <socket.h> header file. */ |
|
||||
/* #undef HAVE_SOCKET_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the <stdbool.h> header file. */ |
|
||||
#define HAVE_STDBOOL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <stdint.h> header file. */ |
|
||||
#define HAVE_STDINT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */ |
|
||||
#define HAVE_STDLIB_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strcasecmp function. */ |
|
||||
#define HAVE_STRCASECMP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strcmpi function. */ |
|
||||
/* #undef HAVE_STRCMPI */ |
|
||||
|
|
||||
/* Define to 1 if you have the strdup function. */ |
|
||||
#define HAVE_STRDUP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the stricmp function. */ |
|
||||
/* #undef HAVE_STRICMP */ |
|
||||
|
|
||||
/* Define to 1 if you have the <strings.h> header file. */ |
|
||||
#define HAVE_STRINGS_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <string.h> header file. */ |
|
||||
#define HAVE_STRING_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strncasecmp function. */ |
|
||||
#define HAVE_STRNCASECMP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strncmpi function. */ |
|
||||
/* #undef HAVE_STRNCMPI */ |
|
||||
|
|
||||
/* Define to 1 if you have the strnicmp function. */ |
|
||||
/* #undef HAVE_STRNICMP */ |
|
||||
|
|
||||
/* Define to 1 if you have the <stropts.h> header file. */ |
|
||||
/* #undef HAVE_STROPTS_H */ |
|
||||
|
|
||||
/* Define to 1 if you have struct addrinfo. */ |
|
||||
#define HAVE_STRUCT_ADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have struct in6_addr. */ |
|
||||
#define HAVE_STRUCT_IN6_ADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have struct sockaddr_in6. */ |
|
||||
#define HAVE_STRUCT_SOCKADDR_IN6 1 |
|
||||
|
|
||||
/* if struct sockaddr_storage is defined */ |
|
||||
#define HAVE_STRUCT_SOCKADDR_STORAGE 1 |
|
||||
|
|
||||
/* Define to 1 if you have the timeval struct. */ |
|
||||
#define HAVE_STRUCT_TIMEVAL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/ioctl.h> header file. */ |
|
||||
#define HAVE_SYS_IOCTL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/param.h> header file. */ |
|
||||
#define HAVE_SYS_PARAM_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/select.h> header file. */ |
|
||||
#define HAVE_SYS_SELECT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/socket.h> header file. */ |
|
||||
#define HAVE_SYS_SOCKET_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */ |
|
||||
#define HAVE_SYS_STAT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/time.h> header file. */ |
|
||||
#define HAVE_SYS_TIME_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */ |
|
||||
#define HAVE_SYS_TYPES_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/uio.h> header file. */ |
|
||||
#define HAVE_SYS_UIO_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <time.h> header file. */ |
|
||||
#define HAVE_TIME_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <unistd.h> header file. */ |
|
||||
#define HAVE_UNISTD_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the windows.h header file. */ |
|
||||
/* #undef HAVE_WINDOWS_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the winsock2.h header file. */ |
|
||||
/* #undef HAVE_WINSOCK2_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the winsock.h header file. */ |
|
||||
/* #undef HAVE_WINSOCK_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the writev function. */ |
|
||||
#define HAVE_WRITEV 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ws2tcpip.h header file. */ |
|
||||
/* #undef HAVE_WS2TCPIP_H */ |
|
||||
|
|
||||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
|
||||
*/ |
|
||||
#define LT_OBJDIR ".libs/" |
|
||||
|
|
||||
/* Define to 1 if you are building a native Windows target. */ |
|
||||
/* #undef NATIVE_WINDOWS */ |
|
||||
|
|
||||
/* Define to 1 if you need the malloc.h header file even with stdlib.h */ |
|
||||
/* #undef NEED_MALLOC_H */ |
|
||||
|
|
||||
/* Define to 1 if you need the memory.h header file even with stdlib.h */ |
|
||||
/* #undef NEED_MEMORY_H */ |
|
||||
|
|
||||
/* Define to 1 if _REENTRANT preprocessor symbol must be defined. */ |
|
||||
/* #undef NEED_REENTRANT */ |
|
||||
|
|
||||
/* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */ |
|
||||
/* #undef NEED_THREAD_SAFE */ |
|
||||
|
|
||||
/* Define to 1 if your C compiler doesn't accept -c and -o together. */ |
|
||||
/* #undef NO_MINUS_C_MINUS_O */ |
|
||||
|
|
||||
/* cpu-machine-OS */ |
|
||||
#define OS "amd64-portbld-freebsd8.0" |
|
||||
|
|
||||
/* Name of package */ |
|
||||
#define PACKAGE "c-ares" |
|
||||
|
|
||||
/* Define to the address where bug reports for this package should be sent. */ |
|
||||
#define PACKAGE_BUGREPORT "c-ares mailing list => http://cool.haxx.se/mailman/listinfo/c-ares"
|
|
||||
|
|
||||
/* Define to the full name of this package. */ |
|
||||
#define PACKAGE_NAME "c-ares" |
|
||||
|
|
||||
/* Define to the full name and version of this package. */ |
|
||||
#define PACKAGE_STRING "c-ares 1.7.1" |
|
||||
|
|
||||
/* Define to the one symbol short name of this package. */ |
|
||||
#define PACKAGE_TARNAME "c-ares" |
|
||||
|
|
||||
/* Define to the home page for this package. */ |
|
||||
#define PACKAGE_URL "" |
|
||||
|
|
||||
/* Define to the version of this package. */ |
|
||||
#define PACKAGE_VERSION "1.7.1" |
|
||||
|
|
||||
/* a suitable file/device to read random data from */ |
|
||||
#define RANDOM_FILE "/dev/urandom" |
|
||||
|
|
||||
/* Define to the type of arg 1 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG1 int |
|
||||
|
|
||||
/* Define to the type pointed by arg 2 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG2 void |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 2 for recvfrom is void. */ |
|
||||
#define RECVFROM_TYPE_ARG2_IS_VOID 1 |
|
||||
|
|
||||
/* Define to the type of arg 3 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG3 size_t |
|
||||
|
|
||||
/* Define to the type of arg 4 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the type pointed by arg 5 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG5 struct sockaddr |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 5 for recvfrom is void. */ |
|
||||
/* #undef RECVFROM_TYPE_ARG5_IS_VOID */ |
|
||||
|
|
||||
/* Define to the type pointed by arg 6 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG6 socklen_t |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 6 for recvfrom is void. */ |
|
||||
/* #undef RECVFROM_TYPE_ARG6_IS_VOID */ |
|
||||
|
|
||||
/* Define to the function return type for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_RETV ssize_t |
|
||||
|
|
||||
/* Define to the type of arg 1 for recv. */ |
|
||||
#define RECV_TYPE_ARG1 int |
|
||||
|
|
||||
/* Define to the type of arg 2 for recv. */ |
|
||||
#define RECV_TYPE_ARG2 void * |
|
||||
|
|
||||
/* Define to the type of arg 3 for recv. */ |
|
||||
#define RECV_TYPE_ARG3 size_t |
|
||||
|
|
||||
/* Define to the type of arg 4 for recv. */ |
|
||||
#define RECV_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the function return type for recv. */ |
|
||||
#define RECV_TYPE_RETV ssize_t |
|
||||
|
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */ |
|
||||
#define RETSIGTYPE void |
|
||||
|
|
||||
/* Define to the type qualifier of arg 2 for send. */ |
|
||||
#define SEND_QUAL_ARG2 const |
|
||||
|
|
||||
/* Define to the type of arg 1 for send. */ |
|
||||
#define SEND_TYPE_ARG1 int |
|
||||
|
|
||||
/* Define to the type of arg 2 for send. */ |
|
||||
#define SEND_TYPE_ARG2 void * |
|
||||
|
|
||||
/* Define to the type of arg 3 for send. */ |
|
||||
#define SEND_TYPE_ARG3 size_t |
|
||||
|
|
||||
/* Define to the type of arg 4 for send. */ |
|
||||
#define SEND_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the function return type for send. */ |
|
||||
#define SEND_TYPE_RETV ssize_t |
|
||||
|
|
||||
/* The size of `int', as computed by sizeof. */ |
|
||||
#define SIZEOF_INT 4 |
|
||||
|
|
||||
/* The size of `long', as computed by sizeof. */ |
|
||||
#define SIZEOF_LONG 8 |
|
||||
|
|
||||
/* The size of `size_t', as computed by sizeof. */ |
|
||||
#define SIZEOF_SIZE_T 8 |
|
||||
|
|
||||
/* The size of `struct in6_addr', as computed by sizeof. */ |
|
||||
#define SIZEOF_STRUCT_IN6_ADDR 16 |
|
||||
|
|
||||
/* The size of `struct in_addr', as computed by sizeof. */ |
|
||||
#define SIZEOF_STRUCT_IN_ADDR 4 |
|
||||
|
|
||||
/* The size of `time_t', as computed by sizeof. */ |
|
||||
#define SIZEOF_TIME_T 8 |
|
||||
|
|
||||
/* Define to 1 if you have the ANSI C header files. */ |
|
||||
#define STDC_HEADERS 1 |
|
||||
|
|
||||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ |
|
||||
#define TIME_WITH_SYS_TIME 1 |
|
||||
|
|
||||
/* Define to disable non-blocking sockets. */ |
|
||||
/* #undef USE_BLOCKING_SOCKETS */ |
|
||||
|
|
||||
/* Version number of package */ |
|
||||
#define VERSION "1.7.1" |
|
||||
|
|
||||
/* Define to avoid automatic inclusion of winsock.h */ |
|
||||
/* #undef WIN32_LEAN_AND_MEAN */ |
|
||||
|
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
|
||||
significant byte first (like Motorola and SPARC, unlike Intel). */ |
|
||||
#if defined AC_APPLE_UNIVERSAL_BUILD |
|
||||
# if defined __BIG_ENDIAN__ |
|
||||
# define WORDS_BIGENDIAN 1 |
|
||||
# endif |
|
||||
#else |
|
||||
# ifndef WORDS_BIGENDIAN |
|
||||
/* # undef WORDS_BIGENDIAN */ |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/* Define to 1 if OS is AIX. */ |
|
||||
#ifndef _ALL_SOURCE |
|
||||
/* # undef _ALL_SOURCE */ |
|
||||
#endif |
|
||||
|
|
||||
/* Number of bits in a file offset, on hosts where this is settable. */ |
|
||||
/* #undef _FILE_OFFSET_BITS */ |
|
||||
|
|
||||
/* Define for large files, on AIX-style hosts. */ |
|
||||
/* #undef _LARGE_FILES */ |
|
||||
|
|
||||
/* Define to empty if `const' does not conform to ANSI C. */ |
|
||||
/* #undef const */ |
|
||||
|
|
||||
/* Type to use in place of in_addr_t when system does not provide it. */ |
|
||||
/* #undef in_addr_t */ |
|
||||
|
|
||||
/* Define to `unsigned int' if <sys/types.h> does not define. */ |
|
||||
/* #undef size_t */ |
|
||||
|
|
||||
/* the signed version of size_t */ |
|
||||
/* #undef ssize_t */ |
|
@ -1,198 +0,0 @@ |
|||||
#ifndef HEADER_CARES_SETUP_H |
|
||||
#define HEADER_CARES_SETUP_H |
|
||||
|
|
||||
/* $Id$ */ |
|
||||
|
|
||||
/* Copyright (C) 2004 - 2009 by Daniel Stenberg et al
|
|
||||
* |
|
||||
* Permission to use, copy, modify, and distribute this software and its |
|
||||
* documentation for any purpose and without fee is hereby granted, provided |
|
||||
* that the above copyright notice appear in all copies and that both that |
|
||||
* copyright notice and this permission notice appear in supporting |
|
||||
* documentation, and that the name of M.I.T. not be used in advertising or |
|
||||
* publicity pertaining to distribution of the software without specific, |
|
||||
* written prior permission. M.I.T. makes no representations about the |
|
||||
* suitability of this software for any purpose. It is provided "as is" |
|
||||
* without express or implied warranty. |
|
||||
*/ |
|
||||
|
|
||||
/*
|
|
||||
* Define WIN32 when build target is Win32 API |
|
||||
*/ |
|
||||
|
|
||||
#if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32) |
|
||||
#define WIN32 |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Include configuration script results or hand-crafted |
|
||||
* configuration file for platforms which lack config tool. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef HAVE_CONFIG_H |
|
||||
#include "ares_config.h" |
|
||||
#else |
|
||||
|
|
||||
#ifdef WIN32 |
|
||||
#include "config-win32.h" |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HAVE_CONFIG_H */ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* Definition of preprocessor macros/symbols which modify compiler */ |
|
||||
/* behaviour or generated code characteristics must be done here, */ |
|
||||
/* as appropriate, before any system header file is included. It is */ |
|
||||
/* also possible to have them defined in the config file included */ |
|
||||
/* before this point. As a result of all this we frown inclusion of */ |
|
||||
/* system header files in our config files, avoid this at any cost. */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* AIX 4.3 and newer needs _THREAD_SAFE defined to build |
|
||||
* proper reentrant code. Others may also need it. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef NEED_THREAD_SAFE |
|
||||
# ifndef _THREAD_SAFE |
|
||||
# define _THREAD_SAFE |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Tru64 needs _REENTRANT set for a few function prototypes and |
|
||||
* things to appear in the system header files. Unixware needs it |
|
||||
* to build proper reentrant code. Others may also need it. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef NEED_REENTRANT |
|
||||
# ifndef _REENTRANT |
|
||||
# define _REENTRANT |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* If you need to include a system header file for your platform, */ |
|
||||
/* please, do it beyond the point further indicated in this file. */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* c-ares external interface definitions are also used internally, |
|
||||
* and might also include required system header files to define them. |
|
||||
*/ |
|
||||
|
|
||||
#include <ares_build.h> |
|
||||
|
|
||||
/*
|
|
||||
* Compile time sanity checks must also be done when building the library. |
|
||||
*/ |
|
||||
|
|
||||
#include <ares_rules.h> |
|
||||
|
|
||||
/* ================================================================= */ |
|
||||
/* No system header file shall be included in this file before this */ |
|
||||
/* point. The only allowed ones are those included from ares_build.h */ |
|
||||
/* ================================================================= */ |
|
||||
|
|
||||
/*
|
|
||||
* Include header files for windows builds before redefining anything. |
|
||||
* Use this preproessor block only to include or exclude windows.h, |
|
||||
* winsock2.h, ws2tcpip.h or winsock.h. Any other windows thing belongs |
|
||||
* to any other further and independent block. Under Cygwin things work |
|
||||
* just as under linux (e.g. <sys/socket.h>) and the winsock headers should |
|
||||
* never be included when __CYGWIN__ is defined. configure script takes |
|
||||
* care of this, not defining HAVE_WINDOWS_H, HAVE_WINSOCK_H, HAVE_WINSOCK2_H, |
|
||||
* neither HAVE_WS2TCPIP_H when __CYGWIN__ is defined. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef HAVE_WINDOWS_H |
|
||||
# ifndef WIN32_LEAN_AND_MEAN |
|
||||
# define WIN32_LEAN_AND_MEAN |
|
||||
# endif |
|
||||
# include <windows.h> |
|
||||
# ifdef HAVE_WINSOCK2_H |
|
||||
# include <winsock2.h> |
|
||||
# ifdef HAVE_WS2TCPIP_H |
|
||||
# include <ws2tcpip.h> |
|
||||
# endif |
|
||||
# else |
|
||||
# ifdef HAVE_WINSOCK_H |
|
||||
# include <winsock.h> |
|
||||
# endif |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Define USE_WINSOCK to 2 if we have and use WINSOCK2 API, else |
|
||||
* define USE_WINSOCK to 1 if we have and use WINSOCK API, else |
|
||||
* undefine USE_WINSOCK. |
|
||||
*/ |
|
||||
|
|
||||
#undef USE_WINSOCK |
|
||||
|
|
||||
#ifdef HAVE_WINSOCK2_H |
|
||||
# define USE_WINSOCK 2 |
|
||||
#else |
|
||||
# ifdef HAVE_WINSOCK_H |
|
||||
# define USE_WINSOCK 1 |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Work-arounds for systems without configure support |
|
||||
*/ |
|
||||
|
|
||||
#ifndef HAVE_CONFIG_H |
|
||||
|
|
||||
#if !defined(HAVE_SYS_TIME_H) && !defined(_MSC_VER) && !defined(__WATCOMC__) |
|
||||
#define HAVE_SYS_TIME_H |
|
||||
#endif |
|
||||
|
|
||||
#if !defined(HAVE_UNISTD_H) && !defined(_MSC_VER) |
|
||||
#define HAVE_UNISTD_H 1 |
|
||||
#endif |
|
||||
|
|
||||
#if !defined(HAVE_SYS_UIO_H) && !defined(WIN32) && !defined(MSDOS) |
|
||||
#define HAVE_SYS_UIO_H |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HAVE_CONFIG_H */ |
|
||||
|
|
||||
#ifdef __POCC__ |
|
||||
# include <sys/types.h> |
|
||||
# include <unistd.h> |
|
||||
# define ESRCH 3 |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Recent autoconf versions define these symbols in ares_config.h. We don't |
|
||||
* want them (since they collide with the libcurl ones when we build |
|
||||
* --enable-debug) so we undef them again here. |
|
||||
*/ |
|
||||
|
|
||||
#undef PACKAGE_STRING |
|
||||
#undef PACKAGE_TARNAME |
|
||||
#undef PACKAGE_VERSION |
|
||||
#undef PACKAGE_BUGREPORT |
|
||||
#undef PACKAGE_NAME |
|
||||
#undef VERSION |
|
||||
#undef PACKAGE |
|
||||
|
|
||||
/* IPv6 compatibility */ |
|
||||
#if !defined(HAVE_AF_INET6) |
|
||||
#if defined(HAVE_PF_INET6) |
|
||||
#define AF_INET6 PF_INET6 |
|
||||
#else |
|
||||
#define AF_INET6 AF_MAX+1 |
|
||||
#endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Include macros and defines that should only be processed once. |
|
||||
*/ |
|
||||
|
|
||||
#ifndef __SETUP_ONCE_H |
|
||||
#include "setup_once.h" |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HEADER_CARES_SETUP_H */ |
|
@ -1,112 +0,0 @@ |
|||||
/* ares_build.h. Generated from ares_build.h.in by configure. */ |
|
||||
#ifndef __CARES_BUILD_H |
|
||||
#define __CARES_BUILD_H |
|
||||
|
|
||||
/* $Id$ */ |
|
||||
|
|
||||
/* Copyright (C) 2009 by Daniel Stenberg et al
|
|
||||
* |
|
||||
* Permission to use, copy, modify, and distribute this software and its |
|
||||
* documentation for any purpose and without fee is hereby granted, provided |
|
||||
* that the above copyright notice appear in all copies and that both that |
|
||||
* copyright notice and this permission notice appear in supporting |
|
||||
* documentation, and that the name of M.I.T. not be used in advertising or |
|
||||
* publicity pertaining to distribution of the software without specific, |
|
||||
* written prior permission. M.I.T. makes no representations about the |
|
||||
* suitability of this software for any purpose. It is provided "as is" |
|
||||
* without express or implied warranty. |
|
||||
*/ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* NOTES FOR CONFIGURE CAPABLE SYSTEMS */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* NOTE 1: |
|
||||
* ------- |
|
||||
* |
|
||||
* Nothing in this file is intended to be modified or adjusted by the |
|
||||
* c-ares library user nor by the c-ares library builder. |
|
||||
* |
|
||||
* If you think that something actually needs to be changed, adjusted |
|
||||
* or fixed in this file, then, report it on the c-ares development |
|
||||
* mailing list: http://cool.haxx.se/mailman/listinfo/c-ares/
|
|
||||
* |
|
||||
* This header file shall only export symbols which are 'cares' or 'CARES' |
|
||||
* prefixed, otherwise public name space would be polluted. |
|
||||
* |
|
||||
* NOTE 2: |
|
||||
* ------- |
|
||||
* |
|
||||
* Right now you might be staring at file ares_build.h.in or ares_build.h, |
|
||||
* this is due to the following reason: |
|
||||
* |
|
||||
* On systems capable of running the configure script, the configure process |
|
||||
* will overwrite the distributed ares_build.h file with one that is suitable |
|
||||
* and specific to the library being configured and built, which is generated |
|
||||
* from the ares_build.h.in template file. |
|
||||
* |
|
||||
*/ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
#ifdef CARES_SIZEOF_LONG |
|
||||
# error "CARES_SIZEOF_LONG shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_SIZEOF_LONG_already_defined |
|
||||
#endif |
|
||||
|
|
||||
#ifdef CARES_TYPEOF_ARES_SOCKLEN_T |
|
||||
# error "CARES_TYPEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_TYPEOF_ARES_SOCKLEN_T_already_defined |
|
||||
#endif |
|
||||
|
|
||||
#ifdef CARES_SIZEOF_ARES_SOCKLEN_T |
|
||||
# error "CARES_SIZEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_SIZEOF_ARES_SOCKLEN_T_already_defined |
|
||||
#endif |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* EXTERNAL INTERFACE SETTINGS FOR CONFIGURE CAPABLE SYSTEMS ONLY */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file ws2tcpip.h must be included by the external interface. */ |
|
||||
/* #undef CARES_PULL_WS2TCPIP_H */ |
|
||||
#ifdef CARES_PULL_WS2TCPIP_H |
|
||||
# ifndef WIN32_LEAN_AND_MEAN |
|
||||
# define WIN32_LEAN_AND_MEAN |
|
||||
# endif |
|
||||
# include <windows.h> |
|
||||
# include <winsock2.h> |
|
||||
# include <ws2tcpip.h> |
|
||||
#endif |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file sys/types.h must be included by the external interface. */ |
|
||||
#define CARES_PULL_SYS_TYPES_H 1 |
|
||||
#ifdef CARES_PULL_SYS_TYPES_H |
|
||||
# include <sys/types.h> |
|
||||
#endif |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file sys/socket.h must be included by the external interface. */ |
|
||||
#define CARES_PULL_SYS_SOCKET_H 1 |
|
||||
#ifdef CARES_PULL_SYS_SOCKET_H |
|
||||
# include <sys/socket.h> |
|
||||
#endif |
|
||||
|
|
||||
/* The size of `long', as computed by sizeof. */ |
|
||||
#define CARES_SIZEOF_LONG 4 |
|
||||
|
|
||||
/* Integral data type used for ares_socklen_t. */ |
|
||||
#define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t |
|
||||
|
|
||||
/* The size of `ares_socklen_t', as computed by sizeof. */ |
|
||||
#define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
|
||||
|
|
||||
/* Data type definition of ares_socklen_t. */ |
|
||||
typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t; |
|
||||
|
|
||||
#endif /* __CARES_BUILD_H */ |
|
@ -1,513 +0,0 @@ |
|||||
/* ares_config.h. Generated from ares_config.h.in by configure. */ |
|
||||
/* ares_config.h.in. Generated from configure.ac by autoheader. */ |
|
||||
|
|
||||
/* Define if building universal (internal helper macro) */ |
|
||||
/* #undef AC_APPLE_UNIVERSAL_BUILD */ |
|
||||
|
|
||||
/* define this if ares is built for a big endian system */ |
|
||||
/* #undef ARES_BIG_ENDIAN */ |
|
||||
|
|
||||
/* when building as static part of libcurl */ |
|
||||
/* #undef BUILDING_LIBCURL */ |
|
||||
|
|
||||
/* when building c-ares library */ |
|
||||
/* #undef CARES_BUILDING_LIBRARY */ |
|
||||
|
|
||||
/* when not building a shared library */ |
|
||||
/* #undef CARES_STATICLIB */ |
|
||||
|
|
||||
/* Define to 1 to enable hiding of library internal symbols. */ |
|
||||
#define CARES_SYMBOL_HIDING 1 |
|
||||
|
|
||||
/* Definition to make a library symbol externally visible. */ |
|
||||
#define CARES_SYMBOL_SCOPE_EXTERN __attribute__ ((visibility ("default"))) |
|
||||
|
|
||||
/* if a /etc/inet dir is being used */ |
|
||||
/* #undef ETC_INET */ |
|
||||
|
|
||||
/* Define to the type qualifier of arg 1 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_QUAL_ARG1 const |
|
||||
|
|
||||
/* Define to the type of arg 1 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG1 struct sockaddr * |
|
||||
|
|
||||
/* Define to the type of arg 2 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG2 socklen_t |
|
||||
|
|
||||
/* Define to the type of args 4 and 6 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG46 size_t |
|
||||
|
|
||||
/* Define to the type of arg 7 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG7 unsigned int |
|
||||
|
|
||||
/* Specifies the number of arguments to getservbyport_r */ |
|
||||
#define GETSERVBYPORT_R_ARGS 6 |
|
||||
|
|
||||
/* Specifies the size of the buffer to pass to getservbyport_r */ |
|
||||
#define GETSERVBYPORT_R_BUFSIZE 4096 |
|
||||
|
|
||||
/* Define to 1 if you have AF_INET6. */ |
|
||||
#define HAVE_AF_INET6 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/inet.h> header file. */ |
|
||||
#define HAVE_ARPA_INET_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/nameser_compat.h> header file. */ |
|
||||
#define HAVE_ARPA_NAMESER_COMPAT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/nameser.h> header file. */ |
|
||||
#define HAVE_ARPA_NAMESER_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <assert.h> header file. */ |
|
||||
#define HAVE_ASSERT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `bitncmp' function. */ |
|
||||
/* #undef HAVE_BITNCMP */ |
|
||||
|
|
||||
/* Define to 1 if bool is an available type. */ |
|
||||
#define HAVE_BOOL_T 1 |
|
||||
|
|
||||
/* Define to 1 if you have the clock_gettime function and monotonic timer. */ |
|
||||
#define HAVE_CLOCK_GETTIME_MONOTONIC 1 |
|
||||
|
|
||||
/* Define to 1 if you have the closesocket function. */ |
|
||||
/* #undef HAVE_CLOSESOCKET */ |
|
||||
|
|
||||
/* Define to 1 if you have the CloseSocket camel case function. */ |
|
||||
/* #undef HAVE_CLOSESOCKET_CAMEL */ |
|
||||
|
|
||||
/* Define to 1 if you have the connect function. */ |
|
||||
#define HAVE_CONNECT 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */ |
|
||||
#define HAVE_DLFCN_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <errno.h> header file. */ |
|
||||
#define HAVE_ERRNO_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the fcntl function. */ |
|
||||
#define HAVE_FCNTL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <fcntl.h> header file. */ |
|
||||
#define HAVE_FCNTL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working fcntl O_NONBLOCK function. */ |
|
||||
#define HAVE_FCNTL_O_NONBLOCK 1 |
|
||||
|
|
||||
/* Define to 1 if you have the freeaddrinfo function. */ |
|
||||
#define HAVE_FREEADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working getaddrinfo function. */ |
|
||||
#define HAVE_GETADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if the getaddrinfo function is threadsafe. */ |
|
||||
#define HAVE_GETADDRINFO_THREADSAFE 1 |
|
||||
|
|
||||
/* Define to 1 if you have the gethostbyaddr function. */ |
|
||||
#define HAVE_GETHOSTBYADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have the gethostbyname function. */ |
|
||||
#define HAVE_GETHOSTBYNAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the gethostname function. */ |
|
||||
#define HAVE_GETHOSTNAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the getnameinfo function. */ |
|
||||
#define HAVE_GETNAMEINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have the getservbyport_r function. */ |
|
||||
#define HAVE_GETSERVBYPORT_R 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `gettimeofday' function. */ |
|
||||
#define HAVE_GETTIMEOFDAY 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `if_indextoname' function. */ |
|
||||
#define HAVE_IF_INDEXTONAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `inet_net_pton' function. */ |
|
||||
/* #undef HAVE_INET_NET_PTON */ |
|
||||
|
|
||||
/* Define to 1 if inet_net_pton supports IPv6. */ |
|
||||
/* #undef HAVE_INET_NET_PTON_IPV6 */ |
|
||||
|
|
||||
/* Define to 1 if you have a IPv6 capable working inet_ntop function. */ |
|
||||
#define HAVE_INET_NTOP 1 |
|
||||
|
|
||||
/* Define to 1 if you have a IPv6 capable working inet_pton function. */ |
|
||||
#define HAVE_INET_PTON 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */ |
|
||||
#define HAVE_INTTYPES_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ioctl function. */ |
|
||||
#define HAVE_IOCTL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ioctlsocket function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET */ |
|
||||
|
|
||||
/* Define to 1 if you have the IoctlSocket camel case function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET_CAMEL */ |
|
||||
|
|
||||
/* Define to 1 if you have a working IoctlSocket camel case FIONBIO function.
|
|
||||
*/ |
|
||||
/* #undef HAVE_IOCTLSOCKET_CAMEL_FIONBIO */ |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctlsocket FIONBIO function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET_FIONBIO */ |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctl FIONBIO function. */ |
|
||||
#define HAVE_IOCTL_FIONBIO 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctl SIOCGIFADDR function. */ |
|
||||
#define HAVE_IOCTL_SIOCGIFADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `resolve' library (-lresolve). */ |
|
||||
/* #undef HAVE_LIBRESOLVE */ |
|
||||
|
|
||||
/* Define to 1 if you have the <limits.h> header file. */ |
|
||||
#define HAVE_LIMITS_H 1 |
|
||||
|
|
||||
/* if your compiler supports LL */ |
|
||||
#define HAVE_LL 1 |
|
||||
|
|
||||
/* Define to 1 if the compiler supports the 'long long' data type. */ |
|
||||
#define HAVE_LONGLONG 1 |
|
||||
|
|
||||
/* Define to 1 if you have the malloc.h header file. */ |
|
||||
#define HAVE_MALLOC_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the memory.h header file. */ |
|
||||
#define HAVE_MEMORY_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the MSG_NOSIGNAL flag. */ |
|
||||
#define HAVE_MSG_NOSIGNAL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <netdb.h> header file. */ |
|
||||
#define HAVE_NETDB_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <netinet/in.h> header file. */ |
|
||||
#define HAVE_NETINET_IN_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <netinet/tcp.h> header file. */ |
|
||||
#define HAVE_NETINET_TCP_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <net/if.h> header file. */ |
|
||||
#define HAVE_NET_IF_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have PF_INET6. */ |
|
||||
#define HAVE_PF_INET6 1 |
|
||||
|
|
||||
/* Define to 1 if you have the recv function. */ |
|
||||
#define HAVE_RECV 1 |
|
||||
|
|
||||
/* Define to 1 if you have the recvfrom function. */ |
|
||||
#define HAVE_RECVFROM 1 |
|
||||
|
|
||||
/* Define to 1 if you have the send function. */ |
|
||||
#define HAVE_SEND 1 |
|
||||
|
|
||||
/* Define to 1 if you have the setsockopt function. */ |
|
||||
#define HAVE_SETSOCKOPT 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working setsockopt SO_NONBLOCK function. */ |
|
||||
/* #undef HAVE_SETSOCKOPT_SO_NONBLOCK */ |
|
||||
|
|
||||
/* Define to 1 if you have the <signal.h> header file. */ |
|
||||
#define HAVE_SIGNAL_H 1 |
|
||||
|
|
||||
/* Define to 1 if sig_atomic_t is an available typedef. */ |
|
||||
#define HAVE_SIG_ATOMIC_T 1 |
|
||||
|
|
||||
/* Define to 1 if sig_atomic_t is already defined as volatile. */ |
|
||||
/* #undef HAVE_SIG_ATOMIC_T_VOLATILE */ |
|
||||
|
|
||||
/* Define to 1 if your struct sockaddr_in6 has sin6_scope_id. */ |
|
||||
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
|
||||
|
|
||||
/* Define to 1 if you have the socket function. */ |
|
||||
#define HAVE_SOCKET 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <socket.h> header file. */ |
|
||||
/* #undef HAVE_SOCKET_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the <stdbool.h> header file. */ |
|
||||
#define HAVE_STDBOOL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <stdint.h> header file. */ |
|
||||
#define HAVE_STDINT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */ |
|
||||
#define HAVE_STDLIB_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strcasecmp function. */ |
|
||||
#define HAVE_STRCASECMP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strcmpi function. */ |
|
||||
/* #undef HAVE_STRCMPI */ |
|
||||
|
|
||||
/* Define to 1 if you have the strdup function. */ |
|
||||
#define HAVE_STRDUP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the stricmp function. */ |
|
||||
/* #undef HAVE_STRICMP */ |
|
||||
|
|
||||
/* Define to 1 if you have the <strings.h> header file. */ |
|
||||
#define HAVE_STRINGS_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <string.h> header file. */ |
|
||||
#define HAVE_STRING_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strncasecmp function. */ |
|
||||
#define HAVE_STRNCASECMP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strncmpi function. */ |
|
||||
/* #undef HAVE_STRNCMPI */ |
|
||||
|
|
||||
/* Define to 1 if you have the strnicmp function. */ |
|
||||
/* #undef HAVE_STRNICMP */ |
|
||||
|
|
||||
/* Define to 1 if you have the <stropts.h> header file. */ |
|
||||
#define HAVE_STROPTS_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have struct addrinfo. */ |
|
||||
#define HAVE_STRUCT_ADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have struct in6_addr. */ |
|
||||
#define HAVE_STRUCT_IN6_ADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have struct sockaddr_in6. */ |
|
||||
#define HAVE_STRUCT_SOCKADDR_IN6 1 |
|
||||
|
|
||||
/* if struct sockaddr_storage is defined */ |
|
||||
#define HAVE_STRUCT_SOCKADDR_STORAGE 1 |
|
||||
|
|
||||
/* Define to 1 if you have the timeval struct. */ |
|
||||
#define HAVE_STRUCT_TIMEVAL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/ioctl.h> header file. */ |
|
||||
#define HAVE_SYS_IOCTL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/param.h> header file. */ |
|
||||
#define HAVE_SYS_PARAM_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/select.h> header file. */ |
|
||||
#define HAVE_SYS_SELECT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/socket.h> header file. */ |
|
||||
#define HAVE_SYS_SOCKET_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */ |
|
||||
#define HAVE_SYS_STAT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/time.h> header file. */ |
|
||||
#define HAVE_SYS_TIME_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */ |
|
||||
#define HAVE_SYS_TYPES_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/uio.h> header file. */ |
|
||||
#define HAVE_SYS_UIO_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <time.h> header file. */ |
|
||||
#define HAVE_TIME_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <unistd.h> header file. */ |
|
||||
#define HAVE_UNISTD_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the windows.h header file. */ |
|
||||
/* #undef HAVE_WINDOWS_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the winsock2.h header file. */ |
|
||||
/* #undef HAVE_WINSOCK2_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the winsock.h header file. */ |
|
||||
/* #undef HAVE_WINSOCK_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the writev function. */ |
|
||||
#define HAVE_WRITEV 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ws2tcpip.h header file. */ |
|
||||
/* #undef HAVE_WS2TCPIP_H */ |
|
||||
|
|
||||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
|
||||
*/ |
|
||||
#define LT_OBJDIR ".libs/" |
|
||||
|
|
||||
/* Define to 1 if you are building a native Windows target. */ |
|
||||
/* #undef NATIVE_WINDOWS */ |
|
||||
|
|
||||
/* Define to 1 if you need the malloc.h header file even with stdlib.h */ |
|
||||
/* #undef NEED_MALLOC_H */ |
|
||||
|
|
||||
/* Define to 1 if you need the memory.h header file even with stdlib.h */ |
|
||||
/* #undef NEED_MEMORY_H */ |
|
||||
|
|
||||
/* Define to 1 if _REENTRANT preprocessor symbol must be defined. */ |
|
||||
/* #undef NEED_REENTRANT */ |
|
||||
|
|
||||
/* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */ |
|
||||
/* #undef NEED_THREAD_SAFE */ |
|
||||
|
|
||||
/* Define to 1 if your C compiler doesn't accept -c and -o together. */ |
|
||||
/* #undef NO_MINUS_C_MINUS_O */ |
|
||||
|
|
||||
/* cpu-machine-OS */ |
|
||||
#define OS "armv5tel-unknown-linux-gnueabi" |
|
||||
|
|
||||
/* Name of package */ |
|
||||
#define PACKAGE "c-ares" |
|
||||
|
|
||||
/* Define to the address where bug reports for this package should be sent. */ |
|
||||
#define PACKAGE_BUGREPORT "c-ares mailing list => http://cool.haxx.se/mailman/listinfo/c-ares"
|
|
||||
|
|
||||
/* Define to the full name of this package. */ |
|
||||
#define PACKAGE_NAME "c-ares" |
|
||||
|
|
||||
/* Define to the full name and version of this package. */ |
|
||||
#define PACKAGE_STRING "c-ares 1.7.1" |
|
||||
|
|
||||
/* Define to the one symbol short name of this package. */ |
|
||||
#define PACKAGE_TARNAME "c-ares" |
|
||||
|
|
||||
/* Define to the home page for this package. */ |
|
||||
#define PACKAGE_URL "" |
|
||||
|
|
||||
/* Define to the version of this package. */ |
|
||||
#define PACKAGE_VERSION "1.7.1" |
|
||||
|
|
||||
/* a suitable file/device to read random data from */ |
|
||||
#define RANDOM_FILE "/dev/urandom" |
|
||||
|
|
||||
/* Define to the type of arg 1 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG1 int |
|
||||
|
|
||||
/* Define to the type pointed by arg 2 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG2 void |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 2 for recvfrom is void. */ |
|
||||
#define RECVFROM_TYPE_ARG2_IS_VOID 1 |
|
||||
|
|
||||
/* Define to the type of arg 3 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG3 size_t |
|
||||
|
|
||||
/* Define to the type of arg 4 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the type pointed by arg 5 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG5 struct sockaddr |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 5 for recvfrom is void. */ |
|
||||
/* #undef RECVFROM_TYPE_ARG5_IS_VOID */ |
|
||||
|
|
||||
/* Define to the type pointed by arg 6 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG6 socklen_t |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 6 for recvfrom is void. */ |
|
||||
/* #undef RECVFROM_TYPE_ARG6_IS_VOID */ |
|
||||
|
|
||||
/* Define to the function return type for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_RETV int |
|
||||
|
|
||||
/* Define to the type of arg 1 for recv. */ |
|
||||
#define RECV_TYPE_ARG1 int |
|
||||
|
|
||||
/* Define to the type of arg 2 for recv. */ |
|
||||
#define RECV_TYPE_ARG2 void * |
|
||||
|
|
||||
/* Define to the type of arg 3 for recv. */ |
|
||||
#define RECV_TYPE_ARG3 size_t |
|
||||
|
|
||||
/* Define to the type of arg 4 for recv. */ |
|
||||
#define RECV_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the function return type for recv. */ |
|
||||
#define RECV_TYPE_RETV int |
|
||||
|
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */ |
|
||||
#define RETSIGTYPE void |
|
||||
|
|
||||
/* Define to the type qualifier of arg 2 for send. */ |
|
||||
#define SEND_QUAL_ARG2 const |
|
||||
|
|
||||
/* Define to the type of arg 1 for send. */ |
|
||||
#define SEND_TYPE_ARG1 int |
|
||||
|
|
||||
/* Define to the type of arg 2 for send. */ |
|
||||
#define SEND_TYPE_ARG2 void * |
|
||||
|
|
||||
/* Define to the type of arg 3 for send. */ |
|
||||
#define SEND_TYPE_ARG3 size_t |
|
||||
|
|
||||
/* Define to the type of arg 4 for send. */ |
|
||||
#define SEND_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the function return type for send. */ |
|
||||
#define SEND_TYPE_RETV int |
|
||||
|
|
||||
/* The size of `int', as computed by sizeof. */ |
|
||||
#define SIZEOF_INT 4 |
|
||||
|
|
||||
/* The size of `long', as computed by sizeof. */ |
|
||||
#define SIZEOF_LONG 4 |
|
||||
|
|
||||
/* The size of `size_t', as computed by sizeof. */ |
|
||||
#define SIZEOF_SIZE_T 4 |
|
||||
|
|
||||
/* The size of `struct in6_addr', as computed by sizeof. */ |
|
||||
#define SIZEOF_STRUCT_IN6_ADDR 16 |
|
||||
|
|
||||
/* The size of `struct in_addr', as computed by sizeof. */ |
|
||||
#define SIZEOF_STRUCT_IN_ADDR 4 |
|
||||
|
|
||||
/* The size of `time_t', as computed by sizeof. */ |
|
||||
#define SIZEOF_TIME_T 4 |
|
||||
|
|
||||
/* Define to 1 if you have the ANSI C header files. */ |
|
||||
#define STDC_HEADERS 1 |
|
||||
|
|
||||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ |
|
||||
#define TIME_WITH_SYS_TIME 1 |
|
||||
|
|
||||
/* Define to disable non-blocking sockets. */ |
|
||||
/* #undef USE_BLOCKING_SOCKETS */ |
|
||||
|
|
||||
/* Version number of package */ |
|
||||
#define VERSION "1.7.1" |
|
||||
|
|
||||
/* Define to avoid automatic inclusion of winsock.h */ |
|
||||
/* #undef WIN32_LEAN_AND_MEAN */ |
|
||||
|
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
|
||||
significant byte first (like Motorola and SPARC, unlike Intel). */ |
|
||||
#if defined AC_APPLE_UNIVERSAL_BUILD |
|
||||
# if defined __BIG_ENDIAN__ |
|
||||
# define WORDS_BIGENDIAN 1 |
|
||||
# endif |
|
||||
#else |
|
||||
# ifndef WORDS_BIGENDIAN |
|
||||
/* # undef WORDS_BIGENDIAN */ |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/* Define to 1 if OS is AIX. */ |
|
||||
#ifndef _ALL_SOURCE |
|
||||
/* # undef _ALL_SOURCE */ |
|
||||
#endif |
|
||||
|
|
||||
/* Number of bits in a file offset, on hosts where this is settable. */ |
|
||||
#define _FILE_OFFSET_BITS 64 |
|
||||
|
|
||||
/* Define for large files, on AIX-style hosts. */ |
|
||||
/* #undef _LARGE_FILES */ |
|
||||
|
|
||||
/* Define to empty if `const' does not conform to ANSI C. */ |
|
||||
/* #undef const */ |
|
||||
|
|
||||
/* Type to use in place of in_addr_t when system does not provide it. */ |
|
||||
/* #undef in_addr_t */ |
|
||||
|
|
||||
/* Define to `unsigned int' if <sys/types.h> does not define. */ |
|
||||
/* #undef size_t */ |
|
||||
|
|
||||
/* the signed version of size_t */ |
|
||||
/* #undef ssize_t */ |
|
@ -1,198 +0,0 @@ |
|||||
#ifndef HEADER_CARES_SETUP_H |
|
||||
#define HEADER_CARES_SETUP_H |
|
||||
|
|
||||
/* $Id$ */ |
|
||||
|
|
||||
/* Copyright (C) 2004 - 2009 by Daniel Stenberg et al
|
|
||||
* |
|
||||
* Permission to use, copy, modify, and distribute this software and its |
|
||||
* documentation for any purpose and without fee is hereby granted, provided |
|
||||
* that the above copyright notice appear in all copies and that both that |
|
||||
* copyright notice and this permission notice appear in supporting |
|
||||
* documentation, and that the name of M.I.T. not be used in advertising or |
|
||||
* publicity pertaining to distribution of the software without specific, |
|
||||
* written prior permission. M.I.T. makes no representations about the |
|
||||
* suitability of this software for any purpose. It is provided "as is" |
|
||||
* without express or implied warranty. |
|
||||
*/ |
|
||||
|
|
||||
/*
|
|
||||
* Define WIN32 when build target is Win32 API |
|
||||
*/ |
|
||||
|
|
||||
#if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32) |
|
||||
#define WIN32 |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Include configuration script results or hand-crafted |
|
||||
* configuration file for platforms which lack config tool. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef HAVE_CONFIG_H |
|
||||
#include "ares_config.h" |
|
||||
#else |
|
||||
|
|
||||
#ifdef WIN32 |
|
||||
#include "config-win32.h" |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HAVE_CONFIG_H */ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* Definition of preprocessor macros/symbols which modify compiler */ |
|
||||
/* behaviour or generated code characteristics must be done here, */ |
|
||||
/* as appropriate, before any system header file is included. It is */ |
|
||||
/* also possible to have them defined in the config file included */ |
|
||||
/* before this point. As a result of all this we frown inclusion of */ |
|
||||
/* system header files in our config files, avoid this at any cost. */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* AIX 4.3 and newer needs _THREAD_SAFE defined to build |
|
||||
* proper reentrant code. Others may also need it. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef NEED_THREAD_SAFE |
|
||||
# ifndef _THREAD_SAFE |
|
||||
# define _THREAD_SAFE |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Tru64 needs _REENTRANT set for a few function prototypes and |
|
||||
* things to appear in the system header files. Unixware needs it |
|
||||
* to build proper reentrant code. Others may also need it. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef NEED_REENTRANT |
|
||||
# ifndef _REENTRANT |
|
||||
# define _REENTRANT |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* If you need to include a system header file for your platform, */ |
|
||||
/* please, do it beyond the point further indicated in this file. */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* c-ares external interface definitions are also used internally, |
|
||||
* and might also include required system header files to define them. |
|
||||
*/ |
|
||||
|
|
||||
#include <ares_build.h> |
|
||||
|
|
||||
/*
|
|
||||
* Compile time sanity checks must also be done when building the library. |
|
||||
*/ |
|
||||
|
|
||||
#include <ares_rules.h> |
|
||||
|
|
||||
/* ================================================================= */ |
|
||||
/* No system header file shall be included in this file before this */ |
|
||||
/* point. The only allowed ones are those included from ares_build.h */ |
|
||||
/* ================================================================= */ |
|
||||
|
|
||||
/*
|
|
||||
* Include header files for windows builds before redefining anything. |
|
||||
* Use this preproessor block only to include or exclude windows.h, |
|
||||
* winsock2.h, ws2tcpip.h or winsock.h. Any other windows thing belongs |
|
||||
* to any other further and independent block. Under Cygwin things work |
|
||||
* just as under linux (e.g. <sys/socket.h>) and the winsock headers should |
|
||||
* never be included when __CYGWIN__ is defined. configure script takes |
|
||||
* care of this, not defining HAVE_WINDOWS_H, HAVE_WINSOCK_H, HAVE_WINSOCK2_H, |
|
||||
* neither HAVE_WS2TCPIP_H when __CYGWIN__ is defined. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef HAVE_WINDOWS_H |
|
||||
# ifndef WIN32_LEAN_AND_MEAN |
|
||||
# define WIN32_LEAN_AND_MEAN |
|
||||
# endif |
|
||||
# include <windows.h> |
|
||||
# ifdef HAVE_WINSOCK2_H |
|
||||
# include <winsock2.h> |
|
||||
# ifdef HAVE_WS2TCPIP_H |
|
||||
# include <ws2tcpip.h> |
|
||||
# endif |
|
||||
# else |
|
||||
# ifdef HAVE_WINSOCK_H |
|
||||
# include <winsock.h> |
|
||||
# endif |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Define USE_WINSOCK to 2 if we have and use WINSOCK2 API, else |
|
||||
* define USE_WINSOCK to 1 if we have and use WINSOCK API, else |
|
||||
* undefine USE_WINSOCK. |
|
||||
*/ |
|
||||
|
|
||||
#undef USE_WINSOCK |
|
||||
|
|
||||
#ifdef HAVE_WINSOCK2_H |
|
||||
# define USE_WINSOCK 2 |
|
||||
#else |
|
||||
# ifdef HAVE_WINSOCK_H |
|
||||
# define USE_WINSOCK 1 |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Work-arounds for systems without configure support |
|
||||
*/ |
|
||||
|
|
||||
#ifndef HAVE_CONFIG_H |
|
||||
|
|
||||
#if !defined(HAVE_SYS_TIME_H) && !defined(_MSC_VER) && !defined(__WATCOMC__) |
|
||||
#define HAVE_SYS_TIME_H |
|
||||
#endif |
|
||||
|
|
||||
#if !defined(HAVE_UNISTD_H) && !defined(_MSC_VER) |
|
||||
#define HAVE_UNISTD_H 1 |
|
||||
#endif |
|
||||
|
|
||||
#if !defined(HAVE_SYS_UIO_H) && !defined(WIN32) && !defined(MSDOS) |
|
||||
#define HAVE_SYS_UIO_H |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HAVE_CONFIG_H */ |
|
||||
|
|
||||
#ifdef __POCC__ |
|
||||
# include <sys/types.h> |
|
||||
# include <unistd.h> |
|
||||
# define ESRCH 3 |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Recent autoconf versions define these symbols in ares_config.h. We don't |
|
||||
* want them (since they collide with the libcurl ones when we build |
|
||||
* --enable-debug) so we undef them again here. |
|
||||
*/ |
|
||||
|
|
||||
#undef PACKAGE_STRING |
|
||||
#undef PACKAGE_TARNAME |
|
||||
#undef PACKAGE_VERSION |
|
||||
#undef PACKAGE_BUGREPORT |
|
||||
#undef PACKAGE_NAME |
|
||||
#undef VERSION |
|
||||
#undef PACKAGE |
|
||||
|
|
||||
/* IPv6 compatibility */ |
|
||||
#if !defined(HAVE_AF_INET6) |
|
||||
#if defined(HAVE_PF_INET6) |
|
||||
#define AF_INET6 PF_INET6 |
|
||||
#else |
|
||||
#define AF_INET6 AF_MAX+1 |
|
||||
#endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Include macros and defines that should only be processed once. |
|
||||
*/ |
|
||||
|
|
||||
#ifndef __SETUP_ONCE_H |
|
||||
#include "setup_once.h" |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HEADER_CARES_SETUP_H */ |
|
@ -1,112 +0,0 @@ |
|||||
/* ares_build.h. Generated from ares_build.h.in by configure. */ |
|
||||
#ifndef __CARES_BUILD_H |
|
||||
#define __CARES_BUILD_H |
|
||||
|
|
||||
/* $Id$ */ |
|
||||
|
|
||||
/* Copyright (C) 2009 by Daniel Stenberg et al
|
|
||||
* |
|
||||
* Permission to use, copy, modify, and distribute this software and its |
|
||||
* documentation for any purpose and without fee is hereby granted, provided |
|
||||
* that the above copyright notice appear in all copies and that both that |
|
||||
* copyright notice and this permission notice appear in supporting |
|
||||
* documentation, and that the name of M.I.T. not be used in advertising or |
|
||||
* publicity pertaining to distribution of the software without specific, |
|
||||
* written prior permission. M.I.T. makes no representations about the |
|
||||
* suitability of this software for any purpose. It is provided "as is" |
|
||||
* without express or implied warranty. |
|
||||
*/ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* NOTES FOR CONFIGURE CAPABLE SYSTEMS */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* NOTE 1: |
|
||||
* ------- |
|
||||
* |
|
||||
* Nothing in this file is intended to be modified or adjusted by the |
|
||||
* c-ares library user nor by the c-ares library builder. |
|
||||
* |
|
||||
* If you think that something actually needs to be changed, adjusted |
|
||||
* or fixed in this file, then, report it on the c-ares development |
|
||||
* mailing list: http://cool.haxx.se/mailman/listinfo/c-ares/
|
|
||||
* |
|
||||
* This header file shall only export symbols which are 'cares' or 'CARES' |
|
||||
* prefixed, otherwise public name space would be polluted. |
|
||||
* |
|
||||
* NOTE 2: |
|
||||
* ------- |
|
||||
* |
|
||||
* Right now you might be staring at file ares_build.h.in or ares_build.h, |
|
||||
* this is due to the following reason: |
|
||||
* |
|
||||
* On systems capable of running the configure script, the configure process |
|
||||
* will overwrite the distributed ares_build.h file with one that is suitable |
|
||||
* and specific to the library being configured and built, which is generated |
|
||||
* from the ares_build.h.in template file. |
|
||||
* |
|
||||
*/ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
#ifdef CARES_SIZEOF_LONG |
|
||||
# error "CARES_SIZEOF_LONG shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_SIZEOF_LONG_already_defined |
|
||||
#endif |
|
||||
|
|
||||
#ifdef CARES_TYPEOF_ARES_SOCKLEN_T |
|
||||
# error "CARES_TYPEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_TYPEOF_ARES_SOCKLEN_T_already_defined |
|
||||
#endif |
|
||||
|
|
||||
#ifdef CARES_SIZEOF_ARES_SOCKLEN_T |
|
||||
# error "CARES_SIZEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_SIZEOF_ARES_SOCKLEN_T_already_defined |
|
||||
#endif |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* EXTERNAL INTERFACE SETTINGS FOR CONFIGURE CAPABLE SYSTEMS ONLY */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file ws2tcpip.h must be included by the external interface. */ |
|
||||
/* #undef CARES_PULL_WS2TCPIP_H */ |
|
||||
#ifdef CARES_PULL_WS2TCPIP_H |
|
||||
# ifndef WIN32_LEAN_AND_MEAN |
|
||||
# define WIN32_LEAN_AND_MEAN |
|
||||
# endif |
|
||||
# include <windows.h> |
|
||||
# include <winsock2.h> |
|
||||
# include <ws2tcpip.h> |
|
||||
#endif |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file sys/types.h must be included by the external interface. */ |
|
||||
#define CARES_PULL_SYS_TYPES_H 1 |
|
||||
#ifdef CARES_PULL_SYS_TYPES_H |
|
||||
# include <sys/types.h> |
|
||||
#endif |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file sys/socket.h must be included by the external interface. */ |
|
||||
#define CARES_PULL_SYS_SOCKET_H 1 |
|
||||
#ifdef CARES_PULL_SYS_SOCKET_H |
|
||||
# include <sys/socket.h> |
|
||||
#endif |
|
||||
|
|
||||
/* The size of `long', as computed by sizeof. */ |
|
||||
#define CARES_SIZEOF_LONG 4 |
|
||||
|
|
||||
/* Integral data type used for ares_socklen_t. */ |
|
||||
#define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t |
|
||||
|
|
||||
/* The size of `ares_socklen_t', as computed by sizeof. */ |
|
||||
#define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
|
||||
|
|
||||
/* Data type definition of ares_socklen_t. */ |
|
||||
typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t; |
|
||||
|
|
||||
#endif /* __CARES_BUILD_H */ |
|
@ -1,513 +0,0 @@ |
|||||
/* ares_config.h. Generated from ares_config.h.in by configure. */ |
|
||||
/* ares_config.h.in. Generated from configure.ac by autoheader. */ |
|
||||
|
|
||||
/* Define if building universal (internal helper macro) */ |
|
||||
/* #undef AC_APPLE_UNIVERSAL_BUILD */ |
|
||||
|
|
||||
/* define this if ares is built for a big endian system */ |
|
||||
/* #undef ARES_BIG_ENDIAN */ |
|
||||
|
|
||||
/* when building as static part of libcurl */ |
|
||||
/* #undef BUILDING_LIBCURL */ |
|
||||
|
|
||||
/* when building c-ares library */ |
|
||||
/* #undef CARES_BUILDING_LIBRARY */ |
|
||||
|
|
||||
/* when not building a shared library */ |
|
||||
/* #undef CARES_STATICLIB */ |
|
||||
|
|
||||
/* Define to 1 to enable hiding of library internal symbols. */ |
|
||||
#define CARES_SYMBOL_HIDING 1 |
|
||||
|
|
||||
/* Definition to make a library symbol externally visible. */ |
|
||||
#define CARES_SYMBOL_SCOPE_EXTERN __attribute__ ((visibility ("default"))) |
|
||||
|
|
||||
/* if a /etc/inet dir is being used */ |
|
||||
/* #undef ETC_INET */ |
|
||||
|
|
||||
/* Define to the type qualifier of arg 1 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_QUAL_ARG1 const |
|
||||
|
|
||||
/* Define to the type of arg 1 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG1 struct sockaddr * |
|
||||
|
|
||||
/* Define to the type of arg 2 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG2 socklen_t |
|
||||
|
|
||||
/* Define to the type of args 4 and 6 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG46 size_t |
|
||||
|
|
||||
/* Define to the type of arg 7 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG7 unsigned int |
|
||||
|
|
||||
/* Specifies the number of arguments to getservbyport_r */ |
|
||||
#define GETSERVBYPORT_R_ARGS 6 |
|
||||
|
|
||||
/* Specifies the size of the buffer to pass to getservbyport_r */ |
|
||||
#define GETSERVBYPORT_R_BUFSIZE 4096 |
|
||||
|
|
||||
/* Define to 1 if you have AF_INET6. */ |
|
||||
#define HAVE_AF_INET6 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/inet.h> header file. */ |
|
||||
#define HAVE_ARPA_INET_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/nameser_compat.h> header file. */ |
|
||||
#define HAVE_ARPA_NAMESER_COMPAT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/nameser.h> header file. */ |
|
||||
#define HAVE_ARPA_NAMESER_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <assert.h> header file. */ |
|
||||
#define HAVE_ASSERT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `bitncmp' function. */ |
|
||||
/* #undef HAVE_BITNCMP */ |
|
||||
|
|
||||
/* Define to 1 if bool is an available type. */ |
|
||||
#define HAVE_BOOL_T 1 |
|
||||
|
|
||||
/* Define to 1 if you have the clock_gettime function and monotonic timer. */ |
|
||||
#define HAVE_CLOCK_GETTIME_MONOTONIC 1 |
|
||||
|
|
||||
/* Define to 1 if you have the closesocket function. */ |
|
||||
/* #undef HAVE_CLOSESOCKET */ |
|
||||
|
|
||||
/* Define to 1 if you have the CloseSocket camel case function. */ |
|
||||
/* #undef HAVE_CLOSESOCKET_CAMEL */ |
|
||||
|
|
||||
/* Define to 1 if you have the connect function. */ |
|
||||
#define HAVE_CONNECT 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */ |
|
||||
#define HAVE_DLFCN_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <errno.h> header file. */ |
|
||||
#define HAVE_ERRNO_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the fcntl function. */ |
|
||||
#define HAVE_FCNTL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <fcntl.h> header file. */ |
|
||||
#define HAVE_FCNTL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working fcntl O_NONBLOCK function. */ |
|
||||
#define HAVE_FCNTL_O_NONBLOCK 1 |
|
||||
|
|
||||
/* Define to 1 if you have the freeaddrinfo function. */ |
|
||||
#define HAVE_FREEADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working getaddrinfo function. */ |
|
||||
#define HAVE_GETADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if the getaddrinfo function is threadsafe. */ |
|
||||
#define HAVE_GETADDRINFO_THREADSAFE 1 |
|
||||
|
|
||||
/* Define to 1 if you have the gethostbyaddr function. */ |
|
||||
#define HAVE_GETHOSTBYADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have the gethostbyname function. */ |
|
||||
#define HAVE_GETHOSTBYNAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the gethostname function. */ |
|
||||
#define HAVE_GETHOSTNAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the getnameinfo function. */ |
|
||||
#define HAVE_GETNAMEINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have the getservbyport_r function. */ |
|
||||
#define HAVE_GETSERVBYPORT_R 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `gettimeofday' function. */ |
|
||||
#define HAVE_GETTIMEOFDAY 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `if_indextoname' function. */ |
|
||||
#define HAVE_IF_INDEXTONAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `inet_net_pton' function. */ |
|
||||
/* #undef HAVE_INET_NET_PTON */ |
|
||||
|
|
||||
/* Define to 1 if inet_net_pton supports IPv6. */ |
|
||||
/* #undef HAVE_INET_NET_PTON_IPV6 */ |
|
||||
|
|
||||
/* Define to 1 if you have a IPv6 capable working inet_ntop function. */ |
|
||||
#define HAVE_INET_NTOP 1 |
|
||||
|
|
||||
/* Define to 1 if you have a IPv6 capable working inet_pton function. */ |
|
||||
#define HAVE_INET_PTON 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */ |
|
||||
#define HAVE_INTTYPES_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ioctl function. */ |
|
||||
#define HAVE_IOCTL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ioctlsocket function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET */ |
|
||||
|
|
||||
/* Define to 1 if you have the IoctlSocket camel case function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET_CAMEL */ |
|
||||
|
|
||||
/* Define to 1 if you have a working IoctlSocket camel case FIONBIO function.
|
|
||||
*/ |
|
||||
/* #undef HAVE_IOCTLSOCKET_CAMEL_FIONBIO */ |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctlsocket FIONBIO function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET_FIONBIO */ |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctl FIONBIO function. */ |
|
||||
#define HAVE_IOCTL_FIONBIO 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctl SIOCGIFADDR function. */ |
|
||||
#define HAVE_IOCTL_SIOCGIFADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `resolve' library (-lresolve). */ |
|
||||
/* #undef HAVE_LIBRESOLVE */ |
|
||||
|
|
||||
/* Define to 1 if you have the <limits.h> header file. */ |
|
||||
#define HAVE_LIMITS_H 1 |
|
||||
|
|
||||
/* if your compiler supports LL */ |
|
||||
#define HAVE_LL 1 |
|
||||
|
|
||||
/* Define to 1 if the compiler supports the 'long long' data type. */ |
|
||||
#define HAVE_LONGLONG 1 |
|
||||
|
|
||||
/* Define to 1 if you have the malloc.h header file. */ |
|
||||
#define HAVE_MALLOC_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the memory.h header file. */ |
|
||||
#define HAVE_MEMORY_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the MSG_NOSIGNAL flag. */ |
|
||||
#define HAVE_MSG_NOSIGNAL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <netdb.h> header file. */ |
|
||||
#define HAVE_NETDB_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <netinet/in.h> header file. */ |
|
||||
#define HAVE_NETINET_IN_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <netinet/tcp.h> header file. */ |
|
||||
#define HAVE_NETINET_TCP_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <net/if.h> header file. */ |
|
||||
#define HAVE_NET_IF_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have PF_INET6. */ |
|
||||
#define HAVE_PF_INET6 1 |
|
||||
|
|
||||
/* Define to 1 if you have the recv function. */ |
|
||||
#define HAVE_RECV 1 |
|
||||
|
|
||||
/* Define to 1 if you have the recvfrom function. */ |
|
||||
#define HAVE_RECVFROM 1 |
|
||||
|
|
||||
/* Define to 1 if you have the send function. */ |
|
||||
#define HAVE_SEND 1 |
|
||||
|
|
||||
/* Define to 1 if you have the setsockopt function. */ |
|
||||
#define HAVE_SETSOCKOPT 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working setsockopt SO_NONBLOCK function. */ |
|
||||
/* #undef HAVE_SETSOCKOPT_SO_NONBLOCK */ |
|
||||
|
|
||||
/* Define to 1 if you have the <signal.h> header file. */ |
|
||||
#define HAVE_SIGNAL_H 1 |
|
||||
|
|
||||
/* Define to 1 if sig_atomic_t is an available typedef. */ |
|
||||
#define HAVE_SIG_ATOMIC_T 1 |
|
||||
|
|
||||
/* Define to 1 if sig_atomic_t is already defined as volatile. */ |
|
||||
/* #undef HAVE_SIG_ATOMIC_T_VOLATILE */ |
|
||||
|
|
||||
/* Define to 1 if your struct sockaddr_in6 has sin6_scope_id. */ |
|
||||
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
|
||||
|
|
||||
/* Define to 1 if you have the socket function. */ |
|
||||
#define HAVE_SOCKET 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <socket.h> header file. */ |
|
||||
/* #undef HAVE_SOCKET_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the <stdbool.h> header file. */ |
|
||||
#define HAVE_STDBOOL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <stdint.h> header file. */ |
|
||||
#define HAVE_STDINT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */ |
|
||||
#define HAVE_STDLIB_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strcasecmp function. */ |
|
||||
#define HAVE_STRCASECMP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strcmpi function. */ |
|
||||
/* #undef HAVE_STRCMPI */ |
|
||||
|
|
||||
/* Define to 1 if you have the strdup function. */ |
|
||||
#define HAVE_STRDUP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the stricmp function. */ |
|
||||
/* #undef HAVE_STRICMP */ |
|
||||
|
|
||||
/* Define to 1 if you have the <strings.h> header file. */ |
|
||||
#define HAVE_STRINGS_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <string.h> header file. */ |
|
||||
#define HAVE_STRING_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strncasecmp function. */ |
|
||||
#define HAVE_STRNCASECMP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strncmpi function. */ |
|
||||
/* #undef HAVE_STRNCMPI */ |
|
||||
|
|
||||
/* Define to 1 if you have the strnicmp function. */ |
|
||||
/* #undef HAVE_STRNICMP */ |
|
||||
|
|
||||
/* Define to 1 if you have the <stropts.h> header file. */ |
|
||||
#define HAVE_STROPTS_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have struct addrinfo. */ |
|
||||
#define HAVE_STRUCT_ADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have struct in6_addr. */ |
|
||||
#define HAVE_STRUCT_IN6_ADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have struct sockaddr_in6. */ |
|
||||
#define HAVE_STRUCT_SOCKADDR_IN6 1 |
|
||||
|
|
||||
/* if struct sockaddr_storage is defined */ |
|
||||
#define HAVE_STRUCT_SOCKADDR_STORAGE 1 |
|
||||
|
|
||||
/* Define to 1 if you have the timeval struct. */ |
|
||||
#define HAVE_STRUCT_TIMEVAL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/ioctl.h> header file. */ |
|
||||
#define HAVE_SYS_IOCTL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/param.h> header file. */ |
|
||||
#define HAVE_SYS_PARAM_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/select.h> header file. */ |
|
||||
#define HAVE_SYS_SELECT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/socket.h> header file. */ |
|
||||
#define HAVE_SYS_SOCKET_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */ |
|
||||
#define HAVE_SYS_STAT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/time.h> header file. */ |
|
||||
#define HAVE_SYS_TIME_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */ |
|
||||
#define HAVE_SYS_TYPES_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/uio.h> header file. */ |
|
||||
#define HAVE_SYS_UIO_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <time.h> header file. */ |
|
||||
#define HAVE_TIME_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <unistd.h> header file. */ |
|
||||
#define HAVE_UNISTD_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the windows.h header file. */ |
|
||||
/* #undef HAVE_WINDOWS_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the winsock2.h header file. */ |
|
||||
/* #undef HAVE_WINSOCK2_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the winsock.h header file. */ |
|
||||
/* #undef HAVE_WINSOCK_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the writev function. */ |
|
||||
#define HAVE_WRITEV 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ws2tcpip.h header file. */ |
|
||||
/* #undef HAVE_WS2TCPIP_H */ |
|
||||
|
|
||||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
|
||||
*/ |
|
||||
#define LT_OBJDIR ".libs/" |
|
||||
|
|
||||
/* Define to 1 if you are building a native Windows target. */ |
|
||||
/* #undef NATIVE_WINDOWS */ |
|
||||
|
|
||||
/* Define to 1 if you need the malloc.h header file even with stdlib.h */ |
|
||||
/* #undef NEED_MALLOC_H */ |
|
||||
|
|
||||
/* Define to 1 if you need the memory.h header file even with stdlib.h */ |
|
||||
/* #undef NEED_MEMORY_H */ |
|
||||
|
|
||||
/* Define to 1 if _REENTRANT preprocessor symbol must be defined. */ |
|
||||
/* #undef NEED_REENTRANT */ |
|
||||
|
|
||||
/* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */ |
|
||||
/* #undef NEED_THREAD_SAFE */ |
|
||||
|
|
||||
/* Define to 1 if your C compiler doesn't accept -c and -o together. */ |
|
||||
/* #undef NO_MINUS_C_MINUS_O */ |
|
||||
|
|
||||
/* cpu-machine-OS */ |
|
||||
#define OS "i686-pc-linux-gnu" |
|
||||
|
|
||||
/* Name of package */ |
|
||||
#define PACKAGE "c-ares" |
|
||||
|
|
||||
/* Define to the address where bug reports for this package should be sent. */ |
|
||||
#define PACKAGE_BUGREPORT "c-ares mailing list => http://cool.haxx.se/mailman/listinfo/c-ares"
|
|
||||
|
|
||||
/* Define to the full name of this package. */ |
|
||||
#define PACKAGE_NAME "c-ares" |
|
||||
|
|
||||
/* Define to the full name and version of this package. */ |
|
||||
#define PACKAGE_STRING "c-ares 1.7.1" |
|
||||
|
|
||||
/* Define to the one symbol short name of this package. */ |
|
||||
#define PACKAGE_TARNAME "c-ares" |
|
||||
|
|
||||
/* Define to the home page for this package. */ |
|
||||
#define PACKAGE_URL "" |
|
||||
|
|
||||
/* Define to the version of this package. */ |
|
||||
#define PACKAGE_VERSION "1.7.1" |
|
||||
|
|
||||
/* a suitable file/device to read random data from */ |
|
||||
#define RANDOM_FILE "/dev/urandom" |
|
||||
|
|
||||
/* Define to the type of arg 1 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG1 int |
|
||||
|
|
||||
/* Define to the type pointed by arg 2 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG2 void |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 2 for recvfrom is void. */ |
|
||||
#define RECVFROM_TYPE_ARG2_IS_VOID 1 |
|
||||
|
|
||||
/* Define to the type of arg 3 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG3 size_t |
|
||||
|
|
||||
/* Define to the type of arg 4 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the type pointed by arg 5 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG5 struct sockaddr |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 5 for recvfrom is void. */ |
|
||||
/* #undef RECVFROM_TYPE_ARG5_IS_VOID */ |
|
||||
|
|
||||
/* Define to the type pointed by arg 6 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG6 socklen_t |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 6 for recvfrom is void. */ |
|
||||
/* #undef RECVFROM_TYPE_ARG6_IS_VOID */ |
|
||||
|
|
||||
/* Define to the function return type for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_RETV int |
|
||||
|
|
||||
/* Define to the type of arg 1 for recv. */ |
|
||||
#define RECV_TYPE_ARG1 int |
|
||||
|
|
||||
/* Define to the type of arg 2 for recv. */ |
|
||||
#define RECV_TYPE_ARG2 void * |
|
||||
|
|
||||
/* Define to the type of arg 3 for recv. */ |
|
||||
#define RECV_TYPE_ARG3 size_t |
|
||||
|
|
||||
/* Define to the type of arg 4 for recv. */ |
|
||||
#define RECV_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the function return type for recv. */ |
|
||||
#define RECV_TYPE_RETV int |
|
||||
|
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */ |
|
||||
#define RETSIGTYPE void |
|
||||
|
|
||||
/* Define to the type qualifier of arg 2 for send. */ |
|
||||
#define SEND_QUAL_ARG2 const |
|
||||
|
|
||||
/* Define to the type of arg 1 for send. */ |
|
||||
#define SEND_TYPE_ARG1 int |
|
||||
|
|
||||
/* Define to the type of arg 2 for send. */ |
|
||||
#define SEND_TYPE_ARG2 void * |
|
||||
|
|
||||
/* Define to the type of arg 3 for send. */ |
|
||||
#define SEND_TYPE_ARG3 size_t |
|
||||
|
|
||||
/* Define to the type of arg 4 for send. */ |
|
||||
#define SEND_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the function return type for send. */ |
|
||||
#define SEND_TYPE_RETV int |
|
||||
|
|
||||
/* The size of `int', as computed by sizeof. */ |
|
||||
#define SIZEOF_INT 4 |
|
||||
|
|
||||
/* The size of `long', as computed by sizeof. */ |
|
||||
#define SIZEOF_LONG 4 |
|
||||
|
|
||||
/* The size of `size_t', as computed by sizeof. */ |
|
||||
#define SIZEOF_SIZE_T 4 |
|
||||
|
|
||||
/* The size of `struct in6_addr', as computed by sizeof. */ |
|
||||
#define SIZEOF_STRUCT_IN6_ADDR 16 |
|
||||
|
|
||||
/* The size of `struct in_addr', as computed by sizeof. */ |
|
||||
#define SIZEOF_STRUCT_IN_ADDR 4 |
|
||||
|
|
||||
/* The size of `time_t', as computed by sizeof. */ |
|
||||
#define SIZEOF_TIME_T 4 |
|
||||
|
|
||||
/* Define to 1 if you have the ANSI C header files. */ |
|
||||
#define STDC_HEADERS 1 |
|
||||
|
|
||||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ |
|
||||
#define TIME_WITH_SYS_TIME 1 |
|
||||
|
|
||||
/* Define to disable non-blocking sockets. */ |
|
||||
/* #undef USE_BLOCKING_SOCKETS */ |
|
||||
|
|
||||
/* Version number of package */ |
|
||||
#define VERSION "1.7.1" |
|
||||
|
|
||||
/* Define to avoid automatic inclusion of winsock.h */ |
|
||||
/* #undef WIN32_LEAN_AND_MEAN */ |
|
||||
|
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
|
||||
significant byte first (like Motorola and SPARC, unlike Intel). */ |
|
||||
#if defined AC_APPLE_UNIVERSAL_BUILD |
|
||||
# if defined __BIG_ENDIAN__ |
|
||||
# define WORDS_BIGENDIAN 1 |
|
||||
# endif |
|
||||
#else |
|
||||
# ifndef WORDS_BIGENDIAN |
|
||||
/* # undef WORDS_BIGENDIAN */ |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/* Define to 1 if OS is AIX. */ |
|
||||
#ifndef _ALL_SOURCE |
|
||||
/* # undef _ALL_SOURCE */ |
|
||||
#endif |
|
||||
|
|
||||
/* Number of bits in a file offset, on hosts where this is settable. */ |
|
||||
#define _FILE_OFFSET_BITS 64 |
|
||||
|
|
||||
/* Define for large files, on AIX-style hosts. */ |
|
||||
/* #undef _LARGE_FILES */ |
|
||||
|
|
||||
/* Define to empty if `const' does not conform to ANSI C. */ |
|
||||
/* #undef const */ |
|
||||
|
|
||||
/* Type to use in place of in_addr_t when system does not provide it. */ |
|
||||
/* #undef in_addr_t */ |
|
||||
|
|
||||
/* Define to `unsigned int' if <sys/types.h> does not define. */ |
|
||||
/* #undef size_t */ |
|
||||
|
|
||||
/* the signed version of size_t */ |
|
||||
/* #undef ssize_t */ |
|
@ -1,198 +0,0 @@ |
|||||
#ifndef HEADER_CARES_SETUP_H |
|
||||
#define HEADER_CARES_SETUP_H |
|
||||
|
|
||||
/* $Id$ */ |
|
||||
|
|
||||
/* Copyright (C) 2004 - 2009 by Daniel Stenberg et al
|
|
||||
* |
|
||||
* Permission to use, copy, modify, and distribute this software and its |
|
||||
* documentation for any purpose and without fee is hereby granted, provided |
|
||||
* that the above copyright notice appear in all copies and that both that |
|
||||
* copyright notice and this permission notice appear in supporting |
|
||||
* documentation, and that the name of M.I.T. not be used in advertising or |
|
||||
* publicity pertaining to distribution of the software without specific, |
|
||||
* written prior permission. M.I.T. makes no representations about the |
|
||||
* suitability of this software for any purpose. It is provided "as is" |
|
||||
* without express or implied warranty. |
|
||||
*/ |
|
||||
|
|
||||
/*
|
|
||||
* Define WIN32 when build target is Win32 API |
|
||||
*/ |
|
||||
|
|
||||
#if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32) |
|
||||
#define WIN32 |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Include configuration script results or hand-crafted |
|
||||
* configuration file for platforms which lack config tool. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef HAVE_CONFIG_H |
|
||||
#include "ares_config.h" |
|
||||
#else |
|
||||
|
|
||||
#ifdef WIN32 |
|
||||
#include "config-win32.h" |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HAVE_CONFIG_H */ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* Definition of preprocessor macros/symbols which modify compiler */ |
|
||||
/* behaviour or generated code characteristics must be done here, */ |
|
||||
/* as appropriate, before any system header file is included. It is */ |
|
||||
/* also possible to have them defined in the config file included */ |
|
||||
/* before this point. As a result of all this we frown inclusion of */ |
|
||||
/* system header files in our config files, avoid this at any cost. */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* AIX 4.3 and newer needs _THREAD_SAFE defined to build |
|
||||
* proper reentrant code. Others may also need it. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef NEED_THREAD_SAFE |
|
||||
# ifndef _THREAD_SAFE |
|
||||
# define _THREAD_SAFE |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Tru64 needs _REENTRANT set for a few function prototypes and |
|
||||
* things to appear in the system header files. Unixware needs it |
|
||||
* to build proper reentrant code. Others may also need it. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef NEED_REENTRANT |
|
||||
# ifndef _REENTRANT |
|
||||
# define _REENTRANT |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* If you need to include a system header file for your platform, */ |
|
||||
/* please, do it beyond the point further indicated in this file. */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* c-ares external interface definitions are also used internally, |
|
||||
* and might also include required system header files to define them. |
|
||||
*/ |
|
||||
|
|
||||
#include <ares_build.h> |
|
||||
|
|
||||
/*
|
|
||||
* Compile time sanity checks must also be done when building the library. |
|
||||
*/ |
|
||||
|
|
||||
#include <ares_rules.h> |
|
||||
|
|
||||
/* ================================================================= */ |
|
||||
/* No system header file shall be included in this file before this */ |
|
||||
/* point. The only allowed ones are those included from ares_build.h */ |
|
||||
/* ================================================================= */ |
|
||||
|
|
||||
/*
|
|
||||
* Include header files for windows builds before redefining anything. |
|
||||
* Use this preproessor block only to include or exclude windows.h, |
|
||||
* winsock2.h, ws2tcpip.h or winsock.h. Any other windows thing belongs |
|
||||
* to any other further and independent block. Under Cygwin things work |
|
||||
* just as under linux (e.g. <sys/socket.h>) and the winsock headers should |
|
||||
* never be included when __CYGWIN__ is defined. configure script takes |
|
||||
* care of this, not defining HAVE_WINDOWS_H, HAVE_WINSOCK_H, HAVE_WINSOCK2_H, |
|
||||
* neither HAVE_WS2TCPIP_H when __CYGWIN__ is defined. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef HAVE_WINDOWS_H |
|
||||
# ifndef WIN32_LEAN_AND_MEAN |
|
||||
# define WIN32_LEAN_AND_MEAN |
|
||||
# endif |
|
||||
# include <windows.h> |
|
||||
# ifdef HAVE_WINSOCK2_H |
|
||||
# include <winsock2.h> |
|
||||
# ifdef HAVE_WS2TCPIP_H |
|
||||
# include <ws2tcpip.h> |
|
||||
# endif |
|
||||
# else |
|
||||
# ifdef HAVE_WINSOCK_H |
|
||||
# include <winsock.h> |
|
||||
# endif |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Define USE_WINSOCK to 2 if we have and use WINSOCK2 API, else |
|
||||
* define USE_WINSOCK to 1 if we have and use WINSOCK API, else |
|
||||
* undefine USE_WINSOCK. |
|
||||
*/ |
|
||||
|
|
||||
#undef USE_WINSOCK |
|
||||
|
|
||||
#ifdef HAVE_WINSOCK2_H |
|
||||
# define USE_WINSOCK 2 |
|
||||
#else |
|
||||
# ifdef HAVE_WINSOCK_H |
|
||||
# define USE_WINSOCK 1 |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Work-arounds for systems without configure support |
|
||||
*/ |
|
||||
|
|
||||
#ifndef HAVE_CONFIG_H |
|
||||
|
|
||||
#if !defined(HAVE_SYS_TIME_H) && !defined(_MSC_VER) && !defined(__WATCOMC__) |
|
||||
#define HAVE_SYS_TIME_H |
|
||||
#endif |
|
||||
|
|
||||
#if !defined(HAVE_UNISTD_H) && !defined(_MSC_VER) |
|
||||
#define HAVE_UNISTD_H 1 |
|
||||
#endif |
|
||||
|
|
||||
#if !defined(HAVE_SYS_UIO_H) && !defined(WIN32) && !defined(MSDOS) |
|
||||
#define HAVE_SYS_UIO_H |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HAVE_CONFIG_H */ |
|
||||
|
|
||||
#ifdef __POCC__ |
|
||||
# include <sys/types.h> |
|
||||
# include <unistd.h> |
|
||||
# define ESRCH 3 |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Recent autoconf versions define these symbols in ares_config.h. We don't |
|
||||
* want them (since they collide with the libcurl ones when we build |
|
||||
* --enable-debug) so we undef them again here. |
|
||||
*/ |
|
||||
|
|
||||
#undef PACKAGE_STRING |
|
||||
#undef PACKAGE_TARNAME |
|
||||
#undef PACKAGE_VERSION |
|
||||
#undef PACKAGE_BUGREPORT |
|
||||
#undef PACKAGE_NAME |
|
||||
#undef VERSION |
|
||||
#undef PACKAGE |
|
||||
|
|
||||
/* IPv6 compatibility */ |
|
||||
#if !defined(HAVE_AF_INET6) |
|
||||
#if defined(HAVE_PF_INET6) |
|
||||
#define AF_INET6 PF_INET6 |
|
||||
#else |
|
||||
#define AF_INET6 AF_MAX+1 |
|
||||
#endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Include macros and defines that should only be processed once. |
|
||||
*/ |
|
||||
|
|
||||
#ifndef __SETUP_ONCE_H |
|
||||
#include "setup_once.h" |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HEADER_CARES_SETUP_H */ |
|
@ -1,112 +0,0 @@ |
|||||
/* ares_build.h. Generated from ares_build.h.in by configure. */ |
|
||||
#ifndef __CARES_BUILD_H |
|
||||
#define __CARES_BUILD_H |
|
||||
|
|
||||
/* $Id$ */ |
|
||||
|
|
||||
/* Copyright (C) 2009 by Daniel Stenberg et al
|
|
||||
* |
|
||||
* Permission to use, copy, modify, and distribute this software and its |
|
||||
* documentation for any purpose and without fee is hereby granted, provided |
|
||||
* that the above copyright notice appear in all copies and that both that |
|
||||
* copyright notice and this permission notice appear in supporting |
|
||||
* documentation, and that the name of M.I.T. not be used in advertising or |
|
||||
* publicity pertaining to distribution of the software without specific, |
|
||||
* written prior permission. M.I.T. makes no representations about the |
|
||||
* suitability of this software for any purpose. It is provided "as is" |
|
||||
* without express or implied warranty. |
|
||||
*/ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* NOTES FOR CONFIGURE CAPABLE SYSTEMS */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* NOTE 1: |
|
||||
* ------- |
|
||||
* |
|
||||
* Nothing in this file is intended to be modified or adjusted by the |
|
||||
* c-ares library user nor by the c-ares library builder. |
|
||||
* |
|
||||
* If you think that something actually needs to be changed, adjusted |
|
||||
* or fixed in this file, then, report it on the c-ares development |
|
||||
* mailing list: http://cool.haxx.se/mailman/listinfo/c-ares/
|
|
||||
* |
|
||||
* This header file shall only export symbols which are 'cares' or 'CARES' |
|
||||
* prefixed, otherwise public name space would be polluted. |
|
||||
* |
|
||||
* NOTE 2: |
|
||||
* ------- |
|
||||
* |
|
||||
* Right now you might be staring at file ares_build.h.in or ares_build.h, |
|
||||
* this is due to the following reason: |
|
||||
* |
|
||||
* On systems capable of running the configure script, the configure process |
|
||||
* will overwrite the distributed ares_build.h file with one that is suitable |
|
||||
* and specific to the library being configured and built, which is generated |
|
||||
* from the ares_build.h.in template file. |
|
||||
* |
|
||||
*/ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
#ifdef CARES_SIZEOF_LONG |
|
||||
# error "CARES_SIZEOF_LONG shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_SIZEOF_LONG_already_defined |
|
||||
#endif |
|
||||
|
|
||||
#ifdef CARES_TYPEOF_ARES_SOCKLEN_T |
|
||||
# error "CARES_TYPEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_TYPEOF_ARES_SOCKLEN_T_already_defined |
|
||||
#endif |
|
||||
|
|
||||
#ifdef CARES_SIZEOF_ARES_SOCKLEN_T |
|
||||
# error "CARES_SIZEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_SIZEOF_ARES_SOCKLEN_T_already_defined |
|
||||
#endif |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* EXTERNAL INTERFACE SETTINGS FOR CONFIGURE CAPABLE SYSTEMS ONLY */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file ws2tcpip.h must be included by the external interface. */ |
|
||||
/* #undef CARES_PULL_WS2TCPIP_H */ |
|
||||
#ifdef CARES_PULL_WS2TCPIP_H |
|
||||
# ifndef WIN32_LEAN_AND_MEAN |
|
||||
# define WIN32_LEAN_AND_MEAN |
|
||||
# endif |
|
||||
# include <windows.h> |
|
||||
# include <winsock2.h> |
|
||||
# include <ws2tcpip.h> |
|
||||
#endif |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file sys/types.h must be included by the external interface. */ |
|
||||
#define CARES_PULL_SYS_TYPES_H 1 |
|
||||
#ifdef CARES_PULL_SYS_TYPES_H |
|
||||
# include <sys/types.h> |
|
||||
#endif |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file sys/socket.h must be included by the external interface. */ |
|
||||
#define CARES_PULL_SYS_SOCKET_H 1 |
|
||||
#ifdef CARES_PULL_SYS_SOCKET_H |
|
||||
# include <sys/socket.h> |
|
||||
#endif |
|
||||
|
|
||||
/* The size of `long', as computed by sizeof. */ |
|
||||
#define CARES_SIZEOF_LONG 8 |
|
||||
|
|
||||
/* Integral data type used for ares_socklen_t. */ |
|
||||
#define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t |
|
||||
|
|
||||
/* The size of `ares_socklen_t', as computed by sizeof. */ |
|
||||
#define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
|
||||
|
|
||||
/* Data type definition of ares_socklen_t. */ |
|
||||
typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t; |
|
||||
|
|
||||
#endif /* __CARES_BUILD_H */ |
|
@ -1,513 +0,0 @@ |
|||||
/* ares_config.h. Generated from ares_config.h.in by configure. */ |
|
||||
/* ares_config.h.in. Generated from configure.ac by autoheader. */ |
|
||||
|
|
||||
/* Define if building universal (internal helper macro) */ |
|
||||
/* #undef AC_APPLE_UNIVERSAL_BUILD */ |
|
||||
|
|
||||
/* define this if ares is built for a big endian system */ |
|
||||
/* #undef ARES_BIG_ENDIAN */ |
|
||||
|
|
||||
/* when building as static part of libcurl */ |
|
||||
/* #undef BUILDING_LIBCURL */ |
|
||||
|
|
||||
/* when building c-ares library */ |
|
||||
/* #undef CARES_BUILDING_LIBRARY */ |
|
||||
|
|
||||
/* when not building a shared library */ |
|
||||
/* #undef CARES_STATICLIB */ |
|
||||
|
|
||||
/* Define to 1 to enable hiding of library internal symbols. */ |
|
||||
#define CARES_SYMBOL_HIDING 1 |
|
||||
|
|
||||
/* Definition to make a library symbol externally visible. */ |
|
||||
#define CARES_SYMBOL_SCOPE_EXTERN __attribute__ ((visibility ("default"))) |
|
||||
|
|
||||
/* if a /etc/inet dir is being used */ |
|
||||
/* #undef ETC_INET */ |
|
||||
|
|
||||
/* Define to the type qualifier of arg 1 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_QUAL_ARG1 const |
|
||||
|
|
||||
/* Define to the type of arg 1 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG1 struct sockaddr * |
|
||||
|
|
||||
/* Define to the type of arg 2 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG2 socklen_t |
|
||||
|
|
||||
/* Define to the type of args 4 and 6 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG46 socklen_t |
|
||||
|
|
||||
/* Define to the type of arg 7 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG7 unsigned int |
|
||||
|
|
||||
/* Specifies the number of arguments to getservbyport_r */ |
|
||||
#define GETSERVBYPORT_R_ARGS 6 |
|
||||
|
|
||||
/* Specifies the size of the buffer to pass to getservbyport_r */ |
|
||||
#define GETSERVBYPORT_R_BUFSIZE 4096 |
|
||||
|
|
||||
/* Define to 1 if you have AF_INET6. */ |
|
||||
#define HAVE_AF_INET6 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/inet.h> header file. */ |
|
||||
#define HAVE_ARPA_INET_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/nameser_compat.h> header file. */ |
|
||||
#define HAVE_ARPA_NAMESER_COMPAT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/nameser.h> header file. */ |
|
||||
#define HAVE_ARPA_NAMESER_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <assert.h> header file. */ |
|
||||
#define HAVE_ASSERT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `bitncmp' function. */ |
|
||||
/* #undef HAVE_BITNCMP */ |
|
||||
|
|
||||
/* Define to 1 if bool is an available type. */ |
|
||||
#define HAVE_BOOL_T 1 |
|
||||
|
|
||||
/* Define to 1 if you have the clock_gettime function and monotonic timer. */ |
|
||||
#define HAVE_CLOCK_GETTIME_MONOTONIC 1 |
|
||||
|
|
||||
/* Define to 1 if you have the closesocket function. */ |
|
||||
/* #undef HAVE_CLOSESOCKET */ |
|
||||
|
|
||||
/* Define to 1 if you have the CloseSocket camel case function. */ |
|
||||
/* #undef HAVE_CLOSESOCKET_CAMEL */ |
|
||||
|
|
||||
/* Define to 1 if you have the connect function. */ |
|
||||
#define HAVE_CONNECT 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */ |
|
||||
#define HAVE_DLFCN_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <errno.h> header file. */ |
|
||||
#define HAVE_ERRNO_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the fcntl function. */ |
|
||||
#define HAVE_FCNTL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <fcntl.h> header file. */ |
|
||||
#define HAVE_FCNTL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working fcntl O_NONBLOCK function. */ |
|
||||
#define HAVE_FCNTL_O_NONBLOCK 1 |
|
||||
|
|
||||
/* Define to 1 if you have the freeaddrinfo function. */ |
|
||||
#define HAVE_FREEADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working getaddrinfo function. */ |
|
||||
#define HAVE_GETADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if the getaddrinfo function is threadsafe. */ |
|
||||
#define HAVE_GETADDRINFO_THREADSAFE 1 |
|
||||
|
|
||||
/* Define to 1 if you have the gethostbyaddr function. */ |
|
||||
#define HAVE_GETHOSTBYADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have the gethostbyname function. */ |
|
||||
#define HAVE_GETHOSTBYNAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the gethostname function. */ |
|
||||
#define HAVE_GETHOSTNAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the getnameinfo function. */ |
|
||||
#define HAVE_GETNAMEINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have the getservbyport_r function. */ |
|
||||
#define HAVE_GETSERVBYPORT_R 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `gettimeofday' function. */ |
|
||||
#define HAVE_GETTIMEOFDAY 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `if_indextoname' function. */ |
|
||||
#define HAVE_IF_INDEXTONAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `inet_net_pton' function. */ |
|
||||
/* #undef HAVE_INET_NET_PTON */ |
|
||||
|
|
||||
/* Define to 1 if inet_net_pton supports IPv6. */ |
|
||||
/* #undef HAVE_INET_NET_PTON_IPV6 */ |
|
||||
|
|
||||
/* Define to 1 if you have a IPv6 capable working inet_ntop function. */ |
|
||||
#define HAVE_INET_NTOP 1 |
|
||||
|
|
||||
/* Define to 1 if you have a IPv6 capable working inet_pton function. */ |
|
||||
#define HAVE_INET_PTON 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */ |
|
||||
#define HAVE_INTTYPES_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ioctl function. */ |
|
||||
#define HAVE_IOCTL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ioctlsocket function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET */ |
|
||||
|
|
||||
/* Define to 1 if you have the IoctlSocket camel case function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET_CAMEL */ |
|
||||
|
|
||||
/* Define to 1 if you have a working IoctlSocket camel case FIONBIO function.
|
|
||||
*/ |
|
||||
/* #undef HAVE_IOCTLSOCKET_CAMEL_FIONBIO */ |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctlsocket FIONBIO function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET_FIONBIO */ |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctl FIONBIO function. */ |
|
||||
#define HAVE_IOCTL_FIONBIO 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctl SIOCGIFADDR function. */ |
|
||||
#define HAVE_IOCTL_SIOCGIFADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `resolve' library (-lresolve). */ |
|
||||
/* #undef HAVE_LIBRESOLVE */ |
|
||||
|
|
||||
/* Define to 1 if you have the <limits.h> header file. */ |
|
||||
#define HAVE_LIMITS_H 1 |
|
||||
|
|
||||
/* if your compiler supports LL */ |
|
||||
#define HAVE_LL 1 |
|
||||
|
|
||||
/* Define to 1 if the compiler supports the 'long long' data type. */ |
|
||||
#define HAVE_LONGLONG 1 |
|
||||
|
|
||||
/* Define to 1 if you have the malloc.h header file. */ |
|
||||
#define HAVE_MALLOC_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the memory.h header file. */ |
|
||||
#define HAVE_MEMORY_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the MSG_NOSIGNAL flag. */ |
|
||||
#define HAVE_MSG_NOSIGNAL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <netdb.h> header file. */ |
|
||||
#define HAVE_NETDB_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <netinet/in.h> header file. */ |
|
||||
#define HAVE_NETINET_IN_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <netinet/tcp.h> header file. */ |
|
||||
#define HAVE_NETINET_TCP_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <net/if.h> header file. */ |
|
||||
#define HAVE_NET_IF_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have PF_INET6. */ |
|
||||
#define HAVE_PF_INET6 1 |
|
||||
|
|
||||
/* Define to 1 if you have the recv function. */ |
|
||||
#define HAVE_RECV 1 |
|
||||
|
|
||||
/* Define to 1 if you have the recvfrom function. */ |
|
||||
#define HAVE_RECVFROM 1 |
|
||||
|
|
||||
/* Define to 1 if you have the send function. */ |
|
||||
#define HAVE_SEND 1 |
|
||||
|
|
||||
/* Define to 1 if you have the setsockopt function. */ |
|
||||
#define HAVE_SETSOCKOPT 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working setsockopt SO_NONBLOCK function. */ |
|
||||
/* #undef HAVE_SETSOCKOPT_SO_NONBLOCK */ |
|
||||
|
|
||||
/* Define to 1 if you have the <signal.h> header file. */ |
|
||||
#define HAVE_SIGNAL_H 1 |
|
||||
|
|
||||
/* Define to 1 if sig_atomic_t is an available typedef. */ |
|
||||
#define HAVE_SIG_ATOMIC_T 1 |
|
||||
|
|
||||
/* Define to 1 if sig_atomic_t is already defined as volatile. */ |
|
||||
/* #undef HAVE_SIG_ATOMIC_T_VOLATILE */ |
|
||||
|
|
||||
/* Define to 1 if your struct sockaddr_in6 has sin6_scope_id. */ |
|
||||
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
|
||||
|
|
||||
/* Define to 1 if you have the socket function. */ |
|
||||
#define HAVE_SOCKET 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <socket.h> header file. */ |
|
||||
/* #undef HAVE_SOCKET_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the <stdbool.h> header file. */ |
|
||||
#define HAVE_STDBOOL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <stdint.h> header file. */ |
|
||||
#define HAVE_STDINT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */ |
|
||||
#define HAVE_STDLIB_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strcasecmp function. */ |
|
||||
#define HAVE_STRCASECMP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strcmpi function. */ |
|
||||
/* #undef HAVE_STRCMPI */ |
|
||||
|
|
||||
/* Define to 1 if you have the strdup function. */ |
|
||||
#define HAVE_STRDUP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the stricmp function. */ |
|
||||
/* #undef HAVE_STRICMP */ |
|
||||
|
|
||||
/* Define to 1 if you have the <strings.h> header file. */ |
|
||||
#define HAVE_STRINGS_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <string.h> header file. */ |
|
||||
#define HAVE_STRING_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strncasecmp function. */ |
|
||||
#define HAVE_STRNCASECMP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strncmpi function. */ |
|
||||
/* #undef HAVE_STRNCMPI */ |
|
||||
|
|
||||
/* Define to 1 if you have the strnicmp function. */ |
|
||||
/* #undef HAVE_STRNICMP */ |
|
||||
|
|
||||
/* Define to 1 if you have the <stropts.h> header file. */ |
|
||||
#define HAVE_STROPTS_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have struct addrinfo. */ |
|
||||
#define HAVE_STRUCT_ADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have struct in6_addr. */ |
|
||||
#define HAVE_STRUCT_IN6_ADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have struct sockaddr_in6. */ |
|
||||
#define HAVE_STRUCT_SOCKADDR_IN6 1 |
|
||||
|
|
||||
/* if struct sockaddr_storage is defined */ |
|
||||
#define HAVE_STRUCT_SOCKADDR_STORAGE 1 |
|
||||
|
|
||||
/* Define to 1 if you have the timeval struct. */ |
|
||||
#define HAVE_STRUCT_TIMEVAL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/ioctl.h> header file. */ |
|
||||
#define HAVE_SYS_IOCTL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/param.h> header file. */ |
|
||||
#define HAVE_SYS_PARAM_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/select.h> header file. */ |
|
||||
#define HAVE_SYS_SELECT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/socket.h> header file. */ |
|
||||
#define HAVE_SYS_SOCKET_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */ |
|
||||
#define HAVE_SYS_STAT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/time.h> header file. */ |
|
||||
#define HAVE_SYS_TIME_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */ |
|
||||
#define HAVE_SYS_TYPES_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/uio.h> header file. */ |
|
||||
#define HAVE_SYS_UIO_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <time.h> header file. */ |
|
||||
#define HAVE_TIME_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <unistd.h> header file. */ |
|
||||
#define HAVE_UNISTD_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the windows.h header file. */ |
|
||||
/* #undef HAVE_WINDOWS_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the winsock2.h header file. */ |
|
||||
/* #undef HAVE_WINSOCK2_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the winsock.h header file. */ |
|
||||
/* #undef HAVE_WINSOCK_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the writev function. */ |
|
||||
#define HAVE_WRITEV 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ws2tcpip.h header file. */ |
|
||||
/* #undef HAVE_WS2TCPIP_H */ |
|
||||
|
|
||||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
|
||||
*/ |
|
||||
#define LT_OBJDIR ".libs/" |
|
||||
|
|
||||
/* Define to 1 if you are building a native Windows target. */ |
|
||||
/* #undef NATIVE_WINDOWS */ |
|
||||
|
|
||||
/* Define to 1 if you need the malloc.h header file even with stdlib.h */ |
|
||||
/* #undef NEED_MALLOC_H */ |
|
||||
|
|
||||
/* Define to 1 if you need the memory.h header file even with stdlib.h */ |
|
||||
/* #undef NEED_MEMORY_H */ |
|
||||
|
|
||||
/* Define to 1 if _REENTRANT preprocessor symbol must be defined. */ |
|
||||
/* #undef NEED_REENTRANT */ |
|
||||
|
|
||||
/* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */ |
|
||||
/* #undef NEED_THREAD_SAFE */ |
|
||||
|
|
||||
/* Define to 1 if your C compiler doesn't accept -c and -o together. */ |
|
||||
/* #undef NO_MINUS_C_MINUS_O */ |
|
||||
|
|
||||
/* cpu-machine-OS */ |
|
||||
#define OS "x86_64-unknown-linux-gnu" |
|
||||
|
|
||||
/* Name of package */ |
|
||||
#define PACKAGE "c-ares" |
|
||||
|
|
||||
/* Define to the address where bug reports for this package should be sent. */ |
|
||||
#define PACKAGE_BUGREPORT "c-ares mailing list => http://cool.haxx.se/mailman/listinfo/c-ares"
|
|
||||
|
|
||||
/* Define to the full name of this package. */ |
|
||||
#define PACKAGE_NAME "c-ares" |
|
||||
|
|
||||
/* Define to the full name and version of this package. */ |
|
||||
#define PACKAGE_STRING "c-ares 1.7.1" |
|
||||
|
|
||||
/* Define to the one symbol short name of this package. */ |
|
||||
#define PACKAGE_TARNAME "c-ares" |
|
||||
|
|
||||
/* Define to the home page for this package. */ |
|
||||
#define PACKAGE_URL "" |
|
||||
|
|
||||
/* Define to the version of this package. */ |
|
||||
#define PACKAGE_VERSION "1.7.1" |
|
||||
|
|
||||
/* a suitable file/device to read random data from */ |
|
||||
#define RANDOM_FILE "/dev/urandom" |
|
||||
|
|
||||
/* Define to the type of arg 1 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG1 int |
|
||||
|
|
||||
/* Define to the type pointed by arg 2 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG2 void |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 2 for recvfrom is void. */ |
|
||||
#define RECVFROM_TYPE_ARG2_IS_VOID 1 |
|
||||
|
|
||||
/* Define to the type of arg 3 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG3 size_t |
|
||||
|
|
||||
/* Define to the type of arg 4 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the type pointed by arg 5 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG5 struct sockaddr |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 5 for recvfrom is void. */ |
|
||||
/* #undef RECVFROM_TYPE_ARG5_IS_VOID */ |
|
||||
|
|
||||
/* Define to the type pointed by arg 6 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG6 socklen_t |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 6 for recvfrom is void. */ |
|
||||
/* #undef RECVFROM_TYPE_ARG6_IS_VOID */ |
|
||||
|
|
||||
/* Define to the function return type for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_RETV ssize_t |
|
||||
|
|
||||
/* Define to the type of arg 1 for recv. */ |
|
||||
#define RECV_TYPE_ARG1 int |
|
||||
|
|
||||
/* Define to the type of arg 2 for recv. */ |
|
||||
#define RECV_TYPE_ARG2 void * |
|
||||
|
|
||||
/* Define to the type of arg 3 for recv. */ |
|
||||
#define RECV_TYPE_ARG3 size_t |
|
||||
|
|
||||
/* Define to the type of arg 4 for recv. */ |
|
||||
#define RECV_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the function return type for recv. */ |
|
||||
#define RECV_TYPE_RETV ssize_t |
|
||||
|
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */ |
|
||||
#define RETSIGTYPE void |
|
||||
|
|
||||
/* Define to the type qualifier of arg 2 for send. */ |
|
||||
#define SEND_QUAL_ARG2 const |
|
||||
|
|
||||
/* Define to the type of arg 1 for send. */ |
|
||||
#define SEND_TYPE_ARG1 int |
|
||||
|
|
||||
/* Define to the type of arg 2 for send. */ |
|
||||
#define SEND_TYPE_ARG2 void * |
|
||||
|
|
||||
/* Define to the type of arg 3 for send. */ |
|
||||
#define SEND_TYPE_ARG3 size_t |
|
||||
|
|
||||
/* Define to the type of arg 4 for send. */ |
|
||||
#define SEND_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the function return type for send. */ |
|
||||
#define SEND_TYPE_RETV ssize_t |
|
||||
|
|
||||
/* The size of `int', as computed by sizeof. */ |
|
||||
#define SIZEOF_INT 4 |
|
||||
|
|
||||
/* The size of `long', as computed by sizeof. */ |
|
||||
#define SIZEOF_LONG 8 |
|
||||
|
|
||||
/* The size of `size_t', as computed by sizeof. */ |
|
||||
#define SIZEOF_SIZE_T 8 |
|
||||
|
|
||||
/* The size of `struct in6_addr', as computed by sizeof. */ |
|
||||
#define SIZEOF_STRUCT_IN6_ADDR 16 |
|
||||
|
|
||||
/* The size of `struct in_addr', as computed by sizeof. */ |
|
||||
#define SIZEOF_STRUCT_IN_ADDR 4 |
|
||||
|
|
||||
/* The size of `time_t', as computed by sizeof. */ |
|
||||
#define SIZEOF_TIME_T 8 |
|
||||
|
|
||||
/* Define to 1 if you have the ANSI C header files. */ |
|
||||
#define STDC_HEADERS 1 |
|
||||
|
|
||||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ |
|
||||
#define TIME_WITH_SYS_TIME 1 |
|
||||
|
|
||||
/* Define to disable non-blocking sockets. */ |
|
||||
/* #undef USE_BLOCKING_SOCKETS */ |
|
||||
|
|
||||
/* Version number of package */ |
|
||||
#define VERSION "1.7.1" |
|
||||
|
|
||||
/* Define to avoid automatic inclusion of winsock.h */ |
|
||||
/* #undef WIN32_LEAN_AND_MEAN */ |
|
||||
|
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
|
||||
significant byte first (like Motorola and SPARC, unlike Intel). */ |
|
||||
#if defined AC_APPLE_UNIVERSAL_BUILD |
|
||||
# if defined __BIG_ENDIAN__ |
|
||||
# define WORDS_BIGENDIAN 1 |
|
||||
# endif |
|
||||
#else |
|
||||
# ifndef WORDS_BIGENDIAN |
|
||||
/* # undef WORDS_BIGENDIAN */ |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/* Define to 1 if OS is AIX. */ |
|
||||
#ifndef _ALL_SOURCE |
|
||||
/* # undef _ALL_SOURCE */ |
|
||||
#endif |
|
||||
|
|
||||
/* Number of bits in a file offset, on hosts where this is settable. */ |
|
||||
/* #undef _FILE_OFFSET_BITS */ |
|
||||
|
|
||||
/* Define for large files, on AIX-style hosts. */ |
|
||||
/* #undef _LARGE_FILES */ |
|
||||
|
|
||||
/* Define to empty if `const' does not conform to ANSI C. */ |
|
||||
/* #undef const */ |
|
||||
|
|
||||
/* Type to use in place of in_addr_t when system does not provide it. */ |
|
||||
/* #undef in_addr_t */ |
|
||||
|
|
||||
/* Define to `unsigned int' if <sys/types.h> does not define. */ |
|
||||
/* #undef size_t */ |
|
||||
|
|
||||
/* the signed version of size_t */ |
|
||||
/* #undef ssize_t */ |
|
@ -1,198 +0,0 @@ |
|||||
#ifndef HEADER_CARES_SETUP_H |
|
||||
#define HEADER_CARES_SETUP_H |
|
||||
|
|
||||
/* $Id$ */ |
|
||||
|
|
||||
/* Copyright (C) 2004 - 2009 by Daniel Stenberg et al
|
|
||||
* |
|
||||
* Permission to use, copy, modify, and distribute this software and its |
|
||||
* documentation for any purpose and without fee is hereby granted, provided |
|
||||
* that the above copyright notice appear in all copies and that both that |
|
||||
* copyright notice and this permission notice appear in supporting |
|
||||
* documentation, and that the name of M.I.T. not be used in advertising or |
|
||||
* publicity pertaining to distribution of the software without specific, |
|
||||
* written prior permission. M.I.T. makes no representations about the |
|
||||
* suitability of this software for any purpose. It is provided "as is" |
|
||||
* without express or implied warranty. |
|
||||
*/ |
|
||||
|
|
||||
/*
|
|
||||
* Define WIN32 when build target is Win32 API |
|
||||
*/ |
|
||||
|
|
||||
#if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32) |
|
||||
#define WIN32 |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Include configuration script results or hand-crafted |
|
||||
* configuration file for platforms which lack config tool. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef HAVE_CONFIG_H |
|
||||
#include "ares_config.h" |
|
||||
#else |
|
||||
|
|
||||
#ifdef WIN32 |
|
||||
#include "config-win32.h" |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HAVE_CONFIG_H */ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* Definition of preprocessor macros/symbols which modify compiler */ |
|
||||
/* behaviour or generated code characteristics must be done here, */ |
|
||||
/* as appropriate, before any system header file is included. It is */ |
|
||||
/* also possible to have them defined in the config file included */ |
|
||||
/* before this point. As a result of all this we frown inclusion of */ |
|
||||
/* system header files in our config files, avoid this at any cost. */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* AIX 4.3 and newer needs _THREAD_SAFE defined to build |
|
||||
* proper reentrant code. Others may also need it. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef NEED_THREAD_SAFE |
|
||||
# ifndef _THREAD_SAFE |
|
||||
# define _THREAD_SAFE |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Tru64 needs _REENTRANT set for a few function prototypes and |
|
||||
* things to appear in the system header files. Unixware needs it |
|
||||
* to build proper reentrant code. Others may also need it. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef NEED_REENTRANT |
|
||||
# ifndef _REENTRANT |
|
||||
# define _REENTRANT |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* If you need to include a system header file for your platform, */ |
|
||||
/* please, do it beyond the point further indicated in this file. */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* c-ares external interface definitions are also used internally, |
|
||||
* and might also include required system header files to define them. |
|
||||
*/ |
|
||||
|
|
||||
#include <ares_build.h> |
|
||||
|
|
||||
/*
|
|
||||
* Compile time sanity checks must also be done when building the library. |
|
||||
*/ |
|
||||
|
|
||||
#include <ares_rules.h> |
|
||||
|
|
||||
/* ================================================================= */ |
|
||||
/* No system header file shall be included in this file before this */ |
|
||||
/* point. The only allowed ones are those included from ares_build.h */ |
|
||||
/* ================================================================= */ |
|
||||
|
|
||||
/*
|
|
||||
* Include header files for windows builds before redefining anything. |
|
||||
* Use this preproessor block only to include or exclude windows.h, |
|
||||
* winsock2.h, ws2tcpip.h or winsock.h. Any other windows thing belongs |
|
||||
* to any other further and independent block. Under Cygwin things work |
|
||||
* just as under linux (e.g. <sys/socket.h>) and the winsock headers should |
|
||||
* never be included when __CYGWIN__ is defined. configure script takes |
|
||||
* care of this, not defining HAVE_WINDOWS_H, HAVE_WINSOCK_H, HAVE_WINSOCK2_H, |
|
||||
* neither HAVE_WS2TCPIP_H when __CYGWIN__ is defined. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef HAVE_WINDOWS_H |
|
||||
# ifndef WIN32_LEAN_AND_MEAN |
|
||||
# define WIN32_LEAN_AND_MEAN |
|
||||
# endif |
|
||||
# include <windows.h> |
|
||||
# ifdef HAVE_WINSOCK2_H |
|
||||
# include <winsock2.h> |
|
||||
# ifdef HAVE_WS2TCPIP_H |
|
||||
# include <ws2tcpip.h> |
|
||||
# endif |
|
||||
# else |
|
||||
# ifdef HAVE_WINSOCK_H |
|
||||
# include <winsock.h> |
|
||||
# endif |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Define USE_WINSOCK to 2 if we have and use WINSOCK2 API, else |
|
||||
* define USE_WINSOCK to 1 if we have and use WINSOCK API, else |
|
||||
* undefine USE_WINSOCK. |
|
||||
*/ |
|
||||
|
|
||||
#undef USE_WINSOCK |
|
||||
|
|
||||
#ifdef HAVE_WINSOCK2_H |
|
||||
# define USE_WINSOCK 2 |
|
||||
#else |
|
||||
# ifdef HAVE_WINSOCK_H |
|
||||
# define USE_WINSOCK 1 |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Work-arounds for systems without configure support |
|
||||
*/ |
|
||||
|
|
||||
#ifndef HAVE_CONFIG_H |
|
||||
|
|
||||
#if !defined(HAVE_SYS_TIME_H) && !defined(_MSC_VER) && !defined(__WATCOMC__) |
|
||||
#define HAVE_SYS_TIME_H |
|
||||
#endif |
|
||||
|
|
||||
#if !defined(HAVE_UNISTD_H) && !defined(_MSC_VER) |
|
||||
#define HAVE_UNISTD_H 1 |
|
||||
#endif |
|
||||
|
|
||||
#if !defined(HAVE_SYS_UIO_H) && !defined(WIN32) && !defined(MSDOS) |
|
||||
#define HAVE_SYS_UIO_H |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HAVE_CONFIG_H */ |
|
||||
|
|
||||
#ifdef __POCC__ |
|
||||
# include <sys/types.h> |
|
||||
# include <unistd.h> |
|
||||
# define ESRCH 3 |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Recent autoconf versions define these symbols in ares_config.h. We don't |
|
||||
* want them (since they collide with the libcurl ones when we build |
|
||||
* --enable-debug) so we undef them again here. |
|
||||
*/ |
|
||||
|
|
||||
#undef PACKAGE_STRING |
|
||||
#undef PACKAGE_TARNAME |
|
||||
#undef PACKAGE_VERSION |
|
||||
#undef PACKAGE_BUGREPORT |
|
||||
#undef PACKAGE_NAME |
|
||||
#undef VERSION |
|
||||
#undef PACKAGE |
|
||||
|
|
||||
/* IPv6 compatibility */ |
|
||||
#if !defined(HAVE_AF_INET6) |
|
||||
#if defined(HAVE_PF_INET6) |
|
||||
#define AF_INET6 PF_INET6 |
|
||||
#else |
|
||||
#define AF_INET6 AF_MAX+1 |
|
||||
#endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Include macros and defines that should only be processed once. |
|
||||
*/ |
|
||||
|
|
||||
#ifndef __SETUP_ONCE_H |
|
||||
#include "setup_once.h" |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HEADER_CARES_SETUP_H */ |
|
@ -1,112 +0,0 @@ |
|||||
/* ares_build.h. Generated from ares_build.h.in by configure. */ |
|
||||
#ifndef __CARES_BUILD_H |
|
||||
#define __CARES_BUILD_H |
|
||||
|
|
||||
/* $Id$ */ |
|
||||
|
|
||||
/* Copyright (C) 2009 by Daniel Stenberg et al
|
|
||||
* |
|
||||
* Permission to use, copy, modify, and distribute this software and its |
|
||||
* documentation for any purpose and without fee is hereby granted, provided |
|
||||
* that the above copyright notice appear in all copies and that both that |
|
||||
* copyright notice and this permission notice appear in supporting |
|
||||
* documentation, and that the name of M.I.T. not be used in advertising or |
|
||||
* publicity pertaining to distribution of the software without specific, |
|
||||
* written prior permission. M.I.T. makes no representations about the |
|
||||
* suitability of this software for any purpose. It is provided "as is" |
|
||||
* without express or implied warranty. |
|
||||
*/ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* NOTES FOR CONFIGURE CAPABLE SYSTEMS */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* NOTE 1: |
|
||||
* ------- |
|
||||
* |
|
||||
* Nothing in this file is intended to be modified or adjusted by the |
|
||||
* c-ares library user nor by the c-ares library builder. |
|
||||
* |
|
||||
* If you think that something actually needs to be changed, adjusted |
|
||||
* or fixed in this file, then, report it on the c-ares development |
|
||||
* mailing list: http://cool.haxx.se/mailman/listinfo/c-ares/
|
|
||||
* |
|
||||
* This header file shall only export symbols which are 'cares' or 'CARES' |
|
||||
* prefixed, otherwise public name space would be polluted. |
|
||||
* |
|
||||
* NOTE 2: |
|
||||
* ------- |
|
||||
* |
|
||||
* Right now you might be staring at file ares_build.h.in or ares_build.h, |
|
||||
* this is due to the following reason: |
|
||||
* |
|
||||
* On systems capable of running the configure script, the configure process |
|
||||
* will overwrite the distributed ares_build.h file with one that is suitable |
|
||||
* and specific to the library being configured and built, which is generated |
|
||||
* from the ares_build.h.in template file. |
|
||||
* |
|
||||
*/ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
#ifdef CARES_SIZEOF_LONG |
|
||||
# error "CARES_SIZEOF_LONG shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_SIZEOF_LONG_already_defined |
|
||||
#endif |
|
||||
|
|
||||
#ifdef CARES_TYPEOF_ARES_SOCKLEN_T |
|
||||
# error "CARES_TYPEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_TYPEOF_ARES_SOCKLEN_T_already_defined |
|
||||
#endif |
|
||||
|
|
||||
#ifdef CARES_SIZEOF_ARES_SOCKLEN_T |
|
||||
# error "CARES_SIZEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_SIZEOF_ARES_SOCKLEN_T_already_defined |
|
||||
#endif |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* EXTERNAL INTERFACE SETTINGS FOR CONFIGURE CAPABLE SYSTEMS ONLY */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file ws2tcpip.h must be included by the external interface. */ |
|
||||
/* #undef CARES_PULL_WS2TCPIP_H */ |
|
||||
#ifdef CARES_PULL_WS2TCPIP_H |
|
||||
# ifndef WIN32_LEAN_AND_MEAN |
|
||||
# define WIN32_LEAN_AND_MEAN |
|
||||
# endif |
|
||||
# include <windows.h> |
|
||||
# include <winsock2.h> |
|
||||
# include <ws2tcpip.h> |
|
||||
#endif |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file sys/types.h must be included by the external interface. */ |
|
||||
#define CARES_PULL_SYS_TYPES_H 1 |
|
||||
#ifdef CARES_PULL_SYS_TYPES_H |
|
||||
# include <sys/types.h> |
|
||||
#endif |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file sys/socket.h must be included by the external interface. */ |
|
||||
#define CARES_PULL_SYS_SOCKET_H 1 |
|
||||
#ifdef CARES_PULL_SYS_SOCKET_H |
|
||||
# include <sys/socket.h> |
|
||||
#endif |
|
||||
|
|
||||
/* The size of `long', as computed by sizeof. */ |
|
||||
#define CARES_SIZEOF_LONG 4 |
|
||||
|
|
||||
/* Integral data type used for ares_socklen_t. */ |
|
||||
#define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t |
|
||||
|
|
||||
/* The size of `ares_socklen_t', as computed by sizeof. */ |
|
||||
#define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
|
||||
|
|
||||
/* Data type definition of ares_socklen_t. */ |
|
||||
typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t; |
|
||||
|
|
||||
#endif /* __CARES_BUILD_H */ |
|
@ -1,513 +0,0 @@ |
|||||
/* ares_config.h. Generated from ares_config.h.in by configure. */ |
|
||||
/* ares_config.h.in. Generated from configure.ac by autoheader. */ |
|
||||
|
|
||||
/* Define if building universal (internal helper macro) */ |
|
||||
/* #undef AC_APPLE_UNIVERSAL_BUILD */ |
|
||||
|
|
||||
/* define this if ares is built for a big endian system */ |
|
||||
/* #undef ARES_BIG_ENDIAN */ |
|
||||
|
|
||||
/* when building as static part of libcurl */ |
|
||||
/* #undef BUILDING_LIBCURL */ |
|
||||
|
|
||||
/* when building c-ares library */ |
|
||||
/* #undef CARES_BUILDING_LIBRARY */ |
|
||||
|
|
||||
/* when not building a shared library */ |
|
||||
/* #undef CARES_STATICLIB */ |
|
||||
|
|
||||
/* Define to 1 to enable hiding of library internal symbols. */ |
|
||||
/* #undef CARES_SYMBOL_HIDING */ |
|
||||
|
|
||||
/* Definition to make a library symbol externally visible. */ |
|
||||
/* #undef CARES_SYMBOL_SCOPE_EXTERN */ |
|
||||
|
|
||||
/* if a /etc/inet dir is being used */ |
|
||||
/* #undef ETC_INET */ |
|
||||
|
|
||||
/* Define to the type qualifier of arg 1 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_QUAL_ARG1 const |
|
||||
|
|
||||
/* Define to the type of arg 1 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG1 struct sockaddr * |
|
||||
|
|
||||
/* Define to the type of arg 2 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG2 socklen_t |
|
||||
|
|
||||
/* Define to the type of args 4 and 6 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG46 size_t |
|
||||
|
|
||||
/* Define to the type of arg 7 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG7 int |
|
||||
|
|
||||
/* Specifies the number of arguments to getservbyport_r */ |
|
||||
#define GETSERVBYPORT_R_ARGS 4 |
|
||||
|
|
||||
/* Specifies the size of the buffer to pass to getservbyport_r */ |
|
||||
#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data) |
|
||||
|
|
||||
/* Define to 1 if you have AF_INET6. */ |
|
||||
#define HAVE_AF_INET6 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/inet.h> header file. */ |
|
||||
#define HAVE_ARPA_INET_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/nameser_compat.h> header file. */ |
|
||||
/* #undef HAVE_ARPA_NAMESER_COMPAT_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/nameser.h> header file. */ |
|
||||
#define HAVE_ARPA_NAMESER_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <assert.h> header file. */ |
|
||||
#define HAVE_ASSERT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `bitncmp' function. */ |
|
||||
/* #undef HAVE_BITNCMP */ |
|
||||
|
|
||||
/* Define to 1 if bool is an available type. */ |
|
||||
#define HAVE_BOOL_T 1 |
|
||||
|
|
||||
/* Define to 1 if you have the clock_gettime function and monotonic timer. */ |
|
||||
#define HAVE_CLOCK_GETTIME_MONOTONIC 1 |
|
||||
|
|
||||
/* Define to 1 if you have the closesocket function. */ |
|
||||
/* #undef HAVE_CLOSESOCKET */ |
|
||||
|
|
||||
/* Define to 1 if you have the CloseSocket camel case function. */ |
|
||||
/* #undef HAVE_CLOSESOCKET_CAMEL */ |
|
||||
|
|
||||
/* Define to 1 if you have the connect function. */ |
|
||||
#define HAVE_CONNECT 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */ |
|
||||
#define HAVE_DLFCN_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <errno.h> header file. */ |
|
||||
#define HAVE_ERRNO_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the fcntl function. */ |
|
||||
#define HAVE_FCNTL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <fcntl.h> header file. */ |
|
||||
#define HAVE_FCNTL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working fcntl O_NONBLOCK function. */ |
|
||||
#define HAVE_FCNTL_O_NONBLOCK 1 |
|
||||
|
|
||||
/* Define to 1 if you have the freeaddrinfo function. */ |
|
||||
#define HAVE_FREEADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working getaddrinfo function. */ |
|
||||
#define HAVE_GETADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if the getaddrinfo function is threadsafe. */ |
|
||||
/* #undef HAVE_GETADDRINFO_THREADSAFE */ |
|
||||
|
|
||||
/* Define to 1 if you have the gethostbyaddr function. */ |
|
||||
#define HAVE_GETHOSTBYADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have the gethostbyname function. */ |
|
||||
#define HAVE_GETHOSTBYNAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the gethostname function. */ |
|
||||
#define HAVE_GETHOSTNAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the getnameinfo function. */ |
|
||||
#define HAVE_GETNAMEINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have the getservbyport_r function. */ |
|
||||
#define HAVE_GETSERVBYPORT_R 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `gettimeofday' function. */ |
|
||||
#define HAVE_GETTIMEOFDAY 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `if_indextoname' function. */ |
|
||||
#define HAVE_IF_INDEXTONAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `inet_net_pton' function. */ |
|
||||
#define HAVE_INET_NET_PTON 1 |
|
||||
|
|
||||
/* Define to 1 if inet_net_pton supports IPv6. */ |
|
||||
/* #undef HAVE_INET_NET_PTON_IPV6 */ |
|
||||
|
|
||||
/* Define to 1 if you have a IPv6 capable working inet_ntop function. */ |
|
||||
#define HAVE_INET_NTOP 1 |
|
||||
|
|
||||
/* Define to 1 if you have a IPv6 capable working inet_pton function. */ |
|
||||
#define HAVE_INET_PTON 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */ |
|
||||
#define HAVE_INTTYPES_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ioctl function. */ |
|
||||
#define HAVE_IOCTL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ioctlsocket function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET */ |
|
||||
|
|
||||
/* Define to 1 if you have the IoctlSocket camel case function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET_CAMEL */ |
|
||||
|
|
||||
/* Define to 1 if you have a working IoctlSocket camel case FIONBIO function.
|
|
||||
*/ |
|
||||
/* #undef HAVE_IOCTLSOCKET_CAMEL_FIONBIO */ |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctlsocket FIONBIO function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET_FIONBIO */ |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctl FIONBIO function. */ |
|
||||
#define HAVE_IOCTL_FIONBIO 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctl SIOCGIFADDR function. */ |
|
||||
#define HAVE_IOCTL_SIOCGIFADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `resolve' library (-lresolve). */ |
|
||||
/* #undef HAVE_LIBRESOLVE */ |
|
||||
|
|
||||
/* Define to 1 if you have the <limits.h> header file. */ |
|
||||
#define HAVE_LIMITS_H 1 |
|
||||
|
|
||||
/* if your compiler supports LL */ |
|
||||
#define HAVE_LL 1 |
|
||||
|
|
||||
/* Define to 1 if the compiler supports the 'long long' data type. */ |
|
||||
#define HAVE_LONGLONG 1 |
|
||||
|
|
||||
/* Define to 1 if you have the malloc.h header file. */ |
|
||||
#define HAVE_MALLOC_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the memory.h header file. */ |
|
||||
#define HAVE_MEMORY_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the MSG_NOSIGNAL flag. */ |
|
||||
/* #undef HAVE_MSG_NOSIGNAL */ |
|
||||
|
|
||||
/* Define to 1 if you have the <netdb.h> header file. */ |
|
||||
#define HAVE_NETDB_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <netinet/in.h> header file. */ |
|
||||
#define HAVE_NETINET_IN_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <netinet/tcp.h> header file. */ |
|
||||
#define HAVE_NETINET_TCP_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <net/if.h> header file. */ |
|
||||
#define HAVE_NET_IF_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have PF_INET6. */ |
|
||||
#define HAVE_PF_INET6 1 |
|
||||
|
|
||||
/* Define to 1 if you have the recv function. */ |
|
||||
#define HAVE_RECV 1 |
|
||||
|
|
||||
/* Define to 1 if you have the recvfrom function. */ |
|
||||
#define HAVE_RECVFROM 1 |
|
||||
|
|
||||
/* Define to 1 if you have the send function. */ |
|
||||
#define HAVE_SEND 1 |
|
||||
|
|
||||
/* Define to 1 if you have the setsockopt function. */ |
|
||||
#define HAVE_SETSOCKOPT 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working setsockopt SO_NONBLOCK function. */ |
|
||||
/* #undef HAVE_SETSOCKOPT_SO_NONBLOCK */ |
|
||||
|
|
||||
/* Define to 1 if you have the <signal.h> header file. */ |
|
||||
#define HAVE_SIGNAL_H 1 |
|
||||
|
|
||||
/* Define to 1 if sig_atomic_t is an available typedef. */ |
|
||||
#define HAVE_SIG_ATOMIC_T 1 |
|
||||
|
|
||||
/* Define to 1 if sig_atomic_t is already defined as volatile. */ |
|
||||
/* #undef HAVE_SIG_ATOMIC_T_VOLATILE */ |
|
||||
|
|
||||
/* Define to 1 if your struct sockaddr_in6 has sin6_scope_id. */ |
|
||||
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
|
||||
|
|
||||
/* Define to 1 if you have the socket function. */ |
|
||||
#define HAVE_SOCKET 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <socket.h> header file. */ |
|
||||
/* #undef HAVE_SOCKET_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the <stdbool.h> header file. */ |
|
||||
#define HAVE_STDBOOL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <stdint.h> header file. */ |
|
||||
#define HAVE_STDINT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */ |
|
||||
#define HAVE_STDLIB_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strcasecmp function. */ |
|
||||
#define HAVE_STRCASECMP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strcmpi function. */ |
|
||||
/* #undef HAVE_STRCMPI */ |
|
||||
|
|
||||
/* Define to 1 if you have the strdup function. */ |
|
||||
#define HAVE_STRDUP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the stricmp function. */ |
|
||||
/* #undef HAVE_STRICMP */ |
|
||||
|
|
||||
/* Define to 1 if you have the <strings.h> header file. */ |
|
||||
#define HAVE_STRINGS_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <string.h> header file. */ |
|
||||
#define HAVE_STRING_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strncasecmp function. */ |
|
||||
#define HAVE_STRNCASECMP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strncmpi function. */ |
|
||||
/* #undef HAVE_STRNCMPI */ |
|
||||
|
|
||||
/* Define to 1 if you have the strnicmp function. */ |
|
||||
/* #undef HAVE_STRNICMP */ |
|
||||
|
|
||||
/* Define to 1 if you have the <stropts.h> header file. */ |
|
||||
/* #undef HAVE_STROPTS_H */ |
|
||||
|
|
||||
/* Define to 1 if you have struct addrinfo. */ |
|
||||
#define HAVE_STRUCT_ADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have struct in6_addr. */ |
|
||||
#define HAVE_STRUCT_IN6_ADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have struct sockaddr_in6. */ |
|
||||
#define HAVE_STRUCT_SOCKADDR_IN6 1 |
|
||||
|
|
||||
/* if struct sockaddr_storage is defined */ |
|
||||
#define HAVE_STRUCT_SOCKADDR_STORAGE 1 |
|
||||
|
|
||||
/* Define to 1 if you have the timeval struct. */ |
|
||||
#define HAVE_STRUCT_TIMEVAL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/ioctl.h> header file. */ |
|
||||
#define HAVE_SYS_IOCTL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/param.h> header file. */ |
|
||||
#define HAVE_SYS_PARAM_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/select.h> header file. */ |
|
||||
#define HAVE_SYS_SELECT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/socket.h> header file. */ |
|
||||
#define HAVE_SYS_SOCKET_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */ |
|
||||
#define HAVE_SYS_STAT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/time.h> header file. */ |
|
||||
#define HAVE_SYS_TIME_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */ |
|
||||
#define HAVE_SYS_TYPES_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/uio.h> header file. */ |
|
||||
#define HAVE_SYS_UIO_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <time.h> header file. */ |
|
||||
#define HAVE_TIME_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <unistd.h> header file. */ |
|
||||
#define HAVE_UNISTD_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the windows.h header file. */ |
|
||||
/* #undef HAVE_WINDOWS_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the winsock2.h header file. */ |
|
||||
/* #undef HAVE_WINSOCK2_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the winsock.h header file. */ |
|
||||
/* #undef HAVE_WINSOCK_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the writev function. */ |
|
||||
#define HAVE_WRITEV 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ws2tcpip.h header file. */ |
|
||||
/* #undef HAVE_WS2TCPIP_H */ |
|
||||
|
|
||||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
|
||||
*/ |
|
||||
#define LT_OBJDIR ".libs/" |
|
||||
|
|
||||
/* Define to 1 if you are building a native Windows target. */ |
|
||||
/* #undef NATIVE_WINDOWS */ |
|
||||
|
|
||||
/* Define to 1 if you need the malloc.h header file even with stdlib.h */ |
|
||||
/* #undef NEED_MALLOC_H */ |
|
||||
|
|
||||
/* Define to 1 if you need the memory.h header file even with stdlib.h */ |
|
||||
/* #undef NEED_MEMORY_H */ |
|
||||
|
|
||||
/* Define to 1 if _REENTRANT preprocessor symbol must be defined. */ |
|
||||
/* #undef NEED_REENTRANT */ |
|
||||
|
|
||||
/* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */ |
|
||||
/* #undef NEED_THREAD_SAFE */ |
|
||||
|
|
||||
/* Define to 1 if your C compiler doesn't accept -c and -o together. */ |
|
||||
/* #undef NO_MINUS_C_MINUS_O */ |
|
||||
|
|
||||
/* cpu-machine-OS */ |
|
||||
#define OS "i386-unknown-openbsd4.7" |
|
||||
|
|
||||
/* Name of package */ |
|
||||
#define PACKAGE "c-ares" |
|
||||
|
|
||||
/* Define to the address where bug reports for this package should be sent. */ |
|
||||
#define PACKAGE_BUGREPORT "c-ares mailing list => http://cool.haxx.se/mailman/listinfo/c-ares"
|
|
||||
|
|
||||
/* Define to the full name of this package. */ |
|
||||
#define PACKAGE_NAME "c-ares" |
|
||||
|
|
||||
/* Define to the full name and version of this package. */ |
|
||||
#define PACKAGE_STRING "c-ares 1.7.1" |
|
||||
|
|
||||
/* Define to the one symbol short name of this package. */ |
|
||||
#define PACKAGE_TARNAME "c-ares" |
|
||||
|
|
||||
/* Define to the home page for this package. */ |
|
||||
#define PACKAGE_URL "" |
|
||||
|
|
||||
/* Define to the version of this package. */ |
|
||||
#define PACKAGE_VERSION "1.7.1" |
|
||||
|
|
||||
/* a suitable file/device to read random data from */ |
|
||||
#define RANDOM_FILE "/dev/urandom" |
|
||||
|
|
||||
/* Define to the type of arg 1 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG1 int |
|
||||
|
|
||||
/* Define to the type pointed by arg 2 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG2 void |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 2 for recvfrom is void. */ |
|
||||
#define RECVFROM_TYPE_ARG2_IS_VOID 1 |
|
||||
|
|
||||
/* Define to the type of arg 3 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG3 size_t |
|
||||
|
|
||||
/* Define to the type of arg 4 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the type pointed by arg 5 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG5 struct sockaddr |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 5 for recvfrom is void. */ |
|
||||
/* #undef RECVFROM_TYPE_ARG5_IS_VOID */ |
|
||||
|
|
||||
/* Define to the type pointed by arg 6 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG6 socklen_t |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 6 for recvfrom is void. */ |
|
||||
/* #undef RECVFROM_TYPE_ARG6_IS_VOID */ |
|
||||
|
|
||||
/* Define to the function return type for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_RETV int |
|
||||
|
|
||||
/* Define to the type of arg 1 for recv. */ |
|
||||
#define RECV_TYPE_ARG1 int |
|
||||
|
|
||||
/* Define to the type of arg 2 for recv. */ |
|
||||
#define RECV_TYPE_ARG2 void * |
|
||||
|
|
||||
/* Define to the type of arg 3 for recv. */ |
|
||||
#define RECV_TYPE_ARG3 size_t |
|
||||
|
|
||||
/* Define to the type of arg 4 for recv. */ |
|
||||
#define RECV_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the function return type for recv. */ |
|
||||
#define RECV_TYPE_RETV int |
|
||||
|
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */ |
|
||||
#define RETSIGTYPE void |
|
||||
|
|
||||
/* Define to the type qualifier of arg 2 for send. */ |
|
||||
#define SEND_QUAL_ARG2 const |
|
||||
|
|
||||
/* Define to the type of arg 1 for send. */ |
|
||||
#define SEND_TYPE_ARG1 int |
|
||||
|
|
||||
/* Define to the type of arg 2 for send. */ |
|
||||
#define SEND_TYPE_ARG2 void * |
|
||||
|
|
||||
/* Define to the type of arg 3 for send. */ |
|
||||
#define SEND_TYPE_ARG3 size_t |
|
||||
|
|
||||
/* Define to the type of arg 4 for send. */ |
|
||||
#define SEND_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the function return type for send. */ |
|
||||
#define SEND_TYPE_RETV int |
|
||||
|
|
||||
/* The size of `int', as computed by sizeof. */ |
|
||||
#define SIZEOF_INT 4 |
|
||||
|
|
||||
/* The size of `long', as computed by sizeof. */ |
|
||||
#define SIZEOF_LONG 4 |
|
||||
|
|
||||
/* The size of `size_t', as computed by sizeof. */ |
|
||||
#define SIZEOF_SIZE_T 4 |
|
||||
|
|
||||
/* The size of `struct in6_addr', as computed by sizeof. */ |
|
||||
#define SIZEOF_STRUCT_IN6_ADDR 16 |
|
||||
|
|
||||
/* The size of `struct in_addr', as computed by sizeof. */ |
|
||||
#define SIZEOF_STRUCT_IN_ADDR 4 |
|
||||
|
|
||||
/* The size of `time_t', as computed by sizeof. */ |
|
||||
#define SIZEOF_TIME_T 4 |
|
||||
|
|
||||
/* Define to 1 if you have the ANSI C header files. */ |
|
||||
#define STDC_HEADERS 1 |
|
||||
|
|
||||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ |
|
||||
#define TIME_WITH_SYS_TIME 1 |
|
||||
|
|
||||
/* Define to disable non-blocking sockets. */ |
|
||||
/* #undef USE_BLOCKING_SOCKETS */ |
|
||||
|
|
||||
/* Version number of package */ |
|
||||
#define VERSION "1.7.1" |
|
||||
|
|
||||
/* Define to avoid automatic inclusion of winsock.h */ |
|
||||
/* #undef WIN32_LEAN_AND_MEAN */ |
|
||||
|
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
|
||||
significant byte first (like Motorola and SPARC, unlike Intel). */ |
|
||||
#if defined AC_APPLE_UNIVERSAL_BUILD |
|
||||
# if defined __BIG_ENDIAN__ |
|
||||
# define WORDS_BIGENDIAN 1 |
|
||||
# endif |
|
||||
#else |
|
||||
# ifndef WORDS_BIGENDIAN |
|
||||
/* # undef WORDS_BIGENDIAN */ |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/* Define to 1 if OS is AIX. */ |
|
||||
#ifndef _ALL_SOURCE |
|
||||
/* # undef _ALL_SOURCE */ |
|
||||
#endif |
|
||||
|
|
||||
/* Number of bits in a file offset, on hosts where this is settable. */ |
|
||||
/* #undef _FILE_OFFSET_BITS */ |
|
||||
|
|
||||
/* Define for large files, on AIX-style hosts. */ |
|
||||
/* #undef _LARGE_FILES */ |
|
||||
|
|
||||
/* Define to empty if `const' does not conform to ANSI C. */ |
|
||||
/* #undef const */ |
|
||||
|
|
||||
/* Type to use in place of in_addr_t when system does not provide it. */ |
|
||||
/* #undef in_addr_t */ |
|
||||
|
|
||||
/* Define to `unsigned int' if <sys/types.h> does not define. */ |
|
||||
/* #undef size_t */ |
|
||||
|
|
||||
/* the signed version of size_t */ |
|
||||
/* #undef ssize_t */ |
|
@ -1,198 +0,0 @@ |
|||||
#ifndef HEADER_CARES_SETUP_H |
|
||||
#define HEADER_CARES_SETUP_H |
|
||||
|
|
||||
/* $Id$ */ |
|
||||
|
|
||||
/* Copyright (C) 2004 - 2009 by Daniel Stenberg et al
|
|
||||
* |
|
||||
* Permission to use, copy, modify, and distribute this software and its |
|
||||
* documentation for any purpose and without fee is hereby granted, provided |
|
||||
* that the above copyright notice appear in all copies and that both that |
|
||||
* copyright notice and this permission notice appear in supporting |
|
||||
* documentation, and that the name of M.I.T. not be used in advertising or |
|
||||
* publicity pertaining to distribution of the software without specific, |
|
||||
* written prior permission. M.I.T. makes no representations about the |
|
||||
* suitability of this software for any purpose. It is provided "as is" |
|
||||
* without express or implied warranty. |
|
||||
*/ |
|
||||
|
|
||||
/*
|
|
||||
* Define WIN32 when build target is Win32 API |
|
||||
*/ |
|
||||
|
|
||||
#if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32) |
|
||||
#define WIN32 |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Include configuration script results or hand-crafted |
|
||||
* configuration file for platforms which lack config tool. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef HAVE_CONFIG_H |
|
||||
#include "ares_config.h" |
|
||||
#else |
|
||||
|
|
||||
#ifdef WIN32 |
|
||||
#include "config-win32.h" |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HAVE_CONFIG_H */ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* Definition of preprocessor macros/symbols which modify compiler */ |
|
||||
/* behaviour or generated code characteristics must be done here, */ |
|
||||
/* as appropriate, before any system header file is included. It is */ |
|
||||
/* also possible to have them defined in the config file included */ |
|
||||
/* before this point. As a result of all this we frown inclusion of */ |
|
||||
/* system header files in our config files, avoid this at any cost. */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* AIX 4.3 and newer needs _THREAD_SAFE defined to build |
|
||||
* proper reentrant code. Others may also need it. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef NEED_THREAD_SAFE |
|
||||
# ifndef _THREAD_SAFE |
|
||||
# define _THREAD_SAFE |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Tru64 needs _REENTRANT set for a few function prototypes and |
|
||||
* things to appear in the system header files. Unixware needs it |
|
||||
* to build proper reentrant code. Others may also need it. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef NEED_REENTRANT |
|
||||
# ifndef _REENTRANT |
|
||||
# define _REENTRANT |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* If you need to include a system header file for your platform, */ |
|
||||
/* please, do it beyond the point further indicated in this file. */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* c-ares external interface definitions are also used internally, |
|
||||
* and might also include required system header files to define them. |
|
||||
*/ |
|
||||
|
|
||||
#include <ares_build.h> |
|
||||
|
|
||||
/*
|
|
||||
* Compile time sanity checks must also be done when building the library. |
|
||||
*/ |
|
||||
|
|
||||
#include <ares_rules.h> |
|
||||
|
|
||||
/* ================================================================= */ |
|
||||
/* No system header file shall be included in this file before this */ |
|
||||
/* point. The only allowed ones are those included from ares_build.h */ |
|
||||
/* ================================================================= */ |
|
||||
|
|
||||
/*
|
|
||||
* Include header files for windows builds before redefining anything. |
|
||||
* Use this preproessor block only to include or exclude windows.h, |
|
||||
* winsock2.h, ws2tcpip.h or winsock.h. Any other windows thing belongs |
|
||||
* to any other further and independent block. Under Cygwin things work |
|
||||
* just as under linux (e.g. <sys/socket.h>) and the winsock headers should |
|
||||
* never be included when __CYGWIN__ is defined. configure script takes |
|
||||
* care of this, not defining HAVE_WINDOWS_H, HAVE_WINSOCK_H, HAVE_WINSOCK2_H, |
|
||||
* neither HAVE_WS2TCPIP_H when __CYGWIN__ is defined. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef HAVE_WINDOWS_H |
|
||||
# ifndef WIN32_LEAN_AND_MEAN |
|
||||
# define WIN32_LEAN_AND_MEAN |
|
||||
# endif |
|
||||
# include <windows.h> |
|
||||
# ifdef HAVE_WINSOCK2_H |
|
||||
# include <winsock2.h> |
|
||||
# ifdef HAVE_WS2TCPIP_H |
|
||||
# include <ws2tcpip.h> |
|
||||
# endif |
|
||||
# else |
|
||||
# ifdef HAVE_WINSOCK_H |
|
||||
# include <winsock.h> |
|
||||
# endif |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Define USE_WINSOCK to 2 if we have and use WINSOCK2 API, else |
|
||||
* define USE_WINSOCK to 1 if we have and use WINSOCK API, else |
|
||||
* undefine USE_WINSOCK. |
|
||||
*/ |
|
||||
|
|
||||
#undef USE_WINSOCK |
|
||||
|
|
||||
#ifdef HAVE_WINSOCK2_H |
|
||||
# define USE_WINSOCK 2 |
|
||||
#else |
|
||||
# ifdef HAVE_WINSOCK_H |
|
||||
# define USE_WINSOCK 1 |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Work-arounds for systems without configure support |
|
||||
*/ |
|
||||
|
|
||||
#ifndef HAVE_CONFIG_H |
|
||||
|
|
||||
#if !defined(HAVE_SYS_TIME_H) && !defined(_MSC_VER) && !defined(__WATCOMC__) |
|
||||
#define HAVE_SYS_TIME_H |
|
||||
#endif |
|
||||
|
|
||||
#if !defined(HAVE_UNISTD_H) && !defined(_MSC_VER) |
|
||||
#define HAVE_UNISTD_H 1 |
|
||||
#endif |
|
||||
|
|
||||
#if !defined(HAVE_SYS_UIO_H) && !defined(WIN32) && !defined(MSDOS) |
|
||||
#define HAVE_SYS_UIO_H |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HAVE_CONFIG_H */ |
|
||||
|
|
||||
#ifdef __POCC__ |
|
||||
# include <sys/types.h> |
|
||||
# include <unistd.h> |
|
||||
# define ESRCH 3 |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Recent autoconf versions define these symbols in ares_config.h. We don't |
|
||||
* want them (since they collide with the libcurl ones when we build |
|
||||
* --enable-debug) so we undef them again here. |
|
||||
*/ |
|
||||
|
|
||||
#undef PACKAGE_STRING |
|
||||
#undef PACKAGE_TARNAME |
|
||||
#undef PACKAGE_VERSION |
|
||||
#undef PACKAGE_BUGREPORT |
|
||||
#undef PACKAGE_NAME |
|
||||
#undef VERSION |
|
||||
#undef PACKAGE |
|
||||
|
|
||||
/* IPv6 compatibility */ |
|
||||
#if !defined(HAVE_AF_INET6) |
|
||||
#if defined(HAVE_PF_INET6) |
|
||||
#define AF_INET6 PF_INET6 |
|
||||
#else |
|
||||
#define AF_INET6 AF_MAX+1 |
|
||||
#endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Include macros and defines that should only be processed once. |
|
||||
*/ |
|
||||
|
|
||||
#ifndef __SETUP_ONCE_H |
|
||||
#include "setup_once.h" |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HEADER_CARES_SETUP_H */ |
|
@ -1,112 +0,0 @@ |
|||||
/* ares_build.h. Generated from ares_build.h.in by configure. */ |
|
||||
#ifndef __CARES_BUILD_H |
|
||||
#define __CARES_BUILD_H |
|
||||
|
|
||||
/* $Id$ */ |
|
||||
|
|
||||
/* Copyright (C) 2009 by Daniel Stenberg et al
|
|
||||
* |
|
||||
* Permission to use, copy, modify, and distribute this software and its |
|
||||
* documentation for any purpose and without fee is hereby granted, provided |
|
||||
* that the above copyright notice appear in all copies and that both that |
|
||||
* copyright notice and this permission notice appear in supporting |
|
||||
* documentation, and that the name of M.I.T. not be used in advertising or |
|
||||
* publicity pertaining to distribution of the software without specific, |
|
||||
* written prior permission. M.I.T. makes no representations about the |
|
||||
* suitability of this software for any purpose. It is provided "as is" |
|
||||
* without express or implied warranty. |
|
||||
*/ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* NOTES FOR CONFIGURE CAPABLE SYSTEMS */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* NOTE 1: |
|
||||
* ------- |
|
||||
* |
|
||||
* Nothing in this file is intended to be modified or adjusted by the |
|
||||
* c-ares library user nor by the c-ares library builder. |
|
||||
* |
|
||||
* If you think that something actually needs to be changed, adjusted |
|
||||
* or fixed in this file, then, report it on the c-ares development |
|
||||
* mailing list: http://cool.haxx.se/mailman/listinfo/c-ares/
|
|
||||
* |
|
||||
* This header file shall only export symbols which are 'cares' or 'CARES' |
|
||||
* prefixed, otherwise public name space would be polluted. |
|
||||
* |
|
||||
* NOTE 2: |
|
||||
* ------- |
|
||||
* |
|
||||
* Right now you might be staring at file ares_build.h.in or ares_build.h, |
|
||||
* this is due to the following reason: |
|
||||
* |
|
||||
* On systems capable of running the configure script, the configure process |
|
||||
* will overwrite the distributed ares_build.h file with one that is suitable |
|
||||
* and specific to the library being configured and built, which is generated |
|
||||
* from the ares_build.h.in template file. |
|
||||
* |
|
||||
*/ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
#ifdef CARES_SIZEOF_LONG |
|
||||
# error "CARES_SIZEOF_LONG shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_SIZEOF_LONG_already_defined |
|
||||
#endif |
|
||||
|
|
||||
#ifdef CARES_TYPEOF_ARES_SOCKLEN_T |
|
||||
# error "CARES_TYPEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_TYPEOF_ARES_SOCKLEN_T_already_defined |
|
||||
#endif |
|
||||
|
|
||||
#ifdef CARES_SIZEOF_ARES_SOCKLEN_T |
|
||||
# error "CARES_SIZEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_SIZEOF_ARES_SOCKLEN_T_already_defined |
|
||||
#endif |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* EXTERNAL INTERFACE SETTINGS FOR CONFIGURE CAPABLE SYSTEMS ONLY */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file ws2tcpip.h must be included by the external interface. */ |
|
||||
/* #undef CARES_PULL_WS2TCPIP_H */ |
|
||||
#ifdef CARES_PULL_WS2TCPIP_H |
|
||||
# ifndef WIN32_LEAN_AND_MEAN |
|
||||
# define WIN32_LEAN_AND_MEAN |
|
||||
# endif |
|
||||
# include <windows.h> |
|
||||
# include <winsock2.h> |
|
||||
# include <ws2tcpip.h> |
|
||||
#endif |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file sys/types.h must be included by the external interface. */ |
|
||||
#define CARES_PULL_SYS_TYPES_H 1 |
|
||||
#ifdef CARES_PULL_SYS_TYPES_H |
|
||||
# include <sys/types.h> |
|
||||
#endif |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file sys/socket.h must be included by the external interface. */ |
|
||||
#define CARES_PULL_SYS_SOCKET_H 1 |
|
||||
#ifdef CARES_PULL_SYS_SOCKET_H |
|
||||
# include <sys/socket.h> |
|
||||
#endif |
|
||||
|
|
||||
/* The size of `long', as computed by sizeof. */ |
|
||||
#define CARES_SIZEOF_LONG 8 |
|
||||
|
|
||||
/* Integral data type used for ares_socklen_t. */ |
|
||||
#define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t |
|
||||
|
|
||||
/* The size of `ares_socklen_t', as computed by sizeof. */ |
|
||||
#define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
|
||||
|
|
||||
/* Data type definition of ares_socklen_t. */ |
|
||||
typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t; |
|
||||
|
|
||||
#endif /* __CARES_BUILD_H */ |
|
@ -1,513 +0,0 @@ |
|||||
/* ares_config.h. Generated from ares_config.h.in by configure. */ |
|
||||
/* ares_config.h.in. Generated from configure.ac by autoheader. */ |
|
||||
|
|
||||
/* Define if building universal (internal helper macro) */ |
|
||||
/* #undef AC_APPLE_UNIVERSAL_BUILD */ |
|
||||
|
|
||||
/* define this if ares is built for a big endian system */ |
|
||||
/* #undef ARES_BIG_ENDIAN */ |
|
||||
|
|
||||
/* when building as static part of libcurl */ |
|
||||
/* #undef BUILDING_LIBCURL */ |
|
||||
|
|
||||
/* when building c-ares library */ |
|
||||
/* #undef CARES_BUILDING_LIBRARY */ |
|
||||
|
|
||||
/* when not building a shared library */ |
|
||||
/* #undef CARES_STATICLIB */ |
|
||||
|
|
||||
/* Define to 1 to enable hiding of library internal symbols. */ |
|
||||
/* #undef CARES_SYMBOL_HIDING */ |
|
||||
|
|
||||
/* Definition to make a library symbol externally visible. */ |
|
||||
/* #undef CARES_SYMBOL_SCOPE_EXTERN */ |
|
||||
|
|
||||
/* if a /etc/inet dir is being used */ |
|
||||
/* #undef ETC_INET */ |
|
||||
|
|
||||
/* Define to the type qualifier of arg 1 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_QUAL_ARG1 const |
|
||||
|
|
||||
/* Define to the type of arg 1 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG1 struct sockaddr * |
|
||||
|
|
||||
/* Define to the type of arg 2 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG2 socklen_t |
|
||||
|
|
||||
/* Define to the type of args 4 and 6 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG46 size_t |
|
||||
|
|
||||
/* Define to the type of arg 7 for getnameinfo. */ |
|
||||
#define GETNAMEINFO_TYPE_ARG7 int |
|
||||
|
|
||||
/* Specifies the number of arguments to getservbyport_r */ |
|
||||
#define GETSERVBYPORT_R_ARGS 4 |
|
||||
|
|
||||
/* Specifies the size of the buffer to pass to getservbyport_r */ |
|
||||
#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data) |
|
||||
|
|
||||
/* Define to 1 if you have AF_INET6. */ |
|
||||
#define HAVE_AF_INET6 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/inet.h> header file. */ |
|
||||
#define HAVE_ARPA_INET_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/nameser_compat.h> header file. */ |
|
||||
/* #undef HAVE_ARPA_NAMESER_COMPAT_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/nameser.h> header file. */ |
|
||||
#define HAVE_ARPA_NAMESER_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <assert.h> header file. */ |
|
||||
#define HAVE_ASSERT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `bitncmp' function. */ |
|
||||
/* #undef HAVE_BITNCMP */ |
|
||||
|
|
||||
/* Define to 1 if bool is an available type. */ |
|
||||
#define HAVE_BOOL_T 1 |
|
||||
|
|
||||
/* Define to 1 if you have the clock_gettime function and monotonic timer. */ |
|
||||
#define HAVE_CLOCK_GETTIME_MONOTONIC 1 |
|
||||
|
|
||||
/* Define to 1 if you have the closesocket function. */ |
|
||||
/* #undef HAVE_CLOSESOCKET */ |
|
||||
|
|
||||
/* Define to 1 if you have the CloseSocket camel case function. */ |
|
||||
/* #undef HAVE_CLOSESOCKET_CAMEL */ |
|
||||
|
|
||||
/* Define to 1 if you have the connect function. */ |
|
||||
#define HAVE_CONNECT 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */ |
|
||||
#define HAVE_DLFCN_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <errno.h> header file. */ |
|
||||
#define HAVE_ERRNO_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the fcntl function. */ |
|
||||
#define HAVE_FCNTL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <fcntl.h> header file. */ |
|
||||
#define HAVE_FCNTL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working fcntl O_NONBLOCK function. */ |
|
||||
#define HAVE_FCNTL_O_NONBLOCK 1 |
|
||||
|
|
||||
/* Define to 1 if you have the freeaddrinfo function. */ |
|
||||
#define HAVE_FREEADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working getaddrinfo function. */ |
|
||||
#define HAVE_GETADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if the getaddrinfo function is threadsafe. */ |
|
||||
/* #undef HAVE_GETADDRINFO_THREADSAFE */ |
|
||||
|
|
||||
/* Define to 1 if you have the gethostbyaddr function. */ |
|
||||
#define HAVE_GETHOSTBYADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have the gethostbyname function. */ |
|
||||
#define HAVE_GETHOSTBYNAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the gethostname function. */ |
|
||||
#define HAVE_GETHOSTNAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the getnameinfo function. */ |
|
||||
#define HAVE_GETNAMEINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have the getservbyport_r function. */ |
|
||||
#define HAVE_GETSERVBYPORT_R 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `gettimeofday' function. */ |
|
||||
#define HAVE_GETTIMEOFDAY 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `if_indextoname' function. */ |
|
||||
#define HAVE_IF_INDEXTONAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `inet_net_pton' function. */ |
|
||||
#define HAVE_INET_NET_PTON 1 |
|
||||
|
|
||||
/* Define to 1 if inet_net_pton supports IPv6. */ |
|
||||
/* #undef HAVE_INET_NET_PTON_IPV6 */ |
|
||||
|
|
||||
/* Define to 1 if you have a IPv6 capable working inet_ntop function. */ |
|
||||
#define HAVE_INET_NTOP 1 |
|
||||
|
|
||||
/* Define to 1 if you have a IPv6 capable working inet_pton function. */ |
|
||||
#define HAVE_INET_PTON 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */ |
|
||||
#define HAVE_INTTYPES_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ioctl function. */ |
|
||||
#define HAVE_IOCTL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ioctlsocket function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET */ |
|
||||
|
|
||||
/* Define to 1 if you have the IoctlSocket camel case function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET_CAMEL */ |
|
||||
|
|
||||
/* Define to 1 if you have a working IoctlSocket camel case FIONBIO function.
|
|
||||
*/ |
|
||||
/* #undef HAVE_IOCTLSOCKET_CAMEL_FIONBIO */ |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctlsocket FIONBIO function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET_FIONBIO */ |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctl FIONBIO function. */ |
|
||||
#define HAVE_IOCTL_FIONBIO 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctl SIOCGIFADDR function. */ |
|
||||
#define HAVE_IOCTL_SIOCGIFADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `resolve' library (-lresolve). */ |
|
||||
/* #undef HAVE_LIBRESOLVE */ |
|
||||
|
|
||||
/* Define to 1 if you have the <limits.h> header file. */ |
|
||||
#define HAVE_LIMITS_H 1 |
|
||||
|
|
||||
/* if your compiler supports LL */ |
|
||||
#define HAVE_LL 1 |
|
||||
|
|
||||
/* Define to 1 if the compiler supports the 'long long' data type. */ |
|
||||
#define HAVE_LONGLONG 1 |
|
||||
|
|
||||
/* Define to 1 if you have the malloc.h header file. */ |
|
||||
#define HAVE_MALLOC_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the memory.h header file. */ |
|
||||
#define HAVE_MEMORY_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the MSG_NOSIGNAL flag. */ |
|
||||
/* #undef HAVE_MSG_NOSIGNAL */ |
|
||||
|
|
||||
/* Define to 1 if you have the <netdb.h> header file. */ |
|
||||
#define HAVE_NETDB_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <netinet/in.h> header file. */ |
|
||||
#define HAVE_NETINET_IN_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <netinet/tcp.h> header file. */ |
|
||||
#define HAVE_NETINET_TCP_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <net/if.h> header file. */ |
|
||||
#define HAVE_NET_IF_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have PF_INET6. */ |
|
||||
#define HAVE_PF_INET6 1 |
|
||||
|
|
||||
/* Define to 1 if you have the recv function. */ |
|
||||
#define HAVE_RECV 1 |
|
||||
|
|
||||
/* Define to 1 if you have the recvfrom function. */ |
|
||||
#define HAVE_RECVFROM 1 |
|
||||
|
|
||||
/* Define to 1 if you have the send function. */ |
|
||||
#define HAVE_SEND 1 |
|
||||
|
|
||||
/* Define to 1 if you have the setsockopt function. */ |
|
||||
#define HAVE_SETSOCKOPT 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working setsockopt SO_NONBLOCK function. */ |
|
||||
/* #undef HAVE_SETSOCKOPT_SO_NONBLOCK */ |
|
||||
|
|
||||
/* Define to 1 if you have the <signal.h> header file. */ |
|
||||
#define HAVE_SIGNAL_H 1 |
|
||||
|
|
||||
/* Define to 1 if sig_atomic_t is an available typedef. */ |
|
||||
#define HAVE_SIG_ATOMIC_T 1 |
|
||||
|
|
||||
/* Define to 1 if sig_atomic_t is already defined as volatile. */ |
|
||||
/* #undef HAVE_SIG_ATOMIC_T_VOLATILE */ |
|
||||
|
|
||||
/* Define to 1 if your struct sockaddr_in6 has sin6_scope_id. */ |
|
||||
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
|
||||
|
|
||||
/* Define to 1 if you have the socket function. */ |
|
||||
#define HAVE_SOCKET 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <socket.h> header file. */ |
|
||||
/* #undef HAVE_SOCKET_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the <stdbool.h> header file. */ |
|
||||
#define HAVE_STDBOOL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <stdint.h> header file. */ |
|
||||
#define HAVE_STDINT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */ |
|
||||
#define HAVE_STDLIB_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strcasecmp function. */ |
|
||||
#define HAVE_STRCASECMP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strcmpi function. */ |
|
||||
/* #undef HAVE_STRCMPI */ |
|
||||
|
|
||||
/* Define to 1 if you have the strdup function. */ |
|
||||
#define HAVE_STRDUP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the stricmp function. */ |
|
||||
/* #undef HAVE_STRICMP */ |
|
||||
|
|
||||
/* Define to 1 if you have the <strings.h> header file. */ |
|
||||
#define HAVE_STRINGS_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <string.h> header file. */ |
|
||||
#define HAVE_STRING_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strncasecmp function. */ |
|
||||
#define HAVE_STRNCASECMP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strncmpi function. */ |
|
||||
/* #undef HAVE_STRNCMPI */ |
|
||||
|
|
||||
/* Define to 1 if you have the strnicmp function. */ |
|
||||
/* #undef HAVE_STRNICMP */ |
|
||||
|
|
||||
/* Define to 1 if you have the <stropts.h> header file. */ |
|
||||
/* #undef HAVE_STROPTS_H */ |
|
||||
|
|
||||
/* Define to 1 if you have struct addrinfo. */ |
|
||||
#define HAVE_STRUCT_ADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have struct in6_addr. */ |
|
||||
#define HAVE_STRUCT_IN6_ADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have struct sockaddr_in6. */ |
|
||||
#define HAVE_STRUCT_SOCKADDR_IN6 1 |
|
||||
|
|
||||
/* if struct sockaddr_storage is defined */ |
|
||||
#define HAVE_STRUCT_SOCKADDR_STORAGE 1 |
|
||||
|
|
||||
/* Define to 1 if you have the timeval struct. */ |
|
||||
#define HAVE_STRUCT_TIMEVAL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/ioctl.h> header file. */ |
|
||||
#define HAVE_SYS_IOCTL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/param.h> header file. */ |
|
||||
#define HAVE_SYS_PARAM_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/select.h> header file. */ |
|
||||
#define HAVE_SYS_SELECT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/socket.h> header file. */ |
|
||||
#define HAVE_SYS_SOCKET_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */ |
|
||||
#define HAVE_SYS_STAT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/time.h> header file. */ |
|
||||
#define HAVE_SYS_TIME_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */ |
|
||||
#define HAVE_SYS_TYPES_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/uio.h> header file. */ |
|
||||
#define HAVE_SYS_UIO_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <time.h> header file. */ |
|
||||
#define HAVE_TIME_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <unistd.h> header file. */ |
|
||||
#define HAVE_UNISTD_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the windows.h header file. */ |
|
||||
/* #undef HAVE_WINDOWS_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the winsock2.h header file. */ |
|
||||
/* #undef HAVE_WINSOCK2_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the winsock.h header file. */ |
|
||||
/* #undef HAVE_WINSOCK_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the writev function. */ |
|
||||
#define HAVE_WRITEV 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ws2tcpip.h header file. */ |
|
||||
/* #undef HAVE_WS2TCPIP_H */ |
|
||||
|
|
||||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
|
||||
*/ |
|
||||
#define LT_OBJDIR ".libs/" |
|
||||
|
|
||||
/* Define to 1 if you are building a native Windows target. */ |
|
||||
/* #undef NATIVE_WINDOWS */ |
|
||||
|
|
||||
/* Define to 1 if you need the malloc.h header file even with stdlib.h */ |
|
||||
/* #undef NEED_MALLOC_H */ |
|
||||
|
|
||||
/* Define to 1 if you need the memory.h header file even with stdlib.h */ |
|
||||
/* #undef NEED_MEMORY_H */ |
|
||||
|
|
||||
/* Define to 1 if _REENTRANT preprocessor symbol must be defined. */ |
|
||||
/* #undef NEED_REENTRANT */ |
|
||||
|
|
||||
/* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */ |
|
||||
/* #undef NEED_THREAD_SAFE */ |
|
||||
|
|
||||
/* Define to 1 if your C compiler doesn't accept -c and -o together. */ |
|
||||
/* #undef NO_MINUS_C_MINUS_O */ |
|
||||
|
|
||||
/* cpu-machine-OS */ |
|
||||
#define OS "x86_64-unknown-openbsd4.7" |
|
||||
|
|
||||
/* Name of package */ |
|
||||
#define PACKAGE "c-ares" |
|
||||
|
|
||||
/* Define to the address where bug reports for this package should be sent. */ |
|
||||
#define PACKAGE_BUGREPORT "c-ares mailing list => http://cool.haxx.se/mailman/listinfo/c-ares"
|
|
||||
|
|
||||
/* Define to the full name of this package. */ |
|
||||
#define PACKAGE_NAME "c-ares" |
|
||||
|
|
||||
/* Define to the full name and version of this package. */ |
|
||||
#define PACKAGE_STRING "c-ares 1.7.1" |
|
||||
|
|
||||
/* Define to the one symbol short name of this package. */ |
|
||||
#define PACKAGE_TARNAME "c-ares" |
|
||||
|
|
||||
/* Define to the home page for this package. */ |
|
||||
#define PACKAGE_URL "" |
|
||||
|
|
||||
/* Define to the version of this package. */ |
|
||||
#define PACKAGE_VERSION "1.7.1" |
|
||||
|
|
||||
/* a suitable file/device to read random data from */ |
|
||||
#define RANDOM_FILE "/dev/urandom" |
|
||||
|
|
||||
/* Define to the type of arg 1 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG1 int |
|
||||
|
|
||||
/* Define to the type pointed by arg 2 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG2 void |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 2 for recvfrom is void. */ |
|
||||
#define RECVFROM_TYPE_ARG2_IS_VOID 1 |
|
||||
|
|
||||
/* Define to the type of arg 3 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG3 size_t |
|
||||
|
|
||||
/* Define to the type of arg 4 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the type pointed by arg 5 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG5 struct sockaddr |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 5 for recvfrom is void. */ |
|
||||
/* #undef RECVFROM_TYPE_ARG5_IS_VOID */ |
|
||||
|
|
||||
/* Define to the type pointed by arg 6 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG6 socklen_t |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 6 for recvfrom is void. */ |
|
||||
/* #undef RECVFROM_TYPE_ARG6_IS_VOID */ |
|
||||
|
|
||||
/* Define to the function return type for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_RETV ssize_t |
|
||||
|
|
||||
/* Define to the type of arg 1 for recv. */ |
|
||||
#define RECV_TYPE_ARG1 int |
|
||||
|
|
||||
/* Define to the type of arg 2 for recv. */ |
|
||||
#define RECV_TYPE_ARG2 void * |
|
||||
|
|
||||
/* Define to the type of arg 3 for recv. */ |
|
||||
#define RECV_TYPE_ARG3 size_t |
|
||||
|
|
||||
/* Define to the type of arg 4 for recv. */ |
|
||||
#define RECV_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the function return type for recv. */ |
|
||||
#define RECV_TYPE_RETV ssize_t |
|
||||
|
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */ |
|
||||
#define RETSIGTYPE void |
|
||||
|
|
||||
/* Define to the type qualifier of arg 2 for send. */ |
|
||||
#define SEND_QUAL_ARG2 const |
|
||||
|
|
||||
/* Define to the type of arg 1 for send. */ |
|
||||
#define SEND_TYPE_ARG1 int |
|
||||
|
|
||||
/* Define to the type of arg 2 for send. */ |
|
||||
#define SEND_TYPE_ARG2 void * |
|
||||
|
|
||||
/* Define to the type of arg 3 for send. */ |
|
||||
#define SEND_TYPE_ARG3 size_t |
|
||||
|
|
||||
/* Define to the type of arg 4 for send. */ |
|
||||
#define SEND_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the function return type for send. */ |
|
||||
#define SEND_TYPE_RETV ssize_t |
|
||||
|
|
||||
/* The size of `int', as computed by sizeof. */ |
|
||||
#define SIZEOF_INT 4 |
|
||||
|
|
||||
/* The size of `long', as computed by sizeof. */ |
|
||||
#define SIZEOF_LONG 8 |
|
||||
|
|
||||
/* The size of `size_t', as computed by sizeof. */ |
|
||||
#define SIZEOF_SIZE_T 8 |
|
||||
|
|
||||
/* The size of `struct in6_addr', as computed by sizeof. */ |
|
||||
#define SIZEOF_STRUCT_IN6_ADDR 16 |
|
||||
|
|
||||
/* The size of `struct in_addr', as computed by sizeof. */ |
|
||||
#define SIZEOF_STRUCT_IN_ADDR 4 |
|
||||
|
|
||||
/* The size of `time_t', as computed by sizeof. */ |
|
||||
#define SIZEOF_TIME_T 4 |
|
||||
|
|
||||
/* Define to 1 if you have the ANSI C header files. */ |
|
||||
#define STDC_HEADERS 1 |
|
||||
|
|
||||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ |
|
||||
#define TIME_WITH_SYS_TIME 1 |
|
||||
|
|
||||
/* Define to disable non-blocking sockets. */ |
|
||||
/* #undef USE_BLOCKING_SOCKETS */ |
|
||||
|
|
||||
/* Version number of package */ |
|
||||
#define VERSION "1.7.1" |
|
||||
|
|
||||
/* Define to avoid automatic inclusion of winsock.h */ |
|
||||
/* #undef WIN32_LEAN_AND_MEAN */ |
|
||||
|
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
|
||||
significant byte first (like Motorola and SPARC, unlike Intel). */ |
|
||||
#if defined AC_APPLE_UNIVERSAL_BUILD |
|
||||
# if defined __BIG_ENDIAN__ |
|
||||
# define WORDS_BIGENDIAN 1 |
|
||||
# endif |
|
||||
#else |
|
||||
# ifndef WORDS_BIGENDIAN |
|
||||
/* # undef WORDS_BIGENDIAN */ |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/* Define to 1 if OS is AIX. */ |
|
||||
#ifndef _ALL_SOURCE |
|
||||
/* # undef _ALL_SOURCE */ |
|
||||
#endif |
|
||||
|
|
||||
/* Number of bits in a file offset, on hosts where this is settable. */ |
|
||||
/* #undef _FILE_OFFSET_BITS */ |
|
||||
|
|
||||
/* Define for large files, on AIX-style hosts. */ |
|
||||
/* #undef _LARGE_FILES */ |
|
||||
|
|
||||
/* Define to empty if `const' does not conform to ANSI C. */ |
|
||||
/* #undef const */ |
|
||||
|
|
||||
/* Type to use in place of in_addr_t when system does not provide it. */ |
|
||||
/* #undef in_addr_t */ |
|
||||
|
|
||||
/* Define to `unsigned int' if <sys/types.h> does not define. */ |
|
||||
/* #undef size_t */ |
|
||||
|
|
||||
/* the signed version of size_t */ |
|
||||
/* #undef ssize_t */ |
|
@ -1,198 +0,0 @@ |
|||||
#ifndef HEADER_CARES_SETUP_H |
|
||||
#define HEADER_CARES_SETUP_H |
|
||||
|
|
||||
/* $Id$ */ |
|
||||
|
|
||||
/* Copyright (C) 2004 - 2009 by Daniel Stenberg et al
|
|
||||
* |
|
||||
* Permission to use, copy, modify, and distribute this software and its |
|
||||
* documentation for any purpose and without fee is hereby granted, provided |
|
||||
* that the above copyright notice appear in all copies and that both that |
|
||||
* copyright notice and this permission notice appear in supporting |
|
||||
* documentation, and that the name of M.I.T. not be used in advertising or |
|
||||
* publicity pertaining to distribution of the software without specific, |
|
||||
* written prior permission. M.I.T. makes no representations about the |
|
||||
* suitability of this software for any purpose. It is provided "as is" |
|
||||
* without express or implied warranty. |
|
||||
*/ |
|
||||
|
|
||||
/*
|
|
||||
* Define WIN32 when build target is Win32 API |
|
||||
*/ |
|
||||
|
|
||||
#if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32) |
|
||||
#define WIN32 |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Include configuration script results or hand-crafted |
|
||||
* configuration file for platforms which lack config tool. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef HAVE_CONFIG_H |
|
||||
#include "ares_config.h" |
|
||||
#else |
|
||||
|
|
||||
#ifdef WIN32 |
|
||||
#include "config-win32.h" |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HAVE_CONFIG_H */ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* Definition of preprocessor macros/symbols which modify compiler */ |
|
||||
/* behaviour or generated code characteristics must be done here, */ |
|
||||
/* as appropriate, before any system header file is included. It is */ |
|
||||
/* also possible to have them defined in the config file included */ |
|
||||
/* before this point. As a result of all this we frown inclusion of */ |
|
||||
/* system header files in our config files, avoid this at any cost. */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* AIX 4.3 and newer needs _THREAD_SAFE defined to build |
|
||||
* proper reentrant code. Others may also need it. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef NEED_THREAD_SAFE |
|
||||
# ifndef _THREAD_SAFE |
|
||||
# define _THREAD_SAFE |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Tru64 needs _REENTRANT set for a few function prototypes and |
|
||||
* things to appear in the system header files. Unixware needs it |
|
||||
* to build proper reentrant code. Others may also need it. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef NEED_REENTRANT |
|
||||
# ifndef _REENTRANT |
|
||||
# define _REENTRANT |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* If you need to include a system header file for your platform, */ |
|
||||
/* please, do it beyond the point further indicated in this file. */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* c-ares external interface definitions are also used internally, |
|
||||
* and might also include required system header files to define them. |
|
||||
*/ |
|
||||
|
|
||||
#include <ares_build.h> |
|
||||
|
|
||||
/*
|
|
||||
* Compile time sanity checks must also be done when building the library. |
|
||||
*/ |
|
||||
|
|
||||
#include <ares_rules.h> |
|
||||
|
|
||||
/* ================================================================= */ |
|
||||
/* No system header file shall be included in this file before this */ |
|
||||
/* point. The only allowed ones are those included from ares_build.h */ |
|
||||
/* ================================================================= */ |
|
||||
|
|
||||
/*
|
|
||||
* Include header files for windows builds before redefining anything. |
|
||||
* Use this preproessor block only to include or exclude windows.h, |
|
||||
* winsock2.h, ws2tcpip.h or winsock.h. Any other windows thing belongs |
|
||||
* to any other further and independent block. Under Cygwin things work |
|
||||
* just as under linux (e.g. <sys/socket.h>) and the winsock headers should |
|
||||
* never be included when __CYGWIN__ is defined. configure script takes |
|
||||
* care of this, not defining HAVE_WINDOWS_H, HAVE_WINSOCK_H, HAVE_WINSOCK2_H, |
|
||||
* neither HAVE_WS2TCPIP_H when __CYGWIN__ is defined. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef HAVE_WINDOWS_H |
|
||||
# ifndef WIN32_LEAN_AND_MEAN |
|
||||
# define WIN32_LEAN_AND_MEAN |
|
||||
# endif |
|
||||
# include <windows.h> |
|
||||
# ifdef HAVE_WINSOCK2_H |
|
||||
# include <winsock2.h> |
|
||||
# ifdef HAVE_WS2TCPIP_H |
|
||||
# include <ws2tcpip.h> |
|
||||
# endif |
|
||||
# else |
|
||||
# ifdef HAVE_WINSOCK_H |
|
||||
# include <winsock.h> |
|
||||
# endif |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Define USE_WINSOCK to 2 if we have and use WINSOCK2 API, else |
|
||||
* define USE_WINSOCK to 1 if we have and use WINSOCK API, else |
|
||||
* undefine USE_WINSOCK. |
|
||||
*/ |
|
||||
|
|
||||
#undef USE_WINSOCK |
|
||||
|
|
||||
#ifdef HAVE_WINSOCK2_H |
|
||||
# define USE_WINSOCK 2 |
|
||||
#else |
|
||||
# ifdef HAVE_WINSOCK_H |
|
||||
# define USE_WINSOCK 1 |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Work-arounds for systems without configure support |
|
||||
*/ |
|
||||
|
|
||||
#ifndef HAVE_CONFIG_H |
|
||||
|
|
||||
#if !defined(HAVE_SYS_TIME_H) && !defined(_MSC_VER) && !defined(__WATCOMC__) |
|
||||
#define HAVE_SYS_TIME_H |
|
||||
#endif |
|
||||
|
|
||||
#if !defined(HAVE_UNISTD_H) && !defined(_MSC_VER) |
|
||||
#define HAVE_UNISTD_H 1 |
|
||||
#endif |
|
||||
|
|
||||
#if !defined(HAVE_SYS_UIO_H) && !defined(WIN32) && !defined(MSDOS) |
|
||||
#define HAVE_SYS_UIO_H |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HAVE_CONFIG_H */ |
|
||||
|
|
||||
#ifdef __POCC__ |
|
||||
# include <sys/types.h> |
|
||||
# include <unistd.h> |
|
||||
# define ESRCH 3 |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Recent autoconf versions define these symbols in ares_config.h. We don't |
|
||||
* want them (since they collide with the libcurl ones when we build |
|
||||
* --enable-debug) so we undef them again here. |
|
||||
*/ |
|
||||
|
|
||||
#undef PACKAGE_STRING |
|
||||
#undef PACKAGE_TARNAME |
|
||||
#undef PACKAGE_VERSION |
|
||||
#undef PACKAGE_BUGREPORT |
|
||||
#undef PACKAGE_NAME |
|
||||
#undef VERSION |
|
||||
#undef PACKAGE |
|
||||
|
|
||||
/* IPv6 compatibility */ |
|
||||
#if !defined(HAVE_AF_INET6) |
|
||||
#if defined(HAVE_PF_INET6) |
|
||||
#define AF_INET6 PF_INET6 |
|
||||
#else |
|
||||
#define AF_INET6 AF_MAX+1 |
|
||||
#endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Include macros and defines that should only be processed once. |
|
||||
*/ |
|
||||
|
|
||||
#ifndef __SETUP_ONCE_H |
|
||||
#include "setup_once.h" |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HEADER_CARES_SETUP_H */ |
|
@ -1,112 +0,0 @@ |
|||||
/* ares_build.h. Generated from ares_build.h.in by configure. */ |
|
||||
#ifndef __CARES_BUILD_H |
|
||||
#define __CARES_BUILD_H |
|
||||
|
|
||||
/* $Id$ */ |
|
||||
|
|
||||
/* Copyright (C) 2009 by Daniel Stenberg et al
|
|
||||
* |
|
||||
* Permission to use, copy, modify, and distribute this software and its |
|
||||
* documentation for any purpose and without fee is hereby granted, provided |
|
||||
* that the above copyright notice appear in all copies and that both that |
|
||||
* copyright notice and this permission notice appear in supporting |
|
||||
* documentation, and that the name of M.I.T. not be used in advertising or |
|
||||
* publicity pertaining to distribution of the software without specific, |
|
||||
* written prior permission. M.I.T. makes no representations about the |
|
||||
* suitability of this software for any purpose. It is provided "as is" |
|
||||
* without express or implied warranty. |
|
||||
*/ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* NOTES FOR CONFIGURE CAPABLE SYSTEMS */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* NOTE 1: |
|
||||
* ------- |
|
||||
* |
|
||||
* Nothing in this file is intended to be modified or adjusted by the |
|
||||
* c-ares library user nor by the c-ares library builder. |
|
||||
* |
|
||||
* If you think that something actually needs to be changed, adjusted |
|
||||
* or fixed in this file, then, report it on the c-ares development |
|
||||
* mailing list: http://cool.haxx.se/mailman/listinfo/c-ares/
|
|
||||
* |
|
||||
* This header file shall only export symbols which are 'cares' or 'CARES' |
|
||||
* prefixed, otherwise public name space would be polluted. |
|
||||
* |
|
||||
* NOTE 2: |
|
||||
* ------- |
|
||||
* |
|
||||
* Right now you might be staring at file ares_build.h.in or ares_build.h, |
|
||||
* this is due to the following reason: |
|
||||
* |
|
||||
* On systems capable of running the configure script, the configure process |
|
||||
* will overwrite the distributed ares_build.h file with one that is suitable |
|
||||
* and specific to the library being configured and built, which is generated |
|
||||
* from the ares_build.h.in template file. |
|
||||
* |
|
||||
*/ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
#ifdef CARES_SIZEOF_LONG |
|
||||
# error "CARES_SIZEOF_LONG shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_SIZEOF_LONG_already_defined |
|
||||
#endif |
|
||||
|
|
||||
#ifdef CARES_TYPEOF_ARES_SOCKLEN_T |
|
||||
# error "CARES_TYPEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_TYPEOF_ARES_SOCKLEN_T_already_defined |
|
||||
#endif |
|
||||
|
|
||||
#ifdef CARES_SIZEOF_ARES_SOCKLEN_T |
|
||||
# error "CARES_SIZEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_SIZEOF_ARES_SOCKLEN_T_already_defined |
|
||||
#endif |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* EXTERNAL INTERFACE SETTINGS FOR CONFIGURE CAPABLE SYSTEMS ONLY */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file ws2tcpip.h must be included by the external interface. */ |
|
||||
/* #undef CARES_PULL_WS2TCPIP_H */ |
|
||||
#ifdef CARES_PULL_WS2TCPIP_H |
|
||||
# ifndef WIN32_LEAN_AND_MEAN |
|
||||
# define WIN32_LEAN_AND_MEAN |
|
||||
# endif |
|
||||
# include <windows.h> |
|
||||
# include <winsock2.h> |
|
||||
# include <ws2tcpip.h> |
|
||||
#endif |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file sys/types.h must be included by the external interface. */ |
|
||||
#define CARES_PULL_SYS_TYPES_H 1 |
|
||||
#ifdef CARES_PULL_SYS_TYPES_H |
|
||||
# include <sys/types.h> |
|
||||
#endif |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file sys/socket.h must be included by the external interface. */ |
|
||||
#define CARES_PULL_SYS_SOCKET_H 1 |
|
||||
#ifdef CARES_PULL_SYS_SOCKET_H |
|
||||
# include <sys/socket.h> |
|
||||
#endif |
|
||||
|
|
||||
/* The size of `long', as computed by sizeof. */ |
|
||||
#define CARES_SIZEOF_LONG 4 |
|
||||
|
|
||||
/* Integral data type used for ares_socklen_t. */ |
|
||||
#define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t |
|
||||
|
|
||||
/* The size of `ares_socklen_t', as computed by sizeof. */ |
|
||||
#define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
|
||||
|
|
||||
/* Data type definition of ares_socklen_t. */ |
|
||||
typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t; |
|
||||
|
|
||||
#endif /* __CARES_BUILD_H */ |
|
@ -1,198 +0,0 @@ |
|||||
#ifndef HEADER_CARES_SETUP_H |
|
||||
#define HEADER_CARES_SETUP_H |
|
||||
|
|
||||
/* $Id$ */ |
|
||||
|
|
||||
/* Copyright (C) 2004 - 2009 by Daniel Stenberg et al
|
|
||||
* |
|
||||
* Permission to use, copy, modify, and distribute this software and its |
|
||||
* documentation for any purpose and without fee is hereby granted, provided |
|
||||
* that the above copyright notice appear in all copies and that both that |
|
||||
* copyright notice and this permission notice appear in supporting |
|
||||
* documentation, and that the name of M.I.T. not be used in advertising or |
|
||||
* publicity pertaining to distribution of the software without specific, |
|
||||
* written prior permission. M.I.T. makes no representations about the |
|
||||
* suitability of this software for any purpose. It is provided "as is" |
|
||||
* without express or implied warranty. |
|
||||
*/ |
|
||||
|
|
||||
/*
|
|
||||
* Define WIN32 when build target is Win32 API |
|
||||
*/ |
|
||||
|
|
||||
#if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32) |
|
||||
#define WIN32 |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Include configuration script results or hand-crafted |
|
||||
* configuration file for platforms which lack config tool. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef HAVE_CONFIG_H |
|
||||
#include "ares_config.h" |
|
||||
#else |
|
||||
|
|
||||
#ifdef WIN32 |
|
||||
#include "config-win32.h" |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HAVE_CONFIG_H */ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* Definition of preprocessor macros/symbols which modify compiler */ |
|
||||
/* behaviour or generated code characteristics must be done here, */ |
|
||||
/* as appropriate, before any system header file is included. It is */ |
|
||||
/* also possible to have them defined in the config file included */ |
|
||||
/* before this point. As a result of all this we frown inclusion of */ |
|
||||
/* system header files in our config files, avoid this at any cost. */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* AIX 4.3 and newer needs _THREAD_SAFE defined to build |
|
||||
* proper reentrant code. Others may also need it. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef NEED_THREAD_SAFE |
|
||||
# ifndef _THREAD_SAFE |
|
||||
# define _THREAD_SAFE |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Tru64 needs _REENTRANT set for a few function prototypes and |
|
||||
* things to appear in the system header files. Unixware needs it |
|
||||
* to build proper reentrant code. Others may also need it. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef NEED_REENTRANT |
|
||||
# ifndef _REENTRANT |
|
||||
# define _REENTRANT |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* If you need to include a system header file for your platform, */ |
|
||||
/* please, do it beyond the point further indicated in this file. */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* c-ares external interface definitions are also used internally, |
|
||||
* and might also include required system header files to define them. |
|
||||
*/ |
|
||||
|
|
||||
#include <ares_build.h> |
|
||||
|
|
||||
/*
|
|
||||
* Compile time sanity checks must also be done when building the library. |
|
||||
*/ |
|
||||
|
|
||||
#include <ares_rules.h> |
|
||||
|
|
||||
/* ================================================================= */ |
|
||||
/* No system header file shall be included in this file before this */ |
|
||||
/* point. The only allowed ones are those included from ares_build.h */ |
|
||||
/* ================================================================= */ |
|
||||
|
|
||||
/*
|
|
||||
* Include header files for windows builds before redefining anything. |
|
||||
* Use this preproessor block only to include or exclude windows.h, |
|
||||
* winsock2.h, ws2tcpip.h or winsock.h. Any other windows thing belongs |
|
||||
* to any other further and independent block. Under Cygwin things work |
|
||||
* just as under linux (e.g. <sys/socket.h>) and the winsock headers should |
|
||||
* never be included when __CYGWIN__ is defined. configure script takes |
|
||||
* care of this, not defining HAVE_WINDOWS_H, HAVE_WINSOCK_H, HAVE_WINSOCK2_H, |
|
||||
* neither HAVE_WS2TCPIP_H when __CYGWIN__ is defined. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef HAVE_WINDOWS_H |
|
||||
# ifndef WIN32_LEAN_AND_MEAN |
|
||||
# define WIN32_LEAN_AND_MEAN |
|
||||
# endif |
|
||||
# include <windows.h> |
|
||||
# ifdef HAVE_WINSOCK2_H |
|
||||
# include <winsock2.h> |
|
||||
# ifdef HAVE_WS2TCPIP_H |
|
||||
# include <ws2tcpip.h> |
|
||||
# endif |
|
||||
# else |
|
||||
# ifdef HAVE_WINSOCK_H |
|
||||
# include <winsock.h> |
|
||||
# endif |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Define USE_WINSOCK to 2 if we have and use WINSOCK2 API, else |
|
||||
* define USE_WINSOCK to 1 if we have and use WINSOCK API, else |
|
||||
* undefine USE_WINSOCK. |
|
||||
*/ |
|
||||
|
|
||||
#undef USE_WINSOCK |
|
||||
|
|
||||
#ifdef HAVE_WINSOCK2_H |
|
||||
# define USE_WINSOCK 2 |
|
||||
#else |
|
||||
# ifdef HAVE_WINSOCK_H |
|
||||
# define USE_WINSOCK 1 |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Work-arounds for systems without configure support |
|
||||
*/ |
|
||||
|
|
||||
#ifndef HAVE_CONFIG_H |
|
||||
|
|
||||
#if !defined(HAVE_SYS_TIME_H) && !defined(_MSC_VER) && !defined(__WATCOMC__) |
|
||||
#define HAVE_SYS_TIME_H |
|
||||
#endif |
|
||||
|
|
||||
#if !defined(HAVE_UNISTD_H) && !defined(_MSC_VER) |
|
||||
#define HAVE_UNISTD_H 1 |
|
||||
#endif |
|
||||
|
|
||||
#if !defined(HAVE_SYS_UIO_H) && !defined(WIN32) && !defined(MSDOS) |
|
||||
#define HAVE_SYS_UIO_H |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HAVE_CONFIG_H */ |
|
||||
|
|
||||
#ifdef __POCC__ |
|
||||
# include <sys/types.h> |
|
||||
# include <unistd.h> |
|
||||
# define ESRCH 3 |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Recent autoconf versions define these symbols in ares_config.h. We don't |
|
||||
* want them (since they collide with the libcurl ones when we build |
|
||||
* --enable-debug) so we undef them again here. |
|
||||
*/ |
|
||||
|
|
||||
#undef PACKAGE_STRING |
|
||||
#undef PACKAGE_TARNAME |
|
||||
#undef PACKAGE_VERSION |
|
||||
#undef PACKAGE_BUGREPORT |
|
||||
#undef PACKAGE_NAME |
|
||||
#undef VERSION |
|
||||
#undef PACKAGE |
|
||||
|
|
||||
/* IPv6 compatibility */ |
|
||||
#if !defined(HAVE_AF_INET6) |
|
||||
#if defined(HAVE_PF_INET6) |
|
||||
#define AF_INET6 PF_INET6 |
|
||||
#else |
|
||||
#define AF_INET6 AF_MAX+1 |
|
||||
#endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Include macros and defines that should only be processed once. |
|
||||
*/ |
|
||||
|
|
||||
#ifndef __SETUP_ONCE_H |
|
||||
#include "setup_once.h" |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HEADER_CARES_SETUP_H */ |
|
@ -1,111 +0,0 @@ |
|||||
/* ares_build.h. Generated from ares_build.h.in by configure. */ |
|
||||
#ifndef __CARES_BUILD_H |
|
||||
#define __CARES_BUILD_H |
|
||||
|
|
||||
|
|
||||
/* Copyright (C) 2009 by Daniel Stenberg et al
|
|
||||
* |
|
||||
* Permission to use, copy, modify, and distribute this software and its |
|
||||
* documentation for any purpose and without fee is hereby granted, provided |
|
||||
* that the above copyright notice appear in all copies and that both that |
|
||||
* copyright notice and this permission notice appear in supporting |
|
||||
* documentation, and that the name of M.I.T. not be used in advertising or |
|
||||
* publicity pertaining to distribution of the software without specific, |
|
||||
* written prior permission. M.I.T. makes no representations about the |
|
||||
* suitability of this software for any purpose. It is provided "as is" |
|
||||
* without express or implied warranty. |
|
||||
*/ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* NOTES FOR CONFIGURE CAPABLE SYSTEMS */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* NOTE 1: |
|
||||
* ------- |
|
||||
* |
|
||||
* Nothing in this file is intended to be modified or adjusted by the |
|
||||
* c-ares library user nor by the c-ares library builder. |
|
||||
* |
|
||||
* If you think that something actually needs to be changed, adjusted |
|
||||
* or fixed in this file, then, report it on the c-ares development |
|
||||
* mailing list: http://cool.haxx.se/mailman/listinfo/c-ares/
|
|
||||
* |
|
||||
* This header file shall only export symbols which are 'cares' or 'CARES' |
|
||||
* prefixed, otherwise public name space would be polluted. |
|
||||
* |
|
||||
* NOTE 2: |
|
||||
* ------- |
|
||||
* |
|
||||
* Right now you might be staring at file ares_build.h.in or ares_build.h, |
|
||||
* this is due to the following reason: |
|
||||
* |
|
||||
* On systems capable of running the configure script, the configure process |
|
||||
* will overwrite the distributed ares_build.h file with one that is suitable |
|
||||
* and specific to the library being configured and built, which is generated |
|
||||
* from the ares_build.h.in template file. |
|
||||
* |
|
||||
*/ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
#ifdef CARES_SIZEOF_LONG |
|
||||
# error "CARES_SIZEOF_LONG shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_SIZEOF_LONG_already_defined |
|
||||
#endif |
|
||||
|
|
||||
#ifdef CARES_TYPEOF_ARES_SOCKLEN_T |
|
||||
# error "CARES_TYPEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_TYPEOF_ARES_SOCKLEN_T_already_defined |
|
||||
#endif |
|
||||
|
|
||||
#ifdef CARES_SIZEOF_ARES_SOCKLEN_T |
|
||||
# error "CARES_SIZEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h" |
|
||||
Error Compilation_aborted_CARES_SIZEOF_ARES_SOCKLEN_T_already_defined |
|
||||
#endif |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* EXTERNAL INTERFACE SETTINGS FOR CONFIGURE CAPABLE SYSTEMS ONLY */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file ws2tcpip.h must be included by the external interface. */ |
|
||||
#define CARES_PULL_WS2TCPIP_H 1 |
|
||||
#ifdef CARES_PULL_WS2TCPIP_H |
|
||||
# ifndef WIN32_LEAN_AND_MEAN |
|
||||
# define WIN32_LEAN_AND_MEAN 1 |
|
||||
# endif |
|
||||
# include <windows.h> |
|
||||
# include <winsock2.h> |
|
||||
# include <ws2tcpip.h> |
|
||||
#endif |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file sys/types.h must be included by the external interface. */ |
|
||||
/* #undef CARES_PULL_SYS_TYPES_H */ |
|
||||
#ifdef CARES_PULL_SYS_TYPES_H |
|
||||
# include <sys/types.h> |
|
||||
#endif |
|
||||
|
|
||||
/* Configure process defines this to 1 when it finds out that system */ |
|
||||
/* header file sys/socket.h must be included by the external interface. */ |
|
||||
/* #undef CARES_PULL_SYS_SOCKET_H */ |
|
||||
#ifdef CARES_PULL_SYS_SOCKET_H |
|
||||
# include <sys/socket.h> |
|
||||
#endif |
|
||||
|
|
||||
/* The size of `long', as computed by sizeof. */ |
|
||||
#define CARES_SIZEOF_LONG 4 |
|
||||
|
|
||||
/* Integral data type used for ares_socklen_t. */ |
|
||||
#define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t |
|
||||
|
|
||||
/* The size of `ares_socklen_t', as computed by sizeof. */ |
|
||||
#define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
|
||||
|
|
||||
/* Data type definition of ares_socklen_t. */ |
|
||||
typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t; |
|
||||
|
|
||||
#endif /* __CARES_BUILD_H */ |
|
@ -1,513 +0,0 @@ |
|||||
/* ares_config.h. Generated from ares_config.h.in by configure. */ |
|
||||
/* ares_config.h.in. Generated from configure.ac by autoheader. */ |
|
||||
|
|
||||
/* Define if building universal (internal helper macro) */ |
|
||||
/* #undef AC_APPLE_UNIVERSAL_BUILD */ |
|
||||
|
|
||||
/* define this if ares is built for a big endian system */ |
|
||||
/* #undef ARES_BIG_ENDIAN */ |
|
||||
|
|
||||
/* when building as static part of libcurl */ |
|
||||
/* #undef BUILDING_LIBCURL */ |
|
||||
|
|
||||
/* when building c-ares library */ |
|
||||
/* #undef CARES_BUILDING_LIBRARY */ |
|
||||
|
|
||||
/* when not building a shared library */ |
|
||||
#define CARES_STATICLIB 1 |
|
||||
|
|
||||
/* Define to 1 to enable hiding of library internal symbols. */ |
|
||||
/* #undef CARES_SYMBOL_HIDING */ |
|
||||
|
|
||||
/* Definition to make a library symbol externally visible. */ |
|
||||
/* #undef CARES_SYMBOL_SCOPE_EXTERN */ |
|
||||
|
|
||||
/* if a /etc/inet dir is being used */ |
|
||||
/* #undef ETC_INET */ |
|
||||
|
|
||||
/* Define to the type qualifier of arg 1 for getnameinfo. */ |
|
||||
/* #undef GETNAMEINFO_QUAL_ARG1 */ |
|
||||
|
|
||||
/* Define to the type of arg 1 for getnameinfo. */ |
|
||||
/* #undef GETNAMEINFO_TYPE_ARG1 */ |
|
||||
|
|
||||
/* Define to the type of arg 2 for getnameinfo. */ |
|
||||
/* #undef GETNAMEINFO_TYPE_ARG2 */ |
|
||||
|
|
||||
/* Define to the type of args 4 and 6 for getnameinfo. */ |
|
||||
/* #undef GETNAMEINFO_TYPE_ARG46 */ |
|
||||
|
|
||||
/* Define to the type of arg 7 for getnameinfo. */ |
|
||||
/* #undef GETNAMEINFO_TYPE_ARG7 */ |
|
||||
|
|
||||
/* Specifies the number of arguments to getservbyport_r */ |
|
||||
/* #undef GETSERVBYPORT_R_ARGS */ |
|
||||
|
|
||||
/* Specifies the size of the buffer to pass to getservbyport_r */ |
|
||||
/* #undef GETSERVBYPORT_R_BUFSIZE */ |
|
||||
|
|
||||
/* Define to 1 if you have AF_INET6. */ |
|
||||
#define HAVE_AF_INET6 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/inet.h> header file. */ |
|
||||
/* #undef HAVE_ARPA_INET_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/nameser_compat.h> header file. */ |
|
||||
/* #undef HAVE_ARPA_NAMESER_COMPAT_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the <arpa/nameser.h> header file. */ |
|
||||
/* #undef HAVE_ARPA_NAMESER_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the <assert.h> header file. */ |
|
||||
#define HAVE_ASSERT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `bitncmp' function. */ |
|
||||
/* #undef HAVE_BITNCMP */ |
|
||||
|
|
||||
/* Define to 1 if bool is an available type. */ |
|
||||
#define HAVE_BOOL_T 1 |
|
||||
|
|
||||
/* Define to 1 if you have the clock_gettime function and monotonic timer. */ |
|
||||
/* #undef HAVE_CLOCK_GETTIME_MONOTONIC */ |
|
||||
|
|
||||
/* Define to 1 if you have the closesocket function. */ |
|
||||
#define HAVE_CLOSESOCKET 1 |
|
||||
|
|
||||
/* Define to 1 if you have the CloseSocket camel case function. */ |
|
||||
/* #undef HAVE_CLOSESOCKET_CAMEL */ |
|
||||
|
|
||||
/* Define to 1 if you have the connect function. */ |
|
||||
#define HAVE_CONNECT 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */ |
|
||||
/* #undef HAVE_DLFCN_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the <errno.h> header file. */ |
|
||||
#define HAVE_ERRNO_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the fcntl function. */ |
|
||||
/* #undef HAVE_FCNTL */ |
|
||||
|
|
||||
/* Define to 1 if you have the <fcntl.h> header file. */ |
|
||||
#define HAVE_FCNTL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working fcntl O_NONBLOCK function. */ |
|
||||
/* #undef HAVE_FCNTL_O_NONBLOCK */ |
|
||||
|
|
||||
/* Define to 1 if you have the freeaddrinfo function. */ |
|
||||
/* #undef HAVE_FREEADDRINFO */ |
|
||||
|
|
||||
/* Define to 1 if you have a working getaddrinfo function. */ |
|
||||
/* #undef HAVE_GETADDRINFO */ |
|
||||
|
|
||||
/* Define to 1 if the getaddrinfo function is threadsafe. */ |
|
||||
/* #undef HAVE_GETADDRINFO_THREADSAFE */ |
|
||||
|
|
||||
/* Define to 1 if you have the gethostbyaddr function. */ |
|
||||
#define HAVE_GETHOSTBYADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have the gethostbyname function. */ |
|
||||
#define HAVE_GETHOSTBYNAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the gethostname function. */ |
|
||||
#define HAVE_GETHOSTNAME 1 |
|
||||
|
|
||||
/* Define to 1 if you have the getnameinfo function. */ |
|
||||
/* #undef HAVE_GETNAMEINFO */ |
|
||||
|
|
||||
/* Define to 1 if you have the getservbyport_r function. */ |
|
||||
/* #undef HAVE_GETSERVBYPORT_R */ |
|
||||
|
|
||||
/* Define to 1 if you have the `gettimeofday' function. */ |
|
||||
#define HAVE_GETTIMEOFDAY 1 |
|
||||
|
|
||||
/* Define to 1 if you have the `if_indextoname' function. */ |
|
||||
/* #undef HAVE_IF_INDEXTONAME */ |
|
||||
|
|
||||
/* Define to 1 if you have the `inet_net_pton' function. */ |
|
||||
/* #undef HAVE_INET_NET_PTON */ |
|
||||
|
|
||||
/* Define to 1 if inet_net_pton supports IPv6. */ |
|
||||
/* #undef HAVE_INET_NET_PTON_IPV6 */ |
|
||||
|
|
||||
/* Define to 1 if you have a IPv6 capable working inet_ntop function. */ |
|
||||
/* #undef HAVE_INET_NTOP */ |
|
||||
|
|
||||
/* Define to 1 if you have a IPv6 capable working inet_pton function. */ |
|
||||
/* #undef HAVE_INET_PTON */ |
|
||||
|
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */ |
|
||||
#define HAVE_INTTYPES_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the ioctl function. */ |
|
||||
/* #undef HAVE_IOCTL */ |
|
||||
|
|
||||
/* Define to 1 if you have the ioctlsocket function. */ |
|
||||
#define HAVE_IOCTLSOCKET 1 |
|
||||
|
|
||||
/* Define to 1 if you have the IoctlSocket camel case function. */ |
|
||||
/* #undef HAVE_IOCTLSOCKET_CAMEL */ |
|
||||
|
|
||||
/* Define to 1 if you have a working IoctlSocket camel case FIONBIO function.
|
|
||||
*/ |
|
||||
/* #undef HAVE_IOCTLSOCKET_CAMEL_FIONBIO */ |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctlsocket FIONBIO function. */ |
|
||||
#define HAVE_IOCTLSOCKET_FIONBIO 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctl FIONBIO function. */ |
|
||||
/* #undef HAVE_IOCTL_FIONBIO */ |
|
||||
|
|
||||
/* Define to 1 if you have a working ioctl SIOCGIFADDR function. */ |
|
||||
/* #undef HAVE_IOCTL_SIOCGIFADDR */ |
|
||||
|
|
||||
/* Define to 1 if you have the `resolve' library (-lresolve). */ |
|
||||
/* #undef HAVE_LIBRESOLVE */ |
|
||||
|
|
||||
/* Define to 1 if you have the <limits.h> header file. */ |
|
||||
#define HAVE_LIMITS_H 1 |
|
||||
|
|
||||
/* if your compiler supports LL */ |
|
||||
#define HAVE_LL 1 |
|
||||
|
|
||||
/* Define to 1 if the compiler supports the 'long long' data type. */ |
|
||||
#define HAVE_LONGLONG 1 |
|
||||
|
|
||||
/* Define to 1 if you have the malloc.h header file. */ |
|
||||
#define HAVE_MALLOC_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the memory.h header file. */ |
|
||||
#define HAVE_MEMORY_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the MSG_NOSIGNAL flag. */ |
|
||||
/* #undef HAVE_MSG_NOSIGNAL */ |
|
||||
|
|
||||
/* Define to 1 if you have the <netdb.h> header file. */ |
|
||||
/* #undef HAVE_NETDB_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the <netinet/in.h> header file. */ |
|
||||
/* #undef HAVE_NETINET_IN_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the <netinet/tcp.h> header file. */ |
|
||||
/* #undef HAVE_NETINET_TCP_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the <net/if.h> header file. */ |
|
||||
/* #undef HAVE_NET_IF_H */ |
|
||||
|
|
||||
/* Define to 1 if you have PF_INET6. */ |
|
||||
#define HAVE_PF_INET6 1 |
|
||||
|
|
||||
/* Define to 1 if you have the recv function. */ |
|
||||
#define HAVE_RECV 1 |
|
||||
|
|
||||
/* Define to 1 if you have the recvfrom function. */ |
|
||||
#define HAVE_RECVFROM 1 |
|
||||
|
|
||||
/* Define to 1 if you have the send function. */ |
|
||||
#define HAVE_SEND 1 |
|
||||
|
|
||||
/* Define to 1 if you have the setsockopt function. */ |
|
||||
#define HAVE_SETSOCKOPT 1 |
|
||||
|
|
||||
/* Define to 1 if you have a working setsockopt SO_NONBLOCK function. */ |
|
||||
/* #undef HAVE_SETSOCKOPT_SO_NONBLOCK */ |
|
||||
|
|
||||
/* Define to 1 if you have the <signal.h> header file. */ |
|
||||
#define HAVE_SIGNAL_H 1 |
|
||||
|
|
||||
/* Define to 1 if sig_atomic_t is an available typedef. */ |
|
||||
#define HAVE_SIG_ATOMIC_T 1 |
|
||||
|
|
||||
/* Define to 1 if sig_atomic_t is already defined as volatile. */ |
|
||||
/* #undef HAVE_SIG_ATOMIC_T_VOLATILE */ |
|
||||
|
|
||||
/* Define to 1 if your struct sockaddr_in6 has sin6_scope_id. */ |
|
||||
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
|
||||
|
|
||||
/* Define to 1 if you have the socket function. */ |
|
||||
#define HAVE_SOCKET 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <socket.h> header file. */ |
|
||||
/* #undef HAVE_SOCKET_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the <stdbool.h> header file. */ |
|
||||
#define HAVE_STDBOOL_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <stdint.h> header file. */ |
|
||||
#define HAVE_STDINT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */ |
|
||||
#define HAVE_STDLIB_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strcasecmp function. */ |
|
||||
#define HAVE_STRCASECMP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strcmpi function. */ |
|
||||
#define HAVE_STRCMPI 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strdup function. */ |
|
||||
#define HAVE_STRDUP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the stricmp function. */ |
|
||||
#define HAVE_STRICMP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <strings.h> header file. */ |
|
||||
#define HAVE_STRINGS_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <string.h> header file. */ |
|
||||
#define HAVE_STRING_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strncasecmp function. */ |
|
||||
#define HAVE_STRNCASECMP 1 |
|
||||
|
|
||||
/* Define to 1 if you have the strncmpi function. */ |
|
||||
/* #undef HAVE_STRNCMPI */ |
|
||||
|
|
||||
/* Define to 1 if you have the strnicmp function. */ |
|
||||
/* #undef HAVE_STRNICMP */ |
|
||||
|
|
||||
/* Define to 1 if you have the <stropts.h> header file. */ |
|
||||
/* #undef HAVE_STROPTS_H */ |
|
||||
|
|
||||
/* Define to 1 if you have struct addrinfo. */ |
|
||||
#define HAVE_STRUCT_ADDRINFO 1 |
|
||||
|
|
||||
/* Define to 1 if you have struct in6_addr. */ |
|
||||
#define HAVE_STRUCT_IN6_ADDR 1 |
|
||||
|
|
||||
/* Define to 1 if you have struct sockaddr_in6. */ |
|
||||
#define HAVE_STRUCT_SOCKADDR_IN6 1 |
|
||||
|
|
||||
/* if struct sockaddr_storage is defined */ |
|
||||
#define HAVE_STRUCT_SOCKADDR_STORAGE 1 |
|
||||
|
|
||||
/* Define to 1 if you have the timeval struct. */ |
|
||||
#define HAVE_STRUCT_TIMEVAL 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/ioctl.h> header file. */ |
|
||||
/* #undef HAVE_SYS_IOCTL_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/param.h> header file. */ |
|
||||
#define HAVE_SYS_PARAM_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/select.h> header file. */ |
|
||||
/* #undef HAVE_SYS_SELECT_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/socket.h> header file. */ |
|
||||
/* #undef HAVE_SYS_SOCKET_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */ |
|
||||
#define HAVE_SYS_STAT_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/time.h> header file. */ |
|
||||
#define HAVE_SYS_TIME_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */ |
|
||||
#define HAVE_SYS_TYPES_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <sys/uio.h> header file. */ |
|
||||
/* #undef HAVE_SYS_UIO_H */ |
|
||||
|
|
||||
/* Define to 1 if you have the <time.h> header file. */ |
|
||||
#define HAVE_TIME_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the <unistd.h> header file. */ |
|
||||
#define HAVE_UNISTD_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the windows.h header file. */ |
|
||||
#define HAVE_WINDOWS_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the winsock2.h header file. */ |
|
||||
#define HAVE_WINSOCK2_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the winsock.h header file. */ |
|
||||
#define HAVE_WINSOCK_H 1 |
|
||||
|
|
||||
/* Define to 1 if you have the writev function. */ |
|
||||
/* #undef HAVE_WRITEV */ |
|
||||
|
|
||||
/* Define to 1 if you have the ws2tcpip.h header file. */ |
|
||||
#define HAVE_WS2TCPIP_H 1 |
|
||||
|
|
||||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
|
||||
*/ |
|
||||
#define LT_OBJDIR ".libs/" |
|
||||
|
|
||||
/* Define to 1 if you are building a native Windows target. */ |
|
||||
#define NATIVE_WINDOWS 1 |
|
||||
|
|
||||
/* Define to 1 if you need the malloc.h header file even with stdlib.h */ |
|
||||
/* #undef NEED_MALLOC_H */ |
|
||||
|
|
||||
/* Define to 1 if you need the memory.h header file even with stdlib.h */ |
|
||||
/* #undef NEED_MEMORY_H */ |
|
||||
|
|
||||
/* Define to 1 if _REENTRANT preprocessor symbol must be defined. */ |
|
||||
/* #undef NEED_REENTRANT */ |
|
||||
|
|
||||
/* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */ |
|
||||
/* #undef NEED_THREAD_SAFE */ |
|
||||
|
|
||||
/* Define to 1 if your C compiler doesn't accept -c and -o together. */ |
|
||||
/* #undef NO_MINUS_C_MINUS_O */ |
|
||||
|
|
||||
/* cpu-machine-OS */ |
|
||||
#define OS "i686-pc-mingw32" |
|
||||
|
|
||||
/* Name of package */ |
|
||||
#define PACKAGE "c-ares" |
|
||||
|
|
||||
/* Define to the address where bug reports for this package should be sent. */ |
|
||||
#define PACKAGE_BUGREPORT "c-ares mailing list => http://cool.haxx.se/mailman/listinfo/c-ares"
|
|
||||
|
|
||||
/* Define to the full name of this package. */ |
|
||||
#define PACKAGE_NAME "c-ares" |
|
||||
|
|
||||
/* Define to the full name and version of this package. */ |
|
||||
#define PACKAGE_STRING "c-ares 1.7.3" |
|
||||
|
|
||||
/* Define to the one symbol short name of this package. */ |
|
||||
#define PACKAGE_TARNAME "c-ares" |
|
||||
|
|
||||
/* Define to the home page for this package. */ |
|
||||
#define PACKAGE_URL "" |
|
||||
|
|
||||
/* Define to the version of this package. */ |
|
||||
#define PACKAGE_VERSION "1.7.3" |
|
||||
|
|
||||
/* a suitable file/device to read random data from */ |
|
||||
#define RANDOM_FILE "/dev/urandom" |
|
||||
|
|
||||
/* Define to the type of arg 1 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG1 SOCKET |
|
||||
|
|
||||
/* Define to the type pointed by arg 2 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG2 char |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 2 for recvfrom is void. */ |
|
||||
/* #undef RECVFROM_TYPE_ARG2_IS_VOID */ |
|
||||
|
|
||||
/* Define to the type of arg 3 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG3 int |
|
||||
|
|
||||
/* Define to the type of arg 4 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the type pointed by arg 5 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG5 struct sockaddr |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 5 for recvfrom is void. */ |
|
||||
/* #undef RECVFROM_TYPE_ARG5_IS_VOID */ |
|
||||
|
|
||||
/* Define to the type pointed by arg 6 for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_ARG6 int |
|
||||
|
|
||||
/* Define to 1 if the type pointed by arg 6 for recvfrom is void. */ |
|
||||
/* #undef RECVFROM_TYPE_ARG6_IS_VOID */ |
|
||||
|
|
||||
/* Define to the function return type for recvfrom. */ |
|
||||
#define RECVFROM_TYPE_RETV int |
|
||||
|
|
||||
/* Define to the type of arg 1 for recv. */ |
|
||||
#define RECV_TYPE_ARG1 SOCKET |
|
||||
|
|
||||
/* Define to the type of arg 2 for recv. */ |
|
||||
#define RECV_TYPE_ARG2 char * |
|
||||
|
|
||||
/* Define to the type of arg 3 for recv. */ |
|
||||
#define RECV_TYPE_ARG3 int |
|
||||
|
|
||||
/* Define to the type of arg 4 for recv. */ |
|
||||
#define RECV_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the function return type for recv. */ |
|
||||
#define RECV_TYPE_RETV int |
|
||||
|
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */ |
|
||||
#define RETSIGTYPE void |
|
||||
|
|
||||
/* Define to the type qualifier of arg 2 for send. */ |
|
||||
#define SEND_QUAL_ARG2 const |
|
||||
|
|
||||
/* Define to the type of arg 1 for send. */ |
|
||||
#define SEND_TYPE_ARG1 SOCKET |
|
||||
|
|
||||
/* Define to the type of arg 2 for send. */ |
|
||||
#define SEND_TYPE_ARG2 char * |
|
||||
|
|
||||
/* Define to the type of arg 3 for send. */ |
|
||||
#define SEND_TYPE_ARG3 int |
|
||||
|
|
||||
/* Define to the type of arg 4 for send. */ |
|
||||
#define SEND_TYPE_ARG4 int |
|
||||
|
|
||||
/* Define to the function return type for send. */ |
|
||||
#define SEND_TYPE_RETV int |
|
||||
|
|
||||
/* The size of `int', as computed by sizeof. */ |
|
||||
#define SIZEOF_INT 4 |
|
||||
|
|
||||
/* The size of `long', as computed by sizeof. */ |
|
||||
#define SIZEOF_LONG 4 |
|
||||
|
|
||||
/* The size of `size_t', as computed by sizeof. */ |
|
||||
#define SIZEOF_SIZE_T 4 |
|
||||
|
|
||||
/* The size of `struct in6_addr', as computed by sizeof. */ |
|
||||
#define SIZEOF_STRUCT_IN6_ADDR 16 |
|
||||
|
|
||||
/* The size of `struct in_addr', as computed by sizeof. */ |
|
||||
#define SIZEOF_STRUCT_IN_ADDR 4 |
|
||||
|
|
||||
/* The size of `time_t', as computed by sizeof. */ |
|
||||
#define SIZEOF_TIME_T 4 |
|
||||
|
|
||||
/* Define to 1 if you have the ANSI C header files. */ |
|
||||
#define STDC_HEADERS 1 |
|
||||
|
|
||||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ |
|
||||
#define TIME_WITH_SYS_TIME 1 |
|
||||
|
|
||||
/* Define to disable non-blocking sockets. */ |
|
||||
/* #undef USE_BLOCKING_SOCKETS */ |
|
||||
|
|
||||
/* Version number of package */ |
|
||||
#define VERSION "1.7.3" |
|
||||
|
|
||||
/* Define to avoid automatic inclusion of winsock.h */ |
|
||||
#define WIN32_LEAN_AND_MEAN 1 |
|
||||
|
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
|
||||
significant byte first (like Motorola and SPARC, unlike Intel). */ |
|
||||
#if defined AC_APPLE_UNIVERSAL_BUILD |
|
||||
# if defined __BIG_ENDIAN__ |
|
||||
# define WORDS_BIGENDIAN 1 |
|
||||
# endif |
|
||||
#else |
|
||||
# ifndef WORDS_BIGENDIAN |
|
||||
/* # undef WORDS_BIGENDIAN */ |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/* Define to 1 if OS is AIX. */ |
|
||||
#ifndef _ALL_SOURCE |
|
||||
/* # undef _ALL_SOURCE */ |
|
||||
#endif |
|
||||
|
|
||||
/* Number of bits in a file offset, on hosts where this is settable. */ |
|
||||
/* #undef _FILE_OFFSET_BITS */ |
|
||||
|
|
||||
/* Define for large files, on AIX-style hosts. */ |
|
||||
/* #undef _LARGE_FILES */ |
|
||||
|
|
||||
/* Define to empty if `const' does not conform to ANSI C. */ |
|
||||
/* #undef const */ |
|
||||
|
|
||||
/* Type to use in place of in_addr_t when system does not provide it. */ |
|
||||
#define in_addr_t unsigned long |
|
||||
|
|
||||
/* Define to `unsigned int' if <sys/types.h> does not define. */ |
|
||||
/* #undef size_t */ |
|
||||
|
|
||||
/* the signed version of size_t */ |
|
||||
/* #undef ssize_t */ |
|
@ -1,198 +0,0 @@ |
|||||
#ifndef HEADER_CARES_SETUP_H |
|
||||
#define HEADER_CARES_SETUP_H |
|
||||
|
|
||||
/* $Id$ */ |
|
||||
|
|
||||
/* Copyright (C) 2004 - 2009 by Daniel Stenberg et al
|
|
||||
* |
|
||||
* Permission to use, copy, modify, and distribute this software and its |
|
||||
* documentation for any purpose and without fee is hereby granted, provided |
|
||||
* that the above copyright notice appear in all copies and that both that |
|
||||
* copyright notice and this permission notice appear in supporting |
|
||||
* documentation, and that the name of M.I.T. not be used in advertising or |
|
||||
* publicity pertaining to distribution of the software without specific, |
|
||||
* written prior permission. M.I.T. makes no representations about the |
|
||||
* suitability of this software for any purpose. It is provided "as is" |
|
||||
* without express or implied warranty. |
|
||||
*/ |
|
||||
|
|
||||
/*
|
|
||||
* Define WIN32 when build target is Win32 API |
|
||||
*/ |
|
||||
|
|
||||
#if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32) |
|
||||
#define WIN32 |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Include configuration script results or hand-crafted |
|
||||
* configuration file for platforms which lack config tool. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef HAVE_CONFIG_H |
|
||||
#include "ares_config.h" |
|
||||
#else |
|
||||
|
|
||||
#ifdef WIN32 |
|
||||
#include "config-win32.h" |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HAVE_CONFIG_H */ |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* Definition of preprocessor macros/symbols which modify compiler */ |
|
||||
/* behaviour or generated code characteristics must be done here, */ |
|
||||
/* as appropriate, before any system header file is included. It is */ |
|
||||
/* also possible to have them defined in the config file included */ |
|
||||
/* before this point. As a result of all this we frown inclusion of */ |
|
||||
/* system header files in our config files, avoid this at any cost. */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* AIX 4.3 and newer needs _THREAD_SAFE defined to build |
|
||||
* proper reentrant code. Others may also need it. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef NEED_THREAD_SAFE |
|
||||
# ifndef _THREAD_SAFE |
|
||||
# define _THREAD_SAFE |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Tru64 needs _REENTRANT set for a few function prototypes and |
|
||||
* things to appear in the system header files. Unixware needs it |
|
||||
* to build proper reentrant code. Others may also need it. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef NEED_REENTRANT |
|
||||
# ifndef _REENTRANT |
|
||||
# define _REENTRANT |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/* ================================================================ */ |
|
||||
/* If you need to include a system header file for your platform, */ |
|
||||
/* please, do it beyond the point further indicated in this file. */ |
|
||||
/* ================================================================ */ |
|
||||
|
|
||||
/*
|
|
||||
* c-ares external interface definitions are also used internally, |
|
||||
* and might also include required system header files to define them. |
|
||||
*/ |
|
||||
|
|
||||
#include <ares_build.h> |
|
||||
|
|
||||
/*
|
|
||||
* Compile time sanity checks must also be done when building the library. |
|
||||
*/ |
|
||||
|
|
||||
#include <ares_rules.h> |
|
||||
|
|
||||
/* ================================================================= */ |
|
||||
/* No system header file shall be included in this file before this */ |
|
||||
/* point. The only allowed ones are those included from ares_build.h */ |
|
||||
/* ================================================================= */ |
|
||||
|
|
||||
/*
|
|
||||
* Include header files for windows builds before redefining anything. |
|
||||
* Use this preproessor block only to include or exclude windows.h, |
|
||||
* winsock2.h, ws2tcpip.h or winsock.h. Any other windows thing belongs |
|
||||
* to any other further and independent block. Under Cygwin things work |
|
||||
* just as under linux (e.g. <sys/socket.h>) and the winsock headers should |
|
||||
* never be included when __CYGWIN__ is defined. configure script takes |
|
||||
* care of this, not defining HAVE_WINDOWS_H, HAVE_WINSOCK_H, HAVE_WINSOCK2_H, |
|
||||
* neither HAVE_WS2TCPIP_H when __CYGWIN__ is defined. |
|
||||
*/ |
|
||||
|
|
||||
#ifdef HAVE_WINDOWS_H |
|
||||
# ifndef WIN32_LEAN_AND_MEAN |
|
||||
# define WIN32_LEAN_AND_MEAN |
|
||||
# endif |
|
||||
# include <windows.h> |
|
||||
# ifdef HAVE_WINSOCK2_H |
|
||||
# include <winsock2.h> |
|
||||
# ifdef HAVE_WS2TCPIP_H |
|
||||
# include <ws2tcpip.h> |
|
||||
# endif |
|
||||
# else |
|
||||
# ifdef HAVE_WINSOCK_H |
|
||||
# include <winsock.h> |
|
||||
# endif |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Define USE_WINSOCK to 2 if we have and use WINSOCK2 API, else |
|
||||
* define USE_WINSOCK to 1 if we have and use WINSOCK API, else |
|
||||
* undefine USE_WINSOCK. |
|
||||
*/ |
|
||||
|
|
||||
#undef USE_WINSOCK |
|
||||
|
|
||||
#ifdef HAVE_WINSOCK2_H |
|
||||
# define USE_WINSOCK 2 |
|
||||
#else |
|
||||
# ifdef HAVE_WINSOCK_H |
|
||||
# define USE_WINSOCK 1 |
|
||||
# endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Work-arounds for systems without configure support |
|
||||
*/ |
|
||||
|
|
||||
#ifndef HAVE_CONFIG_H |
|
||||
|
|
||||
#if !defined(HAVE_SYS_TIME_H) && !defined(_MSC_VER) && !defined(__WATCOMC__) |
|
||||
#define HAVE_SYS_TIME_H |
|
||||
#endif |
|
||||
|
|
||||
#if !defined(HAVE_UNISTD_H) && !defined(_MSC_VER) |
|
||||
#define HAVE_UNISTD_H 1 |
|
||||
#endif |
|
||||
|
|
||||
#if !defined(HAVE_SYS_UIO_H) && !defined(WIN32) && !defined(MSDOS) |
|
||||
#define HAVE_SYS_UIO_H |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HAVE_CONFIG_H */ |
|
||||
|
|
||||
#ifdef __POCC__ |
|
||||
# include <sys/types.h> |
|
||||
# include <unistd.h> |
|
||||
# define ESRCH 3 |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Recent autoconf versions define these symbols in ares_config.h. We don't |
|
||||
* want them (since they collide with the libcurl ones when we build |
|
||||
* --enable-debug) so we undef them again here. |
|
||||
*/ |
|
||||
|
|
||||
#undef PACKAGE_STRING |
|
||||
#undef PACKAGE_TARNAME |
|
||||
#undef PACKAGE_VERSION |
|
||||
#undef PACKAGE_BUGREPORT |
|
||||
#undef PACKAGE_NAME |
|
||||
#undef VERSION |
|
||||
#undef PACKAGE |
|
||||
|
|
||||
/* IPv6 compatibility */ |
|
||||
#if !defined(HAVE_AF_INET6) |
|
||||
#if defined(HAVE_PF_INET6) |
|
||||
#define AF_INET6 PF_INET6 |
|
||||
#else |
|
||||
#define AF_INET6 AF_MAX+1 |
|
||||
#endif |
|
||||
#endif |
|
||||
|
|
||||
/*
|
|
||||
* Include macros and defines that should only be processed once. |
|
||||
*/ |
|
||||
|
|
||||
#ifndef __SETUP_ONCE_H |
|
||||
#include "setup_once.h" |
|
||||
#endif |
|
||||
|
|
||||
#endif /* HEADER_CARES_SETUP_H */ |
|
@ -1,26 +0,0 @@ |
|||||
import Options |
|
||||
import platform |
|
||||
|
|
||||
PLATFORM_IS_DARWIN = platform.platform().find('Darwin') == 0 |
|
||||
PLATFORM_IS_LINUX = platform.platform().find('Linux') == 0 |
|
||||
PLATFORM_IS_SOLARIS = platform.platform().find('Sun') == 0 |
|
||||
PLATFORM_IS_FREEBSD = platform.platform().find('FreeBSD') == 0 |
|
||||
MACHINE_IS_AMD64 = platform.machine().find('amd64') == 0 |
|
||||
MACHINE_IS_I386 = platform.machine().find('i386') == 0 |
|
||||
|
|
||||
def set_options(opt): |
|
||||
pass |
|
||||
|
|
||||
def configure(conf): |
|
||||
conf.env.append_value('CCFLAGS', ['-DHAVE_CONFIG_H=1']) |
|
||||
|
|
||||
def build(bld): |
|
||||
cares = bld.new_task_gen("cc") |
|
||||
cares.source = bld.path.ant_glob('*.c') |
|
||||
cares.target = 'cares' |
|
||||
cares.name = 'cares' |
|
||||
cares.includes = '. ./' + bld.env['DEST_OS'] + '-' + bld.env['DEST_CPU'] |
|
||||
cares.install_path = None |
|
||||
if bld.env["USE_DEBUG"]: |
|
||||
cares.clone("debug"); |
|
||||
|
|
@ -0,0 +1,169 @@ |
|||||
|
#
|
||||
|
# Watcom / OpenWatcom / Win32 makefile for cares.
|
||||
|
# Quick hack by Guenter; comments to: /dev/nul
|
||||
|
#
|
||||
|
|
||||
|
!ifndef %watcom |
||||
|
!error WATCOM environment variable not set! |
||||
|
!else |
||||
|
SYS_INCL = -I$(%watcom)\h\nt -I$(%watcom)\h |
||||
|
SYS_LIBS = $(%watcom)\lib386\nt;$(%watcom)\lib386 |
||||
|
!endif |
||||
|
|
||||
|
!ifdef %libname |
||||
|
LIBNAME = $(%libname) |
||||
|
!else |
||||
|
LIBNAME = cares |
||||
|
!endif |
||||
|
TARGETS = $(LIBNAME).dll $(LIBNAME)_imp.lib $(LIBNAME).lib |
||||
|
DEMOS = adig.exe ahost.exe acountry.exe |
||||
|
|
||||
|
CC = wcc386 |
||||
|
LD = wlink |
||||
|
AR = wlib |
||||
|
RC = wrc |
||||
|
|
||||
|
!ifdef __LOADDLL__ |
||||
|
! loaddll wcc386 wccd386 |
||||
|
! loaddll wpp386 wppd386 |
||||
|
! loaddll wlib wlibd |
||||
|
!endif |
||||
|
|
||||
|
!if $(__VERSION__) < 1250 |
||||
|
RM = del /q /f 2>NUL |
||||
|
!else |
||||
|
RM = rm -f |
||||
|
!endif |
||||
|
MD = mkdir |
||||
|
RD = rmdir /q /s 2>NUL |
||||
|
CP = copy |
||||
|
|
||||
|
CFLAGS = -3r -mf -hc -zff -zgf -zq -zm -zc -s -fr=con -w2 -fpi -oilrtfm & |
||||
|
-wcd=201 -bt=nt -d+ -dWIN32 -dCARES_BUILDING_LIBRARY & |
||||
|
-dNTDDI_VERSION=0x05000100 -I. $(SYS_INCL) |
||||
|
|
||||
|
LFLAGS = option quiet, map, caseexact, eliminate |
||||
|
|
||||
|
!ifdef %debug |
||||
|
DEBUG = -dDEBUG=1 -dDEBUGBUILD |
||||
|
CFLAGS += -d3 $(DEBUG) |
||||
|
LFLAGS += debug all |
||||
|
!else |
||||
|
CFLAGS += -d0 |
||||
|
!endif |
||||
|
|
||||
|
!ifdef %use_ipv6 |
||||
|
CFLAGS += -d_WIN32_WINNT=0x0501 -dENABLE_IPV6 |
||||
|
!endif |
||||
|
|
||||
|
#
|
||||
|
# Change to suite.
|
||||
|
#
|
||||
|
!ifdef %use_watt32 |
||||
|
CFLAGS += -dUSE_WATT32 -I$(%watt_root)\inc |
||||
|
!endif |
||||
|
|
||||
|
OBJ_BASE = WC_Win32.obj |
||||
|
LINK_ARG = $(OBJ_BASE)\dyn\wlink.arg |
||||
|
LIB_ARG = $(OBJ_BASE)\stat\wlib.arg |
||||
|
|
||||
|
# In order to process Makefile.inc wmake must be called with -u switch!
|
||||
|
!ifneq __MAKEOPTS__ -u |
||||
|
!error You MUST call wmake with the -u switch! |
||||
|
!else |
||||
|
!include Makefile.inc |
||||
|
!endif |
||||
|
|
||||
|
OBJS = $(CSOURCES:.c=.obj) |
||||
|
OBJS = $OBJ_DIR\$(OBJS: = $OBJ_DIR\) |
||||
|
|
||||
|
#
|
||||
|
# Use $(OBJS) as a template to generate $(OBJS_STAT) and $(OBJS_DYN).
|
||||
|
#
|
||||
|
OBJ_DIR = $(OBJ_BASE)\stat |
||||
|
OBJS_STAT = $+ $(OBJS) $- |
||||
|
|
||||
|
OBJ_DIR = $(OBJ_BASE)\dyn |
||||
|
OBJS_DYN = $+ $(OBJS) $- |
||||
|
|
||||
|
ARESBUILDH = ares_build.h |
||||
|
RESOURCE = $(OBJ_BASE)\dyn\cares.res |
||||
|
|
||||
|
all: $(ARESBUILDH) $(OBJ_BASE) $(TARGETS) .SYMBOLIC |
||||
|
@echo Welcome to cares |
||||
|
|
||||
|
demos: all $(DEMOS) .SYMBOLIC |
||||
|
@echo Welcome to cares-demos |
||||
|
|
||||
|
$(OBJ_BASE): |
||||
|
-$(MD) $^@ |
||||
|
-$(MD) $^@\stat |
||||
|
-$(MD) $^@\dyn |
||||
|
-$(MD) $^@\demos |
||||
|
|
||||
|
$(ARESBUILDH): .EXISTSONLY |
||||
|
$(CP) $^@.dist $^@ |
||||
|
|
||||
|
$(LIBNAME).dll: $(OBJS_DYN) $(RESOURCE) $(LINK_ARG) |
||||
|
$(LD) name $^@ @$]@ |
||||
|
|
||||
|
$(LIBNAME).lib: $(OBJS_STAT) $(LIB_ARG) |
||||
|
$(AR) -q -b -c $^@ @$]@ |
||||
|
|
||||
|
adig.exe: $(OBJ_BASE)\demos\adig.obj $(OBJ_BASE)\demos\ares_getopt.obj $(LIBNAME).lib |
||||
|
$(LD) name $^@ system nt $(LFLAGS) file { $[@ $(OBJ_BASE)\demos\ares_getopt.obj } library $]@, ws2_32.lib |
||||
|
|
||||
|
ahost.exe: $(OBJ_BASE)\demos\ahost.obj $(OBJ_BASE)\demos\ares_getopt.obj $(LIBNAME).lib |
||||
|
$(LD) name $^@ system nt $(LFLAGS) file { $[@ $(OBJ_BASE)\demos\ares_getopt.obj } library $]@, ws2_32.lib |
||||
|
|
||||
|
acountry.exe: $(OBJ_BASE)\demos\acountry.obj $(OBJ_BASE)\demos\ares_getopt.obj $(LIBNAME).lib |
||||
|
$(LD) name $^@ system nt $(LFLAGS) file { $[@ $(OBJ_BASE)\demos\ares_getopt.obj } library $]@, ws2_32.lib |
||||
|
|
||||
|
clean: .SYMBOLIC |
||||
|
-$(RM) $(OBJS_STAT) |
||||
|
-$(RM) $(OBJS_DYN) |
||||
|
-$(RM) $(RESOURCE) $(LINK_ARG) $(LIB_ARG) |
||||
|
|
||||
|
vclean realclean: clean .SYMBOLIC |
||||
|
-$(RM) $(TARGETS) $(LIBNAME).map |
||||
|
-$(RM) $(DEMOS) $(DEMOS:.exe=.map) |
||||
|
-$(RD) $(OBJ_BASE)\stat |
||||
|
-$(RD) $(OBJ_BASE)\dyn |
||||
|
-$(RD) $(OBJ_BASE)\demos |
||||
|
-$(RD) $(OBJ_BASE) |
||||
|
|
||||
|
.ERASE |
||||
|
$(RESOURCE): cares.rc .AUTODEPEND |
||||
|
$(RC) $(DEBUG) -q -r -zm -I..\include $(SYS_INCL) $[@ -fo=$^@ |
||||
|
|
||||
|
.ERASE |
||||
|
.c{$(OBJ_BASE)\dyn}.obj: |
||||
|
$(CC) $(CFLAGS) -bd $[@ -fo=$^@ |
||||
|
|
||||
|
.ERASE |
||||
|
.c{$(OBJ_BASE)\stat}.obj: |
||||
|
$(CC) $(CFLAGS) -DCARES_STATICLIB $[@ -fo=$^@ |
||||
|
|
||||
|
.ERASE |
||||
|
.c{$(OBJ_BASE)\demos}.obj: |
||||
|
$(CC) $(CFLAGS) -DCARES_STATICLIB $[@ -fo=$^@ |
||||
|
|
||||
|
$(LINK_ARG): $(__MAKEFILES__) |
||||
|
%create $^@ |
||||
|
@%append $^@ system nt dll |
||||
|
@%append $^@ file { $(OBJS_DYN) } |
||||
|
@%append $^@ option res=$(RESOURCE), implib=$(LIBNAME)_imp.lib |
||||
|
@%append $^@ $(LFLAGS) |
||||
|
@%append $^@ libpath $(SYS_LIBS) |
||||
|
# @%append $^@ library clib3r.lib
|
||||
|
!ifdef %use_watt32 |
||||
|
@%append $^@ library $(%watt_root)\lib\wattcpw_imp.lib |
||||
|
!else |
||||
|
@%append $^@ library ws2_32.lib |
||||
|
!endif |
||||
|
|
||||
|
$(LIB_ARG): $(__MAKEFILES__) |
||||
|
%create $^@ |
||||
|
@for %f in ($(OBJS_STAT)) do @%append $^@ +- %f |
||||
|
|
||||
|
|
@ -0,0 +1,175 @@ |
|||||
|
AUTOMAKE_OPTIONS = foreign nostdinc |
||||
|
|
||||
|
ACLOCAL_AMFLAGS = -I m4 |
||||
|
|
||||
|
# Specify our include paths here, and do it relative to $(top_srcdir) and
|
||||
|
# $(top_builddir), to ensure that these paths which belong to the library
|
||||
|
# being currently built and tested are searched before the library which
|
||||
|
# might possibly already be installed in the system.
|
||||
|
#
|
||||
|
# When using the low-level hard-hacking memory leak tracking code from
|
||||
|
# libcurl the generated curl/curlbuild.h file must also be reachable.
|
||||
|
# Using the libcurl lowlevel code from within c-ares library is ugly and
|
||||
|
# only works when c-ares is built and linked with a similarly debug-build
|
||||
|
# libcurl, but we do this anyway for convenience.
|
||||
|
#
|
||||
|
# $(top_builddir)/../include/curl for generated curlbuild.h included from curl.h
|
||||
|
# $(top_builddir)/../include is for libcurl's generated curl/curlbuild.h file
|
||||
|
# $(top_srcdir)/../include is for libcurl's external include files
|
||||
|
# $(top_builddir)/../lib is for libcurl's generated lib/curl_config.h file
|
||||
|
# $(top_srcdir)/../lib is for libcurl's lib/setup.h and other "private" files
|
||||
|
# $(top_builddir) is for c-ares's generated ares_config.h file
|
||||
|
# $(top_srcdir) is for c-ares's ares_setup.h and other "c-ares-private" files
|
||||
|
|
||||
|
if CURLDEBUG |
||||
|
INCLUDES = -I$(top_builddir)/../include/curl \
|
||||
|
-I$(top_builddir)/../include \
|
||||
|
-I$(top_srcdir)/../include \
|
||||
|
-I$(top_builddir)/../lib \
|
||||
|
-I$(top_srcdir)/../lib \
|
||||
|
-I$(top_builddir) \
|
||||
|
-I$(top_srcdir) |
||||
|
else |
||||
|
INCLUDES = -I$(top_builddir) \
|
||||
|
-I$(top_srcdir) |
||||
|
endif |
||||
|
|
||||
|
lib_LTLIBRARIES = libcares.la |
||||
|
|
||||
|
man_MANS = $(MANPAGES) |
||||
|
|
||||
|
MSVCFILES = vc/vc6aws.dsw vc/acountry/vc6acountry.dsp vc/adig/vc6adig.dsp \
|
||||
|
vc/ahost/vc6ahost.dsp vc/cares/vc6cares.dsp vc/cares/vc6cares.dsw |
||||
|
|
||||
|
if CURLDEBUG |
||||
|
PROGS = |
||||
|
else |
||||
|
PROGS = ahost adig acountry |
||||
|
endif |
||||
|
|
||||
|
noinst_PROGRAMS =$(PROGS) |
||||
|
|
||||
|
# adig and ahost are just sample programs and thus not mentioned with the
|
||||
|
# regular sources and headers
|
||||
|
EXTRA_DIST = AUTHORS CHANGES README.cares Makefile.inc Makefile.dj \
|
||||
|
Makefile.m32 Makefile.netware Makefile.msvc Makefile.Watcom $(man_MANS) \
|
||||
|
config-win32.h RELEASE-NOTES libcares.pc.in buildconf get_ver.awk maketgz \
|
||||
|
TODO ares_build.h.in $(PDFPAGES) cares.rc README.msvc $(MSVCFILES) \
|
||||
|
$(CSOURCES) $(HHEADERS) config-dos.h |
||||
|
|
||||
|
CLEANFILES = $(PDFPAGES) $(HTMLPAGES) |
||||
|
|
||||
|
DISTCLEANFILES = ares_build.h |
||||
|
|
||||
|
pkgconfigdir = $(libdir)/pkgconfig |
||||
|
pkgconfig_DATA = libcares.pc |
||||
|
|
||||
|
VER=-version-info 2:0:0 |
||||
|
# This flag accepts an argument of the form current[:revision[:age]]. So,
|
||||
|
# passing -version-info 3:12:1 sets current to 3, revision to 12, and age to
|
||||
|
# 1.
|
||||
|
#
|
||||
|
# If either revision or age are omitted, they default to 0. Also note that age
|
||||
|
# must be less than or equal to the current interface number.
|
||||
|
#
|
||||
|
# Here are a set of rules to help you update your library version information:
|
||||
|
#
|
||||
|
# 1.Start with version information of 0:0:0 for each libtool library.
|
||||
|
#
|
||||
|
# 2.Update the version information only immediately before a public release of
|
||||
|
# your software. More frequent updates are unnecessary, and only guarantee
|
||||
|
# that the current interface number gets larger faster.
|
||||
|
#
|
||||
|
# 3.If the library source code has changed at all since the last update, then
|
||||
|
# increment revision (c:r+1:a)
|
||||
|
#
|
||||
|
# 4.If any interfaces have been added, removed, or changed since the last
|
||||
|
# update, increment current, and set revision to 0. (c+1:r=0:a)
|
||||
|
#
|
||||
|
# 5.If any interfaces have been added since the last public release, then
|
||||
|
# increment age. (c:r:a+1)
|
||||
|
#
|
||||
|
# 6.If any interfaces have been removed since the last public release, then
|
||||
|
# set age to 0. (c:r:a=0)
|
||||
|
#
|
||||
|
|
||||
|
if NO_UNDEFINED |
||||
|
# The -no-undefined flag is crucial for this to build fine on some platforms
|
||||
|
UNDEF = -no-undefined |
||||
|
endif |
||||
|
|
||||
|
libcares_la_LDFLAGS = $(UNDEF) $(VER) |
||||
|
|
||||
|
# Add -Werror if defined
|
||||
|
CFLAGS += @CARES_CFLAG_EXTRAS@ |
||||
|
|
||||
|
# Makefile.inc provides the CSOURCES and HHEADERS defines
|
||||
|
include Makefile.inc |
||||
|
|
||||
|
libcares_la_SOURCES = $(CSOURCES) $(HHEADERS) |
||||
|
|
||||
|
# where to install the c-ares headers
|
||||
|
libcares_ladir = $(includedir) |
||||
|
# what headers to install on 'make install':
|
||||
|
libcares_la_HEADERS = ares.h ares_version.h ares_dns.h \
|
||||
|
ares_build.h ares_rules.h |
||||
|
|
||||
|
ahost_SOURCES = ahost.c $(SAMPLESOURCES) $(SAMPLEHEADERS) |
||||
|
ahost_LDADD = $(top_builddir)/libcares.la |
||||
|
ahost_CFLAGS = $(AM_CFLAGS) |
||||
|
|
||||
|
adig_SOURCES = adig.c $(SAMPLESOURCES) $(SAMPLEHEADERS) |
||||
|
adig_LDADD = $(top_builddir)/libcares.la |
||||
|
adig_CFLAGS = $(AM_CFLAGS) |
||||
|
|
||||
|
acountry_SOURCES = acountry.c $(SAMPLESOURCES) $(SAMPLEHEADERS) |
||||
|
acountry_LDADD = $(top_builddir)/libcares.la |
||||
|
acountry_CFLAGS = $(AM_CFLAGS) |
||||
|
|
||||
|
SOURCEDMANDIR = man3 |
||||
|
SOURCEDMANPAGES = ares_init.3 |
||||
|
|
||||
|
clean-local: clean-sourced-manpages |
||||
|
|
||||
|
clean-sourced-manpages: |
||||
|
@srcdmandir='$(SOURCEDMANDIR)'; \
|
||||
|
echo "rm -rf $(top_builddir)/$$srcdmandir"; \
|
||||
|
rm -rf $(top_builddir)/$$srcdmandir |
||||
|
|
||||
|
sourced-manpages: clean-sourced-manpages |
||||
|
@srcdmandir='$(SOURCEDMANDIR)'; \
|
||||
|
srcdmanfiles='$(SOURCEDMANPAGES)'; \
|
||||
|
mkdir $(top_builddir)/$$srcdmandir; \
|
||||
|
for file in $$srcdmanfiles; do \
|
||||
|
if test -f $(top_srcdir)/$$file; then \
|
||||
|
echo "cp $(top_srcdir)/$$file $(top_builddir)/$$srcdmandir/$$file"; \
|
||||
|
cp $(top_srcdir)/$$file $(top_builddir)/$$srcdmandir/$$file; \
|
||||
|
fi; \
|
||||
|
done |
||||
|
|
||||
|
MAN2HTML = roffit --mandir=. < $< >$@ |
||||
|
|
||||
|
SUFFIXES = .3 .html |
||||
|
|
||||
|
html: sourced-manpages $(HTMLPAGES) |
||||
|
|
||||
|
.3.html: |
||||
|
$(MAN2HTML) |
||||
|
|
||||
|
pdf: sourced-manpages $(PDFPAGES) |
||||
|
|
||||
|
.3.pdf: |
||||
|
@(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \
|
||||
|
groff -Tps -man $< >$$foo.ps; \
|
||||
|
ps2pdf $$foo.ps $@; \
|
||||
|
rm $$foo.ps; \
|
||||
|
echo "converted $< to $@") |
||||
|
|
||||
|
# Make files named *.dist replace the file without .dist extension
|
||||
|
dist-hook: |
||||
|
find $(distdir) -name "*.dist" -exec rm {} \; |
||||
|
(distit=`find $(srcdir) -name "*.dist"`; \
|
||||
|
for file in $$distit; do \
|
||||
|
strip=`echo $$file | sed -e s/^$(srcdir)// -e s/\.dist//`; \
|
||||
|
cp $$file $(distdir)$$strip; \
|
||||
|
done) |
@ -0,0 +1,85 @@ |
|||||
|
#
|
||||
|
# c-ares Makefile for djgpp/gcc/Watt-32.
|
||||
|
# By Gisle Vanem <gvanem@broadpark.no> 2004.
|
||||
|
#
|
||||
|
|
||||
|
|
||||
|
TOPDIR = .. |
||||
|
|
||||
|
DEPEND_PREREQ = ares_config.h |
||||
|
|
||||
|
include ../packages/DOS/common.dj |
||||
|
include Makefile.inc |
||||
|
|
||||
|
CFLAGS += -DWATT32 -Dselect=select_s |
||||
|
|
||||
|
LDFLAGS = -s |
||||
|
|
||||
|
ifeq ($(USE_CURLDEBUG),1) |
||||
|
EX_LIBS = ../lib/libcurl.a |
||||
|
OBJ_HACK = $(OBJECTS) |
||||
|
else |
||||
|
OBJ_HACK = libcares.a |
||||
|
endif |
||||
|
|
||||
|
ifeq ($(USE_SSL),1) |
||||
|
EX_LIBS += $(OPENSSL_ROOT)/lib/libssl.a $(OPENSSL_ROOT)/lib/libcrypt.a |
||||
|
endif |
||||
|
|
||||
|
ifeq ($(USE_ZLIB),1) |
||||
|
EX_LIBS += $(ZLIB_ROOT)/libz.a |
||||
|
endif |
||||
|
|
||||
|
ifeq ($(USE_IDNA),1) |
||||
|
EX_LIBS += $(LIBIDN_ROOT)/lib/dj_obj/libidn.a -liconv |
||||
|
endif |
||||
|
|
||||
|
EX_LIBS += $(WATT32_ROOT)/lib/libwatt.a |
||||
|
|
||||
|
OBJECTS = $(addprefix $(OBJ_DIR)/, $(CSOURCES:.c=.o)) |
||||
|
|
||||
|
all: $(OBJ_DIR) ares_config.h libcares.a ahost.exe adig.exe acountry.exe |
||||
|
@echo Welcome to c-ares. |
||||
|
|
||||
|
libcares.a: $(OBJECTS) |
||||
|
ar rs $@ $? |
||||
|
|
||||
|
ares_config.h: config-dos.h |
||||
|
$(COPY) $^ $@ |
||||
|
|
||||
|
ahost.exe: ahost.c $(OBJ_DIR)/ares_getopt.o $(OBJ_HACK) |
||||
|
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^ $(EX_LIBS) |
||||
|
|
||||
|
adig.exe: adig.c $(OBJ_DIR)/ares_getopt.o $(OBJ_HACK) |
||||
|
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^ $(EX_LIBS) |
||||
|
|
||||
|
acountry.exe: acountry.c $(OBJ_DIR)/ares_getopt.o $(OBJ_HACK) |
||||
|
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^ $(EX_LIBS) |
||||
|
|
||||
|
# clean generated files
|
||||
|
#
|
||||
|
genclean: |
||||
|
- $(DELETE) ares_config.h |
||||
|
|
||||
|
# clean object files and subdir
|
||||
|
#
|
||||
|
objclean: genclean |
||||
|
- $(DELETE) $(OBJ_DIR)$(DS)*.o |
||||
|
- $(RMDIR) $(OBJ_DIR) |
||||
|
|
||||
|
# clean without removing built library and programs
|
||||
|
#
|
||||
|
clean: objclean |
||||
|
- $(DELETE) depend.dj |
||||
|
|
||||
|
# clean everything
|
||||
|
#
|
||||
|
realclean vclean: clean |
||||
|
- $(DELETE) libcares.a |
||||
|
- $(DELETE) acountry.exe |
||||
|
- $(DELETE) adig.exe |
||||
|
- $(DELETE) ahost.exe |
||||
|
- $(DELETE) libcares.a |
||||
|
|
||||
|
-include depend.dj |
||||
|
|
File diff suppressed because it is too large
@ -0,0 +1,192 @@ |
|||||
|
|
||||
|
CSOURCES = ares__close_sockets.c \ |
||||
|
ares__get_hostent.c \ |
||||
|
ares__read_line.c \ |
||||
|
ares__timeval.c \ |
||||
|
ares_cancel.c \ |
||||
|
ares_data.c \ |
||||
|
ares_destroy.c \ |
||||
|
ares_expand_name.c \ |
||||
|
ares_expand_string.c \ |
||||
|
ares_fds.c \ |
||||
|
ares_free_hostent.c \ |
||||
|
ares_free_string.c \ |
||||
|
ares_gethostbyaddr.c \ |
||||
|
ares_gethostbyname.c \ |
||||
|
ares_getnameinfo.c \ |
||||
|
ares_getsock.c \ |
||||
|
ares_init.c \ |
||||
|
ares_library_init.c \ |
||||
|
ares_llist.c \ |
||||
|
ares_mkquery.c \ |
||||
|
ares_nowarn.c \ |
||||
|
ares_options.c \ |
||||
|
ares_parse_a_reply.c \ |
||||
|
ares_parse_aaaa_reply.c \ |
||||
|
ares_parse_mx_reply.c \ |
||||
|
ares_parse_ns_reply.c \ |
||||
|
ares_parse_ptr_reply.c \ |
||||
|
ares_parse_srv_reply.c \ |
||||
|
ares_parse_txt_reply.c \ |
||||
|
ares_process.c \ |
||||
|
ares_query.c \ |
||||
|
ares_search.c \ |
||||
|
ares_send.c \ |
||||
|
ares_strcasecmp.c \ |
||||
|
ares_strdup.c \ |
||||
|
ares_strerror.c \ |
||||
|
ares_timeout.c \ |
||||
|
ares_version.c \ |
||||
|
ares_writev.c \ |
||||
|
bitncmp.c \ |
||||
|
inet_net_pton.c \ |
||||
|
inet_ntop.c \ |
||||
|
windows_port.c |
||||
|
|
||||
|
HHEADERS = ares.h \ |
||||
|
ares_build.h \ |
||||
|
ares_data.h \ |
||||
|
ares_dns.h \ |
||||
|
ares_ipv6.h \ |
||||
|
ares_library_init.h \ |
||||
|
ares_llist.h \ |
||||
|
ares_nowarn.h \ |
||||
|
ares_private.h \ |
||||
|
ares_rules.h \ |
||||
|
ares_strcasecmp.h \ |
||||
|
ares_strdup.h \ |
||||
|
ares_version.h \ |
||||
|
ares_writev.h \ |
||||
|
bitncmp.h \ |
||||
|
inet_net_pton.h \ |
||||
|
inet_ntop.h \ |
||||
|
nameser.h \ |
||||
|
ares_setup.h \ |
||||
|
setup_once.h |
||||
|
|
||||
|
MANPAGES = ares_cancel.3 \ |
||||
|
ares_destroy.3 \ |
||||
|
ares_destroy_options.3 \ |
||||
|
ares_dup.3 \ |
||||
|
ares_expand_name.3 \ |
||||
|
ares_expand_string.3 \ |
||||
|
ares_fds.3 \ |
||||
|
ares_free_data.3 \ |
||||
|
ares_free_hostent.3 \ |
||||
|
ares_free_string.3 \ |
||||
|
ares_get_servers.3 \ |
||||
|
ares_gethostbyaddr.3 \ |
||||
|
ares_gethostbyname.3 \ |
||||
|
ares_gethostbyname_file.3 \ |
||||
|
ares_getnameinfo.3 \ |
||||
|
ares_getsock.3 \ |
||||
|
ares_init.3 \ |
||||
|
ares_init_options.3 \ |
||||
|
ares_library_cleanup.3 \ |
||||
|
ares_library_init.3 \ |
||||
|
ares_mkquery.3 \ |
||||
|
ares_parse_a_reply.3 \ |
||||
|
ares_parse_aaaa_reply.3 \ |
||||
|
ares_parse_mx_reply.3 \ |
||||
|
ares_parse_ns_reply.3 \ |
||||
|
ares_parse_ptr_reply.3 \ |
||||
|
ares_parse_srv_reply.3 \ |
||||
|
ares_parse_txt_reply.3 \ |
||||
|
ares_process.3 \ |
||||
|
ares_query.3 \ |
||||
|
ares_save_options.3 \ |
||||
|
ares_search.3 \ |
||||
|
ares_send.3 \ |
||||
|
ares_set_servers.3 \ |
||||
|
ares_set_socket_callback.3 \ |
||||
|
ares_strerror.3 \ |
||||
|
ares_timeout.3 \ |
||||
|
ares_version.3 |
||||
|
|
||||
|
HTMLPAGES = ares_cancel.html \ |
||||
|
ares_destroy.html \ |
||||
|
ares_destroy_options.html \ |
||||
|
ares_dup.html \ |
||||
|
ares_expand_name.html \ |
||||
|
ares_expand_string.html \ |
||||
|
ares_fds.html \ |
||||
|
ares_free_data.html \ |
||||
|
ares_free_hostent.html \ |
||||
|
ares_free_string.html \ |
||||
|
ares_get_servers.html \ |
||||
|
ares_gethostbyaddr.html \ |
||||
|
ares_gethostbyname.html \ |
||||
|
ares_gethostbyname_file.html \ |
||||
|
ares_getnameinfo.html \ |
||||
|
ares_getsock.html \ |
||||
|
ares_init.html \ |
||||
|
ares_init_options.html \ |
||||
|
ares_library_cleanup.html \ |
||||
|
ares_library_init.html \ |
||||
|
ares_mkquery.html \ |
||||
|
ares_parse_a_reply.html \ |
||||
|
ares_parse_aaaa_reply.html \ |
||||
|
ares_parse_mx_reply.html \ |
||||
|
ares_parse_ns_reply.html \ |
||||
|
ares_parse_ptr_reply.html \ |
||||
|
ares_parse_srv_reply.html \ |
||||
|
ares_parse_txt_reply.html \ |
||||
|
ares_process.html \ |
||||
|
ares_query.html \ |
||||
|
ares_save_options.html \ |
||||
|
ares_search.html \ |
||||
|
ares_send.html \ |
||||
|
ares_set_servers.html \ |
||||
|
ares_set_socket_callback.html \ |
||||
|
ares_strerror.html \ |
||||
|
ares_timeout.html \ |
||||
|
ares_version.html |
||||
|
|
||||
|
PDFPAGES = ares_cancel.pdf \ |
||||
|
ares_destroy.pdf \ |
||||
|
ares_destroy_options.pdf \ |
||||
|
ares_dup.pdf \ |
||||
|
ares_expand_name.pdf \ |
||||
|
ares_expand_string.pdf \ |
||||
|
ares_fds.pdf \ |
||||
|
ares_free_data.pdf \ |
||||
|
ares_free_hostent.pdf \ |
||||
|
ares_free_string.pdf \ |
||||
|
ares_get_servers.pdf \ |
||||
|
ares_gethostbyaddr.pdf \ |
||||
|
ares_gethostbyname.pdf \ |
||||
|
ares_gethostbyname_file.pdf \ |
||||
|
ares_getnameinfo.pdf \ |
||||
|
ares_getsock.pdf \ |
||||
|
ares_init.pdf \ |
||||
|
ares_init_options.pdf \ |
||||
|
ares_library_cleanup.pdf \ |
||||
|
ares_library_init.pdf \ |
||||
|
ares_mkquery.pdf \ |
||||
|
ares_parse_a_reply.pdf \ |
||||
|
ares_parse_aaaa_reply.pdf \ |
||||
|
ares_parse_mx_reply.pdf \ |
||||
|
ares_parse_ns_reply.pdf \ |
||||
|
ares_parse_ptr_reply.pdf \ |
||||
|
ares_parse_srv_reply.pdf \ |
||||
|
ares_parse_txt_reply.pdf \ |
||||
|
ares_process.pdf \ |
||||
|
ares_query.pdf \ |
||||
|
ares_save_options.pdf \ |
||||
|
ares_search.pdf \ |
||||
|
ares_send.pdf \ |
||||
|
ares_set_servers.pdf \ |
||||
|
ares_set_socket_callback.pdf \ |
||||
|
ares_strerror.pdf \ |
||||
|
ares_timeout.pdf \ |
||||
|
ares_version.pdf |
||||
|
|
||||
|
SAMPLESOURCES = ares_getopt.c \ |
||||
|
ares_strcasecmp.c \ |
||||
|
inet_net_pton.c \ |
||||
|
inet_ntop.c |
||||
|
|
||||
|
SAMPLEHEADERS = ares_getopt.h \ |
||||
|
ares_strcasecmp.h \ |
||||
|
inet_net_pton.h \ |
||||
|
inet_ntop.h |
@ -0,0 +1,68 @@ |
|||||
|
#############################################################
|
||||
|
#
|
||||
|
## Makefile for building libcares.a with MingW32 (GCC-3.2)
|
||||
|
## Use: make -f Makefile.m32 [demos]
|
||||
|
##
|
||||
|
## Quick hack by Guenter; comments to: /dev/nul
|
||||
|
#
|
||||
|
########################################################
|
||||
|
## Nothing more to do below this line!
|
||||
|
|
||||
|
LIB = libcares.a |
||||
|
|
||||
|
CC = gcc |
||||
|
LD = gcc |
||||
|
RANLIB = ranlib |
||||
|
#RM = rm -f
|
||||
|
|
||||
|
CFLAGS = -O2 -Wall -I. -DCARES_STATICLIB |
||||
|
LDFLAGS = -s |
||||
|
LIBS = -lwsock32 |
||||
|
|
||||
|
# Makefile.inc provides the CSOURCES and HHEADERS defines
|
||||
|
include Makefile.inc |
||||
|
|
||||
|
OBJLIB := $(patsubst %.c,%.o,$(strip $(CSOURCES))) |
||||
|
|
||||
|
|
||||
|
$(LIB): $(OBJLIB) |
||||
|
ar cru $@ $^ |
||||
|
$(RANLIB) $@ |
||||
|
|
||||
|
all: $(LIB) demos |
||||
|
|
||||
|
demos: adig.exe ahost.exe acountry.exe |
||||
|
|
||||
|
tags: |
||||
|
etags *.[ch] |
||||
|
|
||||
|
%.exe: %.o ares_getopt.o $(LIB) |
||||
|
$(LD) $(LDFLAGS) -o $@ $^ $(LIBS) |
||||
|
|
||||
|
$(OBJLIB): ares.h ares_dns.h ares_private.h ares_build.h ares_rules.h |
||||
|
|
||||
|
.c.o: |
||||
|
$(CC) $(CFLAGS) -c $< |
||||
|
|
||||
|
check: |
||||
|
|
||||
|
install: |
||||
|
${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir} |
||||
|
${top_srcdir}/mkinstalldirs ${DESTDIR}${includedir} |
||||
|
${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man3 |
||||
|
${INSTALL} -m 644 $(LIB) ${DESTDIR}${libdir} |
||||
|
${RANLIB} ${DESTDIR}${libdir}/$(LIB) |
||||
|
chmod u-w ${DESTDIR}${libdir}/$(LIB) |
||||
|
${INSTALL} -m 444 ${srcdir}/ares.h ${DESTDIR}${includedir} |
||||
|
${INSTALL} -m 444 ${srcdir}/ares_build.h ${DESTDIR}${includedir} |
||||
|
${INSTALL} -m 444 ${srcdir}/ares_rules.h ${DESTDIR}${includedir} |
||||
|
(for man in $(MANPAGES); do \
|
||||
|
${INSTALL} -m 444 ${srcdir}/$${man} ${DESTDIR}${mandir}/man3; \
|
||||
|
done) |
||||
|
|
||||
|
clean: |
||||
|
$(RM) ares_getopt.o $(OBJLIB) $(LIB) adig.exe ahost.exe acountry.exe |
||||
|
|
||||
|
distclean: clean |
||||
|
$(RM) config.cache config.log config.status Makefile |
||||
|
|
@ -0,0 +1,476 @@ |
|||||
|
|
||||
|
# Copyright (C) 2009-2010 by Daniel Stenberg
|
||||
|
#
|
||||
|
# Permission to use, copy, modify, and distribute this
|
||||
|
# software and its documentation for any purpose and without
|
||||
|
# fee is hereby granted, provided that the above copyright
|
||||
|
# notice appear in all copies and that both that copyright
|
||||
|
# notice and this permission notice appear in supporting
|
||||
|
# documentation, and that the name of M.I.T. not be used in
|
||||
|
# advertising or publicity pertaining to distribution of the
|
||||
|
# software without specific, written prior permission.
|
||||
|
# M.I.T. makes no representations about the suitability of
|
||||
|
# this software for any purpose. It is provided "as is"
|
||||
|
# without express or implied warranty.
|
||||
|
|
||||
|
# ------------------------------------------------------------------------------
|
||||
|
#
|
||||
|
# Makefile for building c-ares libraries and sample programs with MSVC.
|
||||
|
#
|
||||
|
# Usage: nmake /f makefile.msvc CFG=<config> <target>
|
||||
|
#
|
||||
|
# <config> must be one of: [ lib-release | lib-debug | dll-release | dll-debug }
|
||||
|
# <target> must be one of: [ ALL | c-ares | acountry | adig | ahost | clean }
|
||||
|
#
|
||||
|
# If a <target> other than ALL or clean is given, <config> becomes mandatory.
|
||||
|
#
|
||||
|
# If neither <config> nor <target> are specified this results in
|
||||
|
# all targets being built for all <config> c-ares library types.
|
||||
|
#
|
||||
|
# This makefile must be processed from the subdir where it is located.
|
||||
|
#
|
||||
|
# All results are generated below a subdirectory named msvcXXX.
|
||||
|
#
|
||||
|
# ------------------------------------------------------------------------------
|
||||
|
|
||||
|
NAME = cares |
||||
|
|
||||
|
# ------------------------------------------------
|
||||
|
# c-ares static and dynamic libraries common base
|
||||
|
# file names for release and debug configurations
|
||||
|
# ------------------------------------------------
|
||||
|
|
||||
|
STA_LIB_REL = lib$(NAME) |
||||
|
DYN_LIB_REL = $(NAME) |
||||
|
STA_LIB_DBG = $(STA_LIB_REL)d |
||||
|
DYN_LIB_DBG = $(DYN_LIB_REL)d |
||||
|
|
||||
|
# -------------------------------------------
|
||||
|
# Base names for c-ares DLL import libraries
|
||||
|
# -------------------------------------------
|
||||
|
|
||||
|
IMP_LIB_REL = $(DYN_LIB_REL) |
||||
|
IMP_LIB_DBG = $(DYN_LIB_DBG) |
||||
|
|
||||
|
# --------------------------
|
||||
|
# Runtime library selection
|
||||
|
# --------------------------
|
||||
|
|
||||
|
RTLIB = /MD |
||||
|
RTLIBD = /MDd |
||||
|
|
||||
|
!IF "$(RTLIBCFG)" == "static" |
||||
|
RTLIB = /MT |
||||
|
RTLIBD = /MTd |
||||
|
!ENDIF |
||||
|
|
||||
|
# --------------------------------------------------------
|
||||
|
# Define USE_WATT32 to 1 to use the Watt-32 tcp/ip stack,
|
||||
|
# otherwise Winsock tcp/ip stack will be used as default.
|
||||
|
# --------------------------------------------------------
|
||||
|
|
||||
|
USE_WATT32 = 0 |
||||
|
|
||||
|
# -------------------------------------------
|
||||
|
# Detect NMAKE version deducing MSVC version
|
||||
|
# -------------------------------------------
|
||||
|
|
||||
|
!IFNDEF _NMAKE_VER |
||||
|
! MESSAGE Macro _NMAKE_VER not defined. |
||||
|
! MESSAGE Use MSVC's NMAKE to process this makefile. |
||||
|
! ERROR See previous message. |
||||
|
!ENDIF |
||||
|
|
||||
|
!IF "$(_NMAKE_VER)" == "6.00.8168.0" |
||||
|
CC_VERS_NUM = 60 |
||||
|
!ELSEIF "$(_NMAKE_VER)" == "6.00.9782.0" |
||||
|
CC_VERS_NUM = 60 |
||||
|
!ELSEIF "$(_NMAKE_VER)" == "7.00.9466" |
||||
|
CC_VERS_NUM = 70 |
||||
|
!ELSEIF "$(_NMAKE_VER)" == "7.00.9955" |
||||
|
CC_VERS_NUM = 70 |
||||
|
!ELSEIF "$(_NMAKE_VER)" == "7.10.3077" |
||||
|
CC_VERS_NUM = 71 |
||||
|
!ELSEIF "$(_NMAKE_VER)" == "8.00.40607.16" |
||||
|
CC_VERS_NUM = 80 |
||||
|
!ELSEIF "$(_NMAKE_VER)" == "8.00.50727.42" |
||||
|
CC_VERS_NUM = 80 |
||||
|
!ELSEIF "$(_NMAKE_VER)" == "8.00.50727.762" |
||||
|
CC_VERS_NUM = 80 |
||||
|
!ELSEIF "$(_NMAKE_VER)" == "9.00.21022.08" |
||||
|
CC_VERS_NUM = 90 |
||||
|
!ELSEIF "$(_NMAKE_VER)" == "9.00.30729.01" |
||||
|
CC_VERS_NUM = 90 |
||||
|
!ELSEIF "$(_NMAKE_VER)" == "10.00.20506.01" |
||||
|
CC_VERS_NUM = 100 |
||||
|
!ELSEIF "$(_NMAKE_VER)" == "10.00.21003.01" |
||||
|
CC_VERS_NUM = 100 |
||||
|
!ELSEIF "$(_NMAKE_VER)" == "10.00.30319.01" |
||||
|
CC_VERS_NUM = 100 |
||||
|
!ELSE |
||||
|
! MESSAGE Unknown value for _NMAKE_VER macro: "$(_NMAKE_VER)" |
||||
|
! MESSAGE Please, report this condition on the c-ares development |
||||
|
! MESSAGE mailing list: http://cool.haxx.se/mailman/listinfo/c-ares/ |
||||
|
! ERROR See previous message. |
||||
|
!ENDIF |
||||
|
|
||||
|
CC_VERS_STR = msvc$(CC_VERS_NUM) |
||||
|
|
||||
|
# ----------------------------------------------------
|
||||
|
# Verify that current subdir is the c-ares source one
|
||||
|
# ----------------------------------------------------
|
||||
|
|
||||
|
!IF ! EXIST(.\ares_init.c) |
||||
|
! MESSAGE Can not process Makefile.msvc from outside of c-ares source subdirectory. |
||||
|
! MESSAGE Change to the subdirectory where Makefile.msvc is found, and try again. |
||||
|
! ERROR See previous message. |
||||
|
!ENDIF |
||||
|
|
||||
|
# ------------------------------------------------------------------
|
||||
|
# Base subdir is the common root from which other subdirs will hang,
|
||||
|
# the name depends on MSVC version being used when building c-ares.
|
||||
|
# ------------------------------------------------------------------
|
||||
|
|
||||
|
BASE_DIR = .\$(CC_VERS_STR) |
||||
|
|
||||
|
# ----------------------------------------
|
||||
|
# Subdir holding sources for all projects
|
||||
|
# ----------------------------------------
|
||||
|
|
||||
|
SRCDIR = . |
||||
|
|
||||
|
# -------------------------
|
||||
|
# Configuration validation
|
||||
|
# -------------------------
|
||||
|
|
||||
|
VALID_CFGSET = FALSE |
||||
|
!IF "$(CFG)" == "lib-release" || "$(CFG)" == "lib-debug" || \ |
||||
|
"$(CFG)" == "dll-release" || "$(CFG)" == "dll-debug" |
||||
|
VALID_CFGSET = TRUE |
||||
|
!ENDIF |
||||
|
|
||||
|
!IF "$(VALID_CFGSET)" == "FALSE" && "$(CFG)" != "" |
||||
|
! MESSAGE MSVC c-ares makefile |
||||
|
! MESSAGE |
||||
|
! MESSAGE Usage: nmake /f makefile.msvc CFG=<config> <target> |
||||
|
! MESSAGE |
||||
|
! MESSAGE <config> must be one of: [ lib-release | lib-debug | dll-release | dll-debug } |
||||
|
! MESSAGE <target> must be one of: [ ALL | c-ares | acountry | adig | ahost | clean } |
||||
|
! MESSAGE |
||||
|
! MESSAGE If a <target> other than ALL or clean is given, <config> becomes mandatory. |
||||
|
! MESSAGE |
||||
|
! MESSAGE If neither <config> nor <target> are specified this results in |
||||
|
! MESSAGE all targets being built for all <config> c-ares library types. |
||||
|
! MESSAGE |
||||
|
! ERROR Choose a valid configuration. |
||||
|
!ENDIF |
||||
|
|
||||
|
# --------------------------------------------------------
|
||||
|
# Project subdirs independent of configuration being used
|
||||
|
# --------------------------------------------------------
|
||||
|
|
||||
|
CARES_DIR = $(BASE_DIR)\cares |
||||
|
PROG1_DIR = $(BASE_DIR)\acountry |
||||
|
PROG2_DIR = $(BASE_DIR)\adig |
||||
|
PROG3_DIR = $(BASE_DIR)\ahost |
||||
|
|
||||
|
# ---------------------------------------------------
|
||||
|
# Subdirs which are configuration dependent are only
|
||||
|
# defined when a valid configuration has been given.
|
||||
|
# ---------------------------------------------------
|
||||
|
|
||||
|
!IF "$(VALID_CFGSET)" == "TRUE" |
||||
|
CARES_OUTDIR = $(CARES_DIR)\$(CFG) |
||||
|
PROG1_OUTDIR = $(PROG1_DIR)\$(CFG) |
||||
|
PROG2_OUTDIR = $(PROG2_DIR)\$(CFG) |
||||
|
PROG3_OUTDIR = $(PROG3_DIR)\$(CFG) |
||||
|
CARES_OBJDIR = $(CARES_OUTDIR)\obj |
||||
|
PROG1_OBJDIR = $(PROG1_OUTDIR)\obj |
||||
|
PROG2_OBJDIR = $(PROG2_OUTDIR)\obj |
||||
|
PROG3_OBJDIR = $(PROG3_OUTDIR)\obj |
||||
|
!ELSE |
||||
|
!UNDEF CARES_OUTDIR |
||||
|
!UNDEF PROG1_OUTDIR |
||||
|
!UNDEF PROG2_OUTDIR |
||||
|
!UNDEF PROG3_OUTDIR |
||||
|
!UNDEF CARES_OBJDIR |
||||
|
!UNDEF PROG1_OBJDIR |
||||
|
!UNDEF PROG2_OBJDIR |
||||
|
!UNDEF PROG3_OBJDIR |
||||
|
!ENDIF |
||||
|
|
||||
|
# -------------------------------------
|
||||
|
# Settings that depend on tcp/ip stack
|
||||
|
# -------------------------------------
|
||||
|
|
||||
|
!IF "$(USE_WATT32)" == "1" |
||||
|
CFLAGS = /UWIN32 /DWATT32 /I$(WATT_ROOT)\inc |
||||
|
EX_LIBS_REL = $(WATT_ROOT)\lib\wattcpvc_imp.lib |
||||
|
EX_LIBS_DBG = $(WATT_ROOT)\lib\wattcpvc_imp_d.lib |
||||
|
!ELSE |
||||
|
CFLAGS = /DWIN32 |
||||
|
EX_LIBS_REL = ws2_32.lib advapi32.lib kernel32.lib |
||||
|
EX_LIBS_DBG = ws2_32.lib advapi32.lib kernel32.lib |
||||
|
!ENDIF |
||||
|
|
||||
|
# -----------------------------------------
|
||||
|
# Switches that depend on compiler version
|
||||
|
# -----------------------------------------
|
||||
|
|
||||
|
!IF $(CC_VERS_NUM) == 60 |
||||
|
PDB_NONE = /pdb:none |
||||
|
PDBTYPE_CONSOLIDATE = /pdbtype:consolidate |
||||
|
!ELSE |
||||
|
!UNDEF PDB_NONE |
||||
|
!UNDEF PDBTYPE_CONSOLIDATE |
||||
|
!ENDIF |
||||
|
|
||||
|
!IF $(CC_VERS_NUM) <= 70 |
||||
|
RT_ERROR_CHECKING = /GZ |
||||
|
!ELSE |
||||
|
RT_ERROR_CHECKING = /RTCsu |
||||
|
!ENDIF |
||||
|
|
||||
|
# ----------------------------
|
||||
|
# Assorted commands and flags
|
||||
|
# ----------------------------
|
||||
|
|
||||
|
CC_CMD_REL = cl.exe /nologo $(RTLIB) /DNDEBUG /O2 |
||||
|
CC_CMD_DBG = cl.exe /nologo $(RTLIBD) /D_DEBUG /Od /Zi $(RT_ERROR_CHECKING) |
||||
|
CC_CFLAGS = $(CFLAGS) /I. /W3 /EHsc /FD |
||||
|
|
||||
|
RC_CMD_REL = rc.exe /l 0x409 /d "NDEBUG" |
||||
|
RC_CMD_DBG = rc.exe /l 0x409 /d "_DEBUG" |
||||
|
|
||||
|
LINK_CMD_LIB = link.exe /lib /nologo |
||||
|
LINK_CMD_DLL = link.exe /dll /nologo /incremental:no /fixed:no |
||||
|
LINK_CMD_EXE = link.exe /nologo /incremental:no /fixed:no /subsystem:console |
||||
|
|
||||
|
LINK_CMD_EXE_REL = $(LINK_CMD_EXE) /release $(PDB_NONE) |
||||
|
LINK_CMD_EXE_DBG = $(LINK_CMD_EXE) /debug $(PDBTYPE_CONSOLIDATE) |
||||
|
|
||||
|
# ---------------------------------
|
||||
|
# Configuration dependent settings
|
||||
|
# ---------------------------------
|
||||
|
|
||||
|
!IF "$(CFG)" == "lib-release" |
||||
|
CARES_TARGET = $(STA_LIB_REL).lib |
||||
|
CARES_CFLAGS = /DCARES_BUILDING_LIBRARY /DCARES_STATICLIB |
||||
|
CARES_LFLAGS = |
||||
|
SPROG_CFLAGS = /DCARES_STATICLIB |
||||
|
SPROG_LFLAGS = /libpath:$(CARES_OUTDIR) $(EX_LIBS_REL) $(STA_LIB_REL).lib |
||||
|
CARES_LINK = $(LINK_CMD_LIB) |
||||
|
SPROG_LINK = $(LINK_CMD_EXE_REL) |
||||
|
CC_CMD = $(CC_CMD_REL) |
||||
|
!ENDIF |
||||
|
|
||||
|
!IF "$(CFG)" == "lib-debug" |
||||
|
CARES_TARGET = $(STA_LIB_DBG).lib |
||||
|
CARES_CFLAGS = /DCARES_BUILDING_LIBRARY /DCARES_STATICLIB /DDEBUGBUILD |
||||
|
CARES_LFLAGS = |
||||
|
SPROG_CFLAGS = /DCARES_STATICLIB |
||||
|
SPROG_LFLAGS = /libpath:$(CARES_OUTDIR) $(EX_LIBS_DBG) $(STA_LIB_DBG).lib |
||||
|
CARES_LINK = $(LINK_CMD_LIB) |
||||
|
SPROG_LINK = $(LINK_CMD_EXE_DBG) |
||||
|
CC_CMD = $(CC_CMD_DBG) |
||||
|
!ENDIF |
||||
|
|
||||
|
!IF "$(CFG)" == "dll-release" |
||||
|
CARES_TARGET = $(DYN_LIB_REL).dll |
||||
|
CARES_CFLAGS = /DCARES_BUILDING_LIBRARY |
||||
|
CARES_LFLAGS = /release $(EX_LIBS_REL) /implib:$(CARES_OUTDIR)\$(IMP_LIB_REL).lib $(PDB_NONE) |
||||
|
SPROG_CFLAGS = |
||||
|
SPROG_LFLAGS = /libpath:$(CARES_OUTDIR) $(EX_LIBS_REL) $(IMP_LIB_REL).lib |
||||
|
CARES_LINK = $(LINK_CMD_DLL) |
||||
|
SPROG_LINK = $(LINK_CMD_EXE_REL) |
||||
|
CC_CMD = $(CC_CMD_REL) |
||||
|
USE_RES_FILE = TRUE |
||||
|
RC_CMD = $(RC_CMD_REL) |
||||
|
!ENDIF |
||||
|
|
||||
|
!IF "$(CFG)" == "dll-debug" |
||||
|
CARES_TARGET = $(DYN_LIB_DBG).dll |
||||
|
CARES_CFLAGS = /DCARES_BUILDING_LIBRARY /DDEBUGBUILD |
||||
|
CARES_LFLAGS = /debug $(EX_LIBS_DBG) /implib:$(CARES_OUTDIR)\$(IMP_LIB_DBG).lib /pdb:$(CARES_OUTDIR)\$(DYN_LIB_DBG).pdb $(PDBTYPE_CONSOLIDATE) |
||||
|
SPROG_CFLAGS = |
||||
|
SPROG_LFLAGS = /libpath:$(CARES_OUTDIR) $(EX_LIBS_DBG) $(IMP_LIB_DBG).lib |
||||
|
CARES_LINK = $(LINK_CMD_DLL) |
||||
|
SPROG_LINK = $(LINK_CMD_EXE_DBG) |
||||
|
CC_CMD = $(CC_CMD_DBG) |
||||
|
USE_RES_FILE = TRUE |
||||
|
RC_CMD = $(RC_CMD_DBG) |
||||
|
!ENDIF |
||||
|
|
||||
|
# --------------------------------------------
|
||||
|
# Makefile.inc provides lists of source files
|
||||
|
# --------------------------------------------
|
||||
|
|
||||
|
!INCLUDE .\Makefile.inc |
||||
|
|
||||
|
# ----------------------------
|
||||
|
# Build lists of object files
|
||||
|
# ----------------------------
|
||||
|
|
||||
|
!IF "$(VALID_CFGSET)" == "TRUE" |
||||
|
|
||||
|
!IF [ECHO CARES_OBJS=^$(CARES_OBJDIR)\$(CSOURCES: = $(CARES_OBJDIR^)\) > .\cares_objs.inc] == 0 |
||||
|
!INCLUDE .\cares_objs.inc |
||||
|
!IF [DEL .\cares_objs.inc] |
||||
|
!ENDIF |
||||
|
!ELSE |
||||
|
!ERROR Problem generating CARES_OBJS list. |
||||
|
!ENDIF |
||||
|
CARES_OBJS = $(CARES_OBJS:.c=.obj) |
||||
|
!IF "$(USE_RES_FILE)" == "TRUE" |
||||
|
CARES_OBJS = $(CARES_OBJS) $(CARES_OBJDIR)\cares.res |
||||
|
!ENDIF |
||||
|
|
||||
|
!IF [ECHO PROG1_OBJS=^$(PROG1_OBJDIR)\$(SAMPLESOURCES: = $(PROG1_OBJDIR^)\) > .\prog1_objs.inc] == 0 |
||||
|
!INCLUDE .\prog1_objs.inc |
||||
|
!IF [DEL .\prog1_objs.inc] |
||||
|
!ENDIF |
||||
|
!ELSE |
||||
|
!ERROR Problem generating PROG1_OBJS list. |
||||
|
!ENDIF |
||||
|
PROG1_OBJS = $(PROG1_OBJS:.c=.obj) |
||||
|
PROG1_OBJS = $(PROG1_OBJS) $(PROG1_OBJDIR)\acountry.obj |
||||
|
|
||||
|
!IF [ECHO PROG2_OBJS=^$(PROG2_OBJDIR)\$(SAMPLESOURCES: = $(PROG2_OBJDIR^)\) > .\prog2_objs.inc] == 0 |
||||
|
!INCLUDE .\prog2_objs.inc |
||||
|
!IF [DEL .\prog2_objs.inc] |
||||
|
!ENDIF |
||||
|
!ELSE |
||||
|
!ERROR Problem generating PROG2_OBJS list. |
||||
|
!ENDIF |
||||
|
PROG2_OBJS = $(PROG2_OBJS:.c=.obj) |
||||
|
PROG2_OBJS = $(PROG2_OBJS) $(PROG2_OBJDIR)\adig.obj |
||||
|
|
||||
|
!IF [ECHO PROG3_OBJS=^$(PROG3_OBJDIR)\$(SAMPLESOURCES: = $(PROG3_OBJDIR^)\) > .\prog3_objs.inc] == 0 |
||||
|
!INCLUDE .\prog3_objs.inc |
||||
|
!IF [DEL .\prog3_objs.inc] |
||||
|
!ENDIF |
||||
|
!ELSE |
||||
|
!ERROR Problem generating PROG3_OBJS list. |
||||
|
!ENDIF |
||||
|
PROG3_OBJS = $(PROG3_OBJS:.c=.obj) |
||||
|
PROG3_OBJS = $(PROG3_OBJS) $(PROG3_OBJDIR)\ahost.obj |
||||
|
|
||||
|
!ENDIF |
||||
|
|
||||
|
# --------------------------------
|
||||
|
# Only our custom inference rules
|
||||
|
# --------------------------------
|
||||
|
|
||||
|
.SUFFIXES: |
||||
|
.SUFFIXES: .c .rc |
||||
|
|
||||
|
{$(SRCDIR)}.rc{$(CARES_OBJDIR)}.res: |
||||
|
$(RC_CMD) /Fo $@ $< |
||||
|
|
||||
|
{$(SRCDIR)}.c{$(CARES_OBJDIR)}.obj: |
||||
|
$(CC_CMD) $(CC_CFLAGS) $(CARES_CFLAGS) /Fo$@ /Fd$(@D)\ /c $< |
||||
|
|
||||
|
{$(SRCDIR)}.c{$(PROG1_OBJDIR)}.obj: |
||||
|
$(CC_CMD) $(CC_CFLAGS) $(SPROG_CFLAGS) /Fo$@ /Fd$(@D)\ /c $< |
||||
|
|
||||
|
{$(SRCDIR)}.c{$(PROG2_OBJDIR)}.obj: |
||||
|
$(CC_CMD) $(CC_CFLAGS) $(SPROG_CFLAGS) /Fo$@ /Fd$(@D)\ /c $< |
||||
|
|
||||
|
{$(SRCDIR)}.c{$(PROG3_OBJDIR)}.obj: |
||||
|
$(CC_CMD) $(CC_CFLAGS) $(SPROG_CFLAGS) /Fo$@ /Fd$(@D)\ /c $< |
||||
|
|
||||
|
# ------------------------------------------------------------- #
|
||||
|
# ------------------------------------------------------------- #
|
||||
|
# Default target when no CFG library type has been specified, #
|
||||
|
# results in building target ALL for all c-ares library types. #
|
||||
|
# ------------------------------------------------------------- #
|
||||
|
# ------------------------------------------------------------- #
|
||||
|
|
||||
|
!IF "$(VALID_CFGSET)" == "FALSE" |
||||
|
|
||||
|
ALL: |
||||
|
$(MAKE) /f .\Makefile.msvc CFG=lib-release ALL |
||||
|
$(MAKE) /f .\Makefile.msvc CFG=lib-debug ALL |
||||
|
$(MAKE) /f .\Makefile.msvc CFG=dll-release ALL |
||||
|
$(MAKE) /f .\Makefile.msvc CFG=dll-debug ALL |
||||
|
|
||||
|
clean: |
||||
|
@-RMDIR /S /Q $(BASE_DIR) >NUL 2>&1 |
||||
|
|
||||
|
!ENDIF |
||||
|
|
||||
|
# ---------------------------------------------------------------------
|
||||
|
# Targets only available when a proper CFG library type has been given
|
||||
|
# ---------------------------------------------------------------------
|
||||
|
|
||||
|
!IF "$(VALID_CFGSET)" == "TRUE" |
||||
|
|
||||
|
ALL: c-ares acountry adig ahost |
||||
|
@ |
||||
|
|
||||
|
c-ares: $(HHEADERS) $(CSOURCES) $(CARES_OBJDIR) $(CARES_OBJS) $(CARES_OUTDIR) |
||||
|
$(CARES_LINK) $(CARES_LFLAGS) /out:$(CARES_OUTDIR)\$(CARES_TARGET) $(CARES_OBJS) |
||||
|
! IF "$(USE_RES_FILE)" == "TRUE" |
||||
|
@if exist $(CARES_OUTDIR)\$(CARES_TARGET).manifest mt -nologo -manifest $(CARES_OUTDIR)\$(CARES_TARGET).manifest -outputresource:$(CARES_OUTDIR)\$(CARES_TARGET);2 |
||||
|
! ENDIF |
||||
|
|
||||
|
acountry: c-ares acountry.c $(SAMPLESOURCES) $(SAMPLEHEADERS) $(PROG1_OBJDIR) $(PROG1_OBJS) $(PROG1_OUTDIR) |
||||
|
$(SPROG_LINK) $(SPROG_LFLAGS) /out:$(PROG1_OUTDIR)\acountry.exe $(PROG1_OBJS) |
||||
|
@if exist $(PROG1_OUTDIR)\acountry.exe.manifest mt -nologo -manifest $(PROG1_OUTDIR)\acountry.exe.manifest -outputresource:$(PROG1_OUTDIR)\acountry.exe;1 |
||||
|
|
||||
|
adig: c-ares adig.c $(SAMPLESOURCES) $(SAMPLEHEADERS) $(PROG2_OBJDIR) $(PROG2_OBJS) $(PROG2_OUTDIR) |
||||
|
$(SPROG_LINK) $(SPROG_LFLAGS) /out:$(PROG2_OUTDIR)\adig.exe $(PROG2_OBJS) |
||||
|
@if exist $(PROG2_OUTDIR)\adig.exe.manifest mt -nologo -manifest $(PROG2_OUTDIR)\adig.exe.manifest -outputresource:$(PROG2_OUTDIR)\adig.exe;1 |
||||
|
|
||||
|
ahost: c-ares ahost.c $(SAMPLESOURCES) $(SAMPLEHEADERS) $(PROG3_OBJDIR) $(PROG3_OBJS) $(PROG3_OUTDIR) |
||||
|
$(SPROG_LINK) $(SPROG_LFLAGS) /out:$(PROG3_OUTDIR)\ahost.exe $(PROG3_OBJS) |
||||
|
@if exist $(PROG3_OUTDIR)\ahost.exe.manifest mt -nologo -manifest $(PROG3_OUTDIR)\ahost.exe.manifest -outputresource:$(PROG3_OUTDIR)\ahost.exe;1 |
||||
|
|
||||
|
$(CARES_OUTDIR): $(CARES_DIR) |
||||
|
@if not exist $(CARES_OUTDIR) mkdir $(CARES_OUTDIR) |
||||
|
|
||||
|
$(PROG1_OUTDIR): $(PROG1_DIR) |
||||
|
@if not exist $(PROG1_OUTDIR) mkdir $(PROG1_OUTDIR) |
||||
|
|
||||
|
$(PROG2_OUTDIR): $(PROG2_DIR) |
||||
|
@if not exist $(PROG2_OUTDIR) mkdir $(PROG2_OUTDIR) |
||||
|
|
||||
|
$(PROG3_OUTDIR): $(PROG3_DIR) |
||||
|
@if not exist $(PROG3_OUTDIR) mkdir $(PROG3_OUTDIR) |
||||
|
|
||||
|
$(CARES_OBJDIR): $(CARES_OUTDIR) |
||||
|
@if not exist $(CARES_OBJDIR) mkdir $(CARES_OBJDIR) |
||||
|
|
||||
|
$(PROG1_OBJDIR): $(PROG1_OUTDIR) |
||||
|
@if not exist $(PROG1_OBJDIR) mkdir $(PROG1_OBJDIR) |
||||
|
|
||||
|
$(PROG2_OBJDIR): $(PROG2_OUTDIR) |
||||
|
@if not exist $(PROG2_OBJDIR) mkdir $(PROG2_OBJDIR) |
||||
|
|
||||
|
$(PROG3_OBJDIR): $(PROG3_OUTDIR) |
||||
|
@if not exist $(PROG3_OBJDIR) mkdir $(PROG3_OBJDIR) |
||||
|
|
||||
|
clean: |
||||
|
@-RMDIR /S /Q $(CARES_OUTDIR) >NUL 2>&1 |
||||
|
@-RMDIR /S /Q $(PROG1_OUTDIR) >NUL 2>&1 |
||||
|
@-RMDIR /S /Q $(PROG2_OUTDIR) >NUL 2>&1 |
||||
|
@-RMDIR /S /Q $(PROG3_OUTDIR) >NUL 2>&1 |
||||
|
|
||||
|
!ENDIF |
||||
|
|
||||
|
$(BASE_DIR): |
||||
|
@if not exist $(BASE_DIR) mkdir $(BASE_DIR) |
||||
|
|
||||
|
$(CARES_DIR): $(BASE_DIR) |
||||
|
@if not exist $(CARES_DIR) mkdir $(CARES_DIR) |
||||
|
|
||||
|
$(PROG1_DIR): $(BASE_DIR) |
||||
|
@if not exist $(PROG1_DIR) mkdir $(PROG1_DIR) |
||||
|
|
||||
|
$(PROG2_DIR): $(BASE_DIR) |
||||
|
@if not exist $(PROG2_DIR) mkdir $(PROG2_DIR) |
||||
|
|
||||
|
$(PROG3_DIR): $(BASE_DIR) |
||||
|
@if not exist $(PROG3_DIR) mkdir $(PROG3_DIR) |
||||
|
|
||||
|
# End of Makefile.msvc
|
@ -0,0 +1,434 @@ |
|||||
|
#################################################################
|
||||
|
#
|
||||
|
## Makefile for building libcares (NetWare version - gnu make)
|
||||
|
## Use: make -f Makefile.netware
|
||||
|
##
|
||||
|
## Comments to: Guenter Knauf http://www.gknw.de/phpbb
|
||||
|
#
|
||||
|
#################################################################
|
||||
|
|
||||
|
# Edit the path below to point to the base of your Novell NDK.
|
||||
|
ifndef NDKBASE |
||||
|
NDKBASE = c:/novell |
||||
|
endif |
||||
|
|
||||
|
ifndef INSTDIR |
||||
|
INSTDIR = ../ares-$(LIBCARES_VERSION_STR)-bin-nw |
||||
|
endif |
||||
|
|
||||
|
# Edit the vars below to change NLM target settings.
|
||||
|
TARGETS = adig.nlm ahost.nlm acountry.nlm |
||||
|
LTARGET = libcares.$(LIBEXT) |
||||
|
VERSION = $(LIBCARES_VERSION) |
||||
|
COPYR = $(LIBCARES_COPYRIGHT_STR) |
||||
|
DESCR = cURL $(subst .def,,$(notdir $@)) $(LIBCARES_VERSION_STR) - http://curl.haxx.se |
||||
|
MTSAFE = YES |
||||
|
STACK = 64000 |
||||
|
SCREEN = none |
||||
|
#EXPORTS =
|
||||
|
# Comment the line below if you dont want to load protected automatically.
|
||||
|
#LDRING = 3
|
||||
|
|
||||
|
# Edit the var below to point to your lib architecture.
|
||||
|
ifndef LIBARCH |
||||
|
LIBARCH = LIBC |
||||
|
endif |
||||
|
|
||||
|
# must be equal to NDEBUG or DEBUG, CURLDEBUG
|
||||
|
ifndef DB |
||||
|
DB = NDEBUG |
||||
|
endif |
||||
|
# Optimization: -O<n> or debugging: -g
|
||||
|
ifeq ($(DB),NDEBUG) |
||||
|
OPT = -O2 |
||||
|
OBJDIR = release |
||||
|
else |
||||
|
OPT = -g |
||||
|
OBJDIR = debug |
||||
|
endif |
||||
|
|
||||
|
# Include the version info retrieved from curlver.h
|
||||
|
-include $(OBJDIR)/version.inc |
||||
|
|
||||
|
# The following lines defines your compiler.
|
||||
|
ifdef CWFolder |
||||
|
METROWERKS = $(CWFolder) |
||||
|
endif |
||||
|
ifdef METROWERKS |
||||
|
# MWCW_PATH = $(subst \,/,$(METROWERKS))/Novell Support |
||||
|
MWCW_PATH = $(subst \,/,$(METROWERKS))/Novell Support/Metrowerks Support |
||||
|
CC = mwccnlm |
||||
|
else |
||||
|
CC = gcc |
||||
|
endif |
||||
|
# a native win32 awk can be downloaded from here:
|
||||
|
# http://www.gknw.net/development/prgtools/awk-20070501.zip
|
||||
|
AWK = awk |
||||
|
YACC = bison -y |
||||
|
CP = cp -afv |
||||
|
MKDIR = mkdir |
||||
|
# RM = rm -f
|
||||
|
# if you want to mark the target as MTSAFE you will need a tool for
|
||||
|
# generating the xdc data for the linker; here's a minimal tool:
|
||||
|
# http://www.gknw.net/development/prgtools/mkxdc.zip
|
||||
|
MPKXDC = mkxdc |
||||
|
|
||||
|
# Global flags for all compilers
|
||||
|
CFLAGS += $(OPT) -D$(DB) -DNETWARE -DHAVE_CONFIG_H -nostdinc |
||||
|
|
||||
|
ifeq ($(CC),mwccnlm) |
||||
|
LD = mwldnlm |
||||
|
LDFLAGS = -nostdlib $(PRELUDE) $(OBJEXE) $(<:.def=.o) -o $@ -commandfile |
||||
|
AR = mwldnlm |
||||
|
ARFLAGS = -nostdlib -type library -o |
||||
|
LIBEXT = lib |
||||
|
#RANLIB =
|
||||
|
CFLAGS += -msgstyle gcc -gccinc -inline off -opt nointrinsics -proc 586 |
||||
|
CFLAGS += -relax_pointers |
||||
|
#CFLAGS += -w on
|
||||
|
ifeq ($(LIBARCH),LIBC) |
||||
|
PRELUDE = $(SDK_LIBC)/imports/libcpre.o |
||||
|
CFLAGS += -align 4 |
||||
|
else |
||||
|
# PRELUDE = $(SDK_CLIB)/imports/clibpre.o |
||||
|
# to avoid the __init_* / __deinit_* whoes dont use prelude from NDK |
||||
|
PRELUDE = "$(MWCW_PATH)/libraries/runtime/prelude.obj" |
||||
|
# CFLAGS += -include "$(MWCW_PATH)/headers/nlm_clib_prefix.h" |
||||
|
CFLAGS += -align 1 |
||||
|
endif |
||||
|
else |
||||
|
LD = nlmconv |
||||
|
LDFLAGS = -T |
||||
|
AR = ar |
||||
|
ARFLAGS = -cq |
||||
|
LIBEXT = a |
||||
|
RANLIB = ranlib |
||||
|
CFLAGS += -fno-builtin -fpcc-struct-return -fno-strict-aliasing |
||||
|
CFLAGS += -Wall -Wno-format -Wno-uninitialized # -pedantic |
||||
|
ifeq ($(LIBARCH),LIBC) |
||||
|
PRELUDE = $(SDK_LIBC)/imports/libcpre.gcc.o |
||||
|
else |
||||
|
# PRELUDE = $(SDK_CLIB)/imports/clibpre.gcc.o |
||||
|
# to avoid the __init_* / __deinit_* whoes dont use prelude from NDK |
||||
|
# http://www.gknw.net/development/mk_nlm/gcc_pre.zip |
||||
|
PRELUDE = $(NDK_ROOT)/pre/prelude.o |
||||
|
CFLAGS += -include $(NDKBASE)/nlmconv/genlm.h |
||||
|
endif |
||||
|
endif |
||||
|
|
||||
|
NDK_ROOT = $(NDKBASE)/ndk |
||||
|
SDK_CLIB = $(NDK_ROOT)/nwsdk |
||||
|
SDK_LIBC = $(NDK_ROOT)/libc |
||||
|
|
||||
|
ifeq ($(LIBARCH),LIBC) |
||||
|
INCLUDES += -I$(SDK_LIBC)/include |
||||
|
# INCLUDES += -I$(SDK_LIBC)/include/nks |
||||
|
# INCLUDES += -I$(SDK_LIBC)/include/winsock |
||||
|
CFLAGS += -D_POSIX_SOURCE |
||||
|
else |
||||
|
INCLUDES += -I$(SDK_CLIB)/include/nlm |
||||
|
# INCLUDES += -I$(SDK_CLIB)/include/nlm/obsolete |
||||
|
# INCLUDES += -I$(SDK_CLIB)/include |
||||
|
endif |
||||
|
ifeq ($(DB),CURLDEBUG) |
||||
|
INCLUDES += -I../include |
||||
|
endif |
||||
|
CFLAGS += -I. $(INCLUDES) |
||||
|
|
||||
|
ifeq ($(MTSAFE),YES) |
||||
|
XDCOPT = -n |
||||
|
endif |
||||
|
ifeq ($(MTSAFE),NO) |
||||
|
XDCOPT = -u |
||||
|
endif |
||||
|
|
||||
|
ifeq ($(findstring /sh,$(SHELL)),/sh) |
||||
|
DL = ' |
||||
|
#-include $(NDKBASE)/nlmconv/ncpfs.inc
|
||||
|
endif |
||||
|
|
||||
|
# Makefile.inc provides the CSOURCES and HHEADERS defines
|
||||
|
include Makefile.inc |
||||
|
|
||||
|
OBJLIB := $(patsubst %.c,$(OBJDIR)/%.o,$(strip $(CSOURCES))) |
||||
|
OBJEXE = $(OBJLIB) $(OBJDIR)/ares_getopt.o |
||||
|
|
||||
|
.PHONY: lib nlm prebuild dist install clean |
||||
|
|
||||
|
lib: prebuild $(LTARGET) |
||||
|
|
||||
|
nlm: prebuild $(TARGETS) |
||||
|
|
||||
|
prebuild: $(OBJDIR) ares_build.h $(OBJDIR)/version.inc ares_config.h |
||||
|
|
||||
|
install: $(INSTDIR) all |
||||
|
@$(CP) *.nlm $(INSTDIR) |
||||
|
@$(CP) ../CHANGES $(INSTDIR) |
||||
|
@$(CP) ../COPYING $(INSTDIR) |
||||
|
@$(CP) ../README $(INSTDIR) |
||||
|
@$(CP) ../RELEASE-NOTES $(INSTDIR) |
||||
|
|
||||
|
clean: |
||||
|
-$(RM) $(LTARGET) $(TARGETS) ares_config.h |
||||
|
-$(RM) -r $(OBJDIR) |
||||
|
-$(RM) -r arpa |
||||
|
|
||||
|
%.$(LIBEXT): $(OBJLIB) |
||||
|
@echo Creating $@ |
||||
|
@-$(RM) $@ |
||||
|
@$(AR) $(ARFLAGS) $@ $^ |
||||
|
ifdef RANLIB |
||||
|
@$(RANLIB) $@ |
||||
|
endif |
||||
|
|
||||
|
%.nlm: $(OBJDIR)/%.def $(OBJDIR)/%.o $(OBJDIR)/%.xdc $(OBJEXE) |
||||
|
@echo Linking $@ |
||||
|
@-$(RM) $@ |
||||
|
@$(LD) $(LDFLAGS) $< |
||||
|
|
||||
|
$(OBJDIR) $(INSTDIR): |
||||
|
@$(MKDIR) $@ |
||||
|
|
||||
|
$(OBJDIR)/%.o: %.c |
||||
|
# @echo Compiling $<
|
||||
|
$(CC) $(CFLAGS) -c $< -o $@ |
||||
|
|
||||
|
$(OBJDIR)/version.inc: ares_version.h $(OBJDIR) |
||||
|
@echo Creating $@ |
||||
|
@$(AWK) -f get_ver.awk $< > $@ |
||||
|
|
||||
|
$(OBJDIR)/%.xdc: Makefile.netware |
||||
|
@echo Creating $@ |
||||
|
@$(MPKXDC) $(XDCOPT) $@ |
||||
|
|
||||
|
$(OBJDIR)/%.def: Makefile.netware |
||||
|
@echo Creating $@ |
||||
|
@echo $(DL)# DEF file for linking with $(LD)$(DL) > $@ |
||||
|
@echo $(DL)# Do not edit this file - it is created by make!$(DL) >> $@ |
||||
|
@echo $(DL)# All your changes will be lost!!$(DL) >> $@ |
||||
|
@echo $(DL)#$(DL) >> $@ |
||||
|
@echo $(DL)copyright "$(COPYR)"$(DL) >> $@ |
||||
|
@echo $(DL)description "$(DESCR)"$(DL) >> $@ |
||||
|
@echo $(DL)version $(VERSION)$(DL) >> $@ |
||||
|
ifdef NLMTYPE |
||||
|
@echo $(DL)type $(NLMTYPE)$(DL) >> $@ |
||||
|
endif |
||||
|
ifdef STACK |
||||
|
@echo $(DL)stack $(STACK)$(DL) >> $@ |
||||
|
endif |
||||
|
ifdef SCREEN |
||||
|
@echo $(DL)screenname "$(SCREEN)"$(DL) >> $@ |
||||
|
else |
||||
|
@echo $(DL)screenname "DEFAULT"$(DL) >> $@ |
||||
|
endif |
||||
|
ifeq ($(DB),DEBUG) |
||||
|
@echo $(DL)debug$(DL) >> $@ |
||||
|
endif |
||||
|
@echo $(DL)threadname "$^"$(DL) >> $@ |
||||
|
ifdef XDCOPT |
||||
|
@echo $(DL)xdcdata $(@:.def=.xdc)$(DL) >> $@ |
||||
|
endif |
||||
|
ifeq ($(LDRING),0) |
||||
|
@echo $(DL)flag_on 16$(DL) >> $@ |
||||
|
endif |
||||
|
ifeq ($(LDRING),3) |
||||
|
@echo $(DL)flag_on 512$(DL) >> $@ |
||||
|
endif |
||||
|
ifeq ($(LIBARCH),CLIB) |
||||
|
@echo $(DL)start _Prelude$(DL) >> $@ |
||||
|
@echo $(DL)exit _Stop$(DL) >> $@ |
||||
|
@echo $(DL)import @$(SDK_CLIB)/imports/clib.imp$(DL) >> $@ |
||||
|
@echo $(DL)import @$(SDK_CLIB)/imports/threads.imp$(DL) >> $@ |
||||
|
@echo $(DL)import @$(SDK_CLIB)/imports/nlmlib.imp$(DL) >> $@ |
||||
|
@echo $(DL)import @$(SDK_CLIB)/imports/socklib.imp$(DL) >> $@ |
||||
|
@echo $(DL)module clib$(DL) >> $@ |
||||
|
else |
||||
|
@echo $(DL)flag_on 64$(DL) >> $@ |
||||
|
@echo $(DL)pseudopreemption$(DL) >> $@ |
||||
|
@echo $(DL)start _LibCPrelude$(DL) >> $@ |
||||
|
@echo $(DL)exit _LibCPostlude$(DL) >> $@ |
||||
|
@echo $(DL)check _LibCCheckUnload$(DL) >> $@ |
||||
|
@echo $(DL)import @$(SDK_LIBC)/imports/libc.imp$(DL) >> $@ |
||||
|
@echo $(DL)import @$(SDK_LIBC)/imports/netware.imp$(DL) >> $@ |
||||
|
@echo $(DL)module libc$(DL) >> $@ |
||||
|
endif |
||||
|
ifdef MODULES |
||||
|
@echo $(DL)module $(MODULES)$(DL) >> $@ |
||||
|
endif |
||||
|
ifdef EXPORTS |
||||
|
@echo $(DL)export $(EXPORTS)$(DL) >> $@ |
||||
|
endif |
||||
|
ifdef IMPORTS |
||||
|
@echo $(DL)import $(IMPORTS)$(DL) >> $@ |
||||
|
endif |
||||
|
ifeq ($(LD),nlmconv) |
||||
|
@echo $(DL)input $(PRELUDE)$(DL) >> $@ |
||||
|
@echo $(DL)input $(OBJEXE)$(DL) >> $@ |
||||
|
@echo $(DL)input $(@:.def=.o)$(DL) >> $@ |
||||
|
@echo $(DL)output $(notdir $(@:.def=.nlm))$(DL) >> $@ |
||||
|
endif |
||||
|
|
||||
|
ares_config.h: Makefile.netware |
||||
|
@echo Creating $@ |
||||
|
@echo $(DL)/* $@ for NetWare target.$(DL) > $@ |
||||
|
@echo $(DL)** Do not edit this file - it is created by make!$(DL) >> $@ |
||||
|
@echo $(DL)** All your changes will be lost!!$(DL) >> $@ |
||||
|
@echo $(DL)*/$(DL) >> $@ |
||||
|
@echo $(DL)#ifndef NETWARE$(DL) >> $@ |
||||
|
@echo $(DL)#error This $(notdir $@) is created for NetWare platform!$(DL) >> $@ |
||||
|
@echo $(DL)#endif$(DL) >> $@ |
||||
|
@echo $(DL)#define VERSION "$(LIBCARES_VERSION_STR)"$(DL) >> $@ |
||||
|
@echo $(DL)#define PACKAGE_BUGREPORT "a suitable curl mailing list => http://curl.haxx.se/mail/"$(DL) >> $@ |
||||
|
ifeq ($(LIBARCH),CLIB) |
||||
|
@echo $(DL)#define OS "i586-pc-clib-NetWare"$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_STRICMP 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_STRNICMP 1$(DL) >> $@ |
||||
|
@echo $(DL)#define NETDB_USE_INTERNET 1$(DL) >> $@ |
||||
|
@echo $(DL)#define RECV_TYPE_ARG1 int$(DL) >> $@ |
||||
|
@echo $(DL)#define RECV_TYPE_ARG2 char *$(DL) >> $@ |
||||
|
@echo $(DL)#define RECV_TYPE_ARG3 int$(DL) >> $@ |
||||
|
@echo $(DL)#define RECV_TYPE_ARG4 int$(DL) >> $@ |
||||
|
@echo $(DL)#define RECV_TYPE_RETV int$(DL) >> $@ |
||||
|
@echo $(DL)#define RECVFROM_TYPE_ARG1 int$(DL) >> $@ |
||||
|
@echo $(DL)#define RECVFROM_TYPE_ARG2 char$(DL) >> $@ |
||||
|
@echo $(DL)#define RECVFROM_TYPE_ARG3 int$(DL) >> $@ |
||||
|
@echo $(DL)#define RECVFROM_TYPE_ARG4 int$(DL) >> $@ |
||||
|
@echo $(DL)#define RECVFROM_TYPE_ARG5 struct sockaddr$(DL) >> $@ |
||||
|
@echo $(DL)#define RECVFROM_TYPE_ARG6 int$(DL) >> $@ |
||||
|
@echo $(DL)#define RECVFROM_TYPE_RETV int$(DL) >> $@ |
||||
|
@echo $(DL)#define SEND_QUAL_ARG2$(DL) >> $@ |
||||
|
@echo $(DL)#define SEND_TYPE_ARG1 int$(DL) >> $@ |
||||
|
@echo $(DL)#define SEND_TYPE_ARG2 char *$(DL) >> $@ |
||||
|
@echo $(DL)#define SEND_TYPE_ARG3 int$(DL) >> $@ |
||||
|
@echo $(DL)#define SEND_TYPE_ARG4 int$(DL) >> $@ |
||||
|
@echo $(DL)#define SEND_TYPE_RETV int$(DL) >> $@ |
||||
|
@echo $(DL)#define SIZEOF_SIZE_T 4$(DL) >> $@ |
||||
|
else |
||||
|
@echo $(DL)#define OS "i586-pc-libc-NetWare"$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_DLFCN_H 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_DLOPEN 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_FTRUNCATE 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_GETTIMEOFDAY 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_INTTYPES_H 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_LONGLONG 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_STDINT_H 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_STRCASECMP 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_STRLCAT 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_STRLCPY 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_STRTOLL 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_SYS_PARAM_H 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_SYS_SELECT_H 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_TERMIOS_H 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_AF_INET6 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_PF_INET6 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_FREEADDRINFO 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_GETADDRINFO 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_STRUCT_IN6_ADDR 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_STRUCT_SOCKADDR_IN6 1$(DL) >> $@ |
||||
|
@echo $(DL)#define RECV_TYPE_ARG1 int$(DL) >> $@ |
||||
|
@echo $(DL)#define RECV_TYPE_ARG2 void *$(DL) >> $@ |
||||
|
@echo $(DL)#define RECV_TYPE_ARG3 size_t$(DL) >> $@ |
||||
|
@echo $(DL)#define RECV_TYPE_ARG4 int$(DL) >> $@ |
||||
|
@echo $(DL)#define RECV_TYPE_RETV ssize_t$(DL) >> $@ |
||||
|
@echo $(DL)#define RECVFROM_TYPE_ARG1 int$(DL) >> $@ |
||||
|
@echo $(DL)#define RECVFROM_TYPE_ARG2 void$(DL) >> $@ |
||||
|
@echo $(DL)#define RECVFROM_TYPE_ARG3 size_t$(DL) >> $@ |
||||
|
@echo $(DL)#define RECVFROM_TYPE_ARG4 int$(DL) >> $@ |
||||
|
@echo $(DL)#define RECVFROM_TYPE_ARG5 struct sockaddr$(DL) >> $@ |
||||
|
@echo $(DL)#define RECVFROM_TYPE_ARG6 size_t$(DL) >> $@ |
||||
|
@echo $(DL)#define RECVFROM_TYPE_RETV ssize_t$(DL) >> $@ |
||||
|
@echo $(DL)#define RECVFROM_TYPE_ARG2_IS_VOID 1$(DL) >> $@ |
||||
|
@echo $(DL)#define SEND_QUAL_ARG2$(DL) >> $@ |
||||
|
@echo $(DL)#define SEND_TYPE_ARG1 int$(DL) >> $@ |
||||
|
@echo $(DL)#define SEND_TYPE_ARG2 void *$(DL) >> $@ |
||||
|
@echo $(DL)#define SEND_TYPE_ARG3 size_t$(DL) >> $@ |
||||
|
@echo $(DL)#define SEND_TYPE_ARG4 int$(DL) >> $@ |
||||
|
@echo $(DL)#define SEND_TYPE_RETV ssize_t$(DL) >> $@ |
||||
|
@echo $(DL)#define SIZEOF_SIZE_T 8$(DL) >> $@ |
||||
|
@echo $(DL)#define SIZEOF_STRUCT_IN6_ADDR 16$(DL) >> $@ |
||||
|
endif |
||||
|
@echo $(DL)#define HAVE_ARPA_INET_H 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_ASSERT_H 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_ERR_H 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_FCNTL_H 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_GETHOSTBYADDR 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_GETHOSTBYNAME 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_GETHOSTNAME 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_GETPROTOBYNAME 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_GMTIME_R 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_INET_ADDR 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_IOCTL 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_IOCTL_FIONBIO 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_LIMITS_H 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_LL 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_LOCALTIME_R 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_MALLOC_H 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_NETINET_IN_H 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_RECV 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_RECVFROM 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_SELECT 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_SEND 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_SETJMP_H 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_SIGNAL 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_SIGNAL_H 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_SIG_ATOMIC_T 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_SOCKET 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_STDLIB_H 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_STRDUP 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_STRFTIME 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_STRING_H 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_STRSTR 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_STRUCT_ADDRINFO 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_STRUCT_TIMEVAL 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_SYS_IOCTL_H 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_SYS_STAT_H 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_SYS_TIME_H 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_TIME_H 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_UNAME 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_UNISTD_H 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_UTIME 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_UTIME_H 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_WRITEV 1$(DL) >> $@ |
||||
|
@echo $(DL)#define RETSIGTYPE void$(DL) >> $@ |
||||
|
@echo $(DL)#define SIZEOF_INT 4$(DL) >> $@ |
||||
|
@echo $(DL)#define SIZEOF_STRUCT_IN_ADDR 4$(DL) >> $@ |
||||
|
@echo $(DL)#define STDC_HEADERS 1$(DL) >> $@ |
||||
|
@echo $(DL)#define TIME_WITH_SYS_TIME 1$(DL) >> $@ |
||||
|
ifdef NW_WINSOCK |
||||
|
@echo $(DL)#define HAVE_CLOSESOCKET 1$(DL) >> $@ |
||||
|
else |
||||
|
@echo $(DL)#define HAVE_SYS_TYPES_H 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_SYS_SOCKET_H 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_SYS_SOCKIO_H 1$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_NETDB_H 1$(DL) >> $@ |
||||
|
endif |
||||
|
@echo $(DL)#ifdef __GNUC__$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_VARIADIC_MACROS_GCC 1$(DL) >> $@ |
||||
|
@echo $(DL)#else$(DL) >> $@ |
||||
|
@echo $(DL)#define HAVE_VARIADIC_MACROS_C99 1$(DL) >> $@ |
||||
|
@echo $(DL)#endif$(DL) >> $@ |
||||
|
|
||||
|
FORCE: ; |
||||
|
|
||||
|
ares_build.h: Makefile.netware FORCE |
||||
|
@echo Creating $@ |
||||
|
@echo $(DL)/* $@ intended for NetWare target.$(DL) > $@ |
||||
|
@echo $(DL)** Do not edit this file - it is created by make!$(DL) >> $@ |
||||
|
@echo $(DL)** All your changes will be lost!!$(DL) >> $@ |
||||
|
@echo $(DL)*/$(DL) >> $@ |
||||
|
@echo $(DL)#ifndef NETWARE$(DL) >> $@ |
||||
|
@echo $(DL)#error This $(notdir $@) is created for NetWare platform!$(DL) >> $@ |
||||
|
@echo $(DL)#endif$(DL) >> $@ |
||||
|
@echo $(DL)#ifndef __CARES_BUILD_H$(DL) >> $@ |
||||
|
@echo $(DL)#define __CARES_BUILD_H$(DL) >> $@ |
||||
|
ifeq ($(LIBARCH),CLIB) |
||||
|
@echo $(DL)#define CARES_TYPEOF_ARES_SOCKLEN_T int$(DL) >> $@ |
||||
|
@echo $(DL)#define CARES_SIZEOF_ARES_SOCKLEN_T 4$(DL) >> $@ |
||||
|
else |
||||
|
@echo $(DL)#define CARES_TYPEOF_ARES_SOCKLEN_T unsigned int$(DL) >> $@ |
||||
|
@echo $(DL)#define CARES_SIZEOF_ARES_SOCKLEN_T 4$(DL) >> $@ |
||||
|
endif |
||||
|
@echo $(DL)#define CARES_SIZEOF_LONG 4$(DL) >> $@ |
||||
|
@echo $(DL)typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t;$(DL) >> $@ |
||||
|
@echo $(DL)#endif /* __CARES_BUILD_H */$(DL) >> $@ |
File diff suppressed because it is too large
@ -0,0 +1,931 @@ |
|||||
|
# generated automatically by aclocal 1.9.6 -*- Autoconf -*- |
||||
|
|
||||
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
||||
|
# 2005 Free Software Foundation, Inc. |
||||
|
# This file is free software; the Free Software Foundation |
||||
|
# gives unlimited permission to copy and/or distribute it, |
||||
|
# with or without modifications, as long as this notice is preserved. |
||||
|
|
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
||||
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
||||
|
# PARTICULAR PURPOSE. |
||||
|
|
||||
|
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. |
||||
|
# |
||||
|
# This file is free software; the Free Software Foundation |
||||
|
# gives unlimited permission to copy and/or distribute it, |
||||
|
# with or without modifications, as long as this notice is preserved. |
||||
|
|
||||
|
# AM_AUTOMAKE_VERSION(VERSION) |
||||
|
# ---------------------------- |
||||
|
# Automake X.Y traces this macro to ensure aclocal.m4 has been |
||||
|
# generated from the m4 files accompanying Automake X.Y. |
||||
|
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) |
||||
|
|
||||
|
# AM_SET_CURRENT_AUTOMAKE_VERSION |
||||
|
# ------------------------------- |
||||
|
# Call AM_AUTOMAKE_VERSION so it can be traced. |
||||
|
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. |
||||
|
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
||||
|
[AM_AUTOMAKE_VERSION([1.9.6])]) |
||||
|
|
||||
|
# AM_AUX_DIR_EXPAND -*- Autoconf -*- |
||||
|
|
||||
|
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
||||
|
# |
||||
|
# This file is free software; the Free Software Foundation |
||||
|
# gives unlimited permission to copy and/or distribute it, |
||||
|
# with or without modifications, as long as this notice is preserved. |
||||
|
|
||||
|
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
||||
|
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to |
||||
|
# `$srcdir', `$srcdir/..', or `$srcdir/../..'. |
||||
|
# |
||||
|
# Of course, Automake must honor this variable whenever it calls a |
||||
|
# tool from the auxiliary directory. The problem is that $srcdir (and |
||||
|
# therefore $ac_aux_dir as well) can be either absolute or relative, |
||||
|
# depending on how configure is run. This is pretty annoying, since |
||||
|
# it makes $ac_aux_dir quite unusable in subdirectories: in the top |
||||
|
# source directory, any form will work fine, but in subdirectories a |
||||
|
# relative path needs to be adjusted first. |
||||
|
# |
||||
|
# $ac_aux_dir/missing |
||||
|
# fails when called from a subdirectory if $ac_aux_dir is relative |
||||
|
# $top_srcdir/$ac_aux_dir/missing |
||||
|
# fails if $ac_aux_dir is absolute, |
||||
|
# fails when called from a subdirectory in a VPATH build with |
||||
|
# a relative $ac_aux_dir |
||||
|
# |
||||
|
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir |
||||
|
# are both prefixed by $srcdir. In an in-source build this is usually |
||||
|
# harmless because $srcdir is `.', but things will broke when you |
||||
|
# start a VPATH build or use an absolute $srcdir. |
||||
|
# |
||||
|
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, |
||||
|
# iff we strip the leading $srcdir from $ac_aux_dir. That would be: |
||||
|
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` |
||||
|
# and then we would define $MISSING as |
||||
|
# MISSING="\${SHELL} $am_aux_dir/missing" |
||||
|
# This will work as long as MISSING is not called from configure, because |
||||
|
# unfortunately $(top_srcdir) has no meaning in configure. |
||||
|
# However there are other variables, like CC, which are often used in |
||||
|
# configure, and could therefore not use this "fixed" $ac_aux_dir. |
||||
|
# |
||||
|
# Another solution, used here, is to always expand $ac_aux_dir to an |
||||
|
# absolute PATH. The drawback is that using absolute paths prevent a |
||||
|
# configured tree to be moved without reconfiguration. |
||||
|
|
||||
|
AC_DEFUN([AM_AUX_DIR_EXPAND], |
||||
|
[dnl Rely on autoconf to set up CDPATH properly. |
||||
|
AC_PREREQ([2.50])dnl |
||||
|
# expand $ac_aux_dir to an absolute path |
||||
|
am_aux_dir=`cd $ac_aux_dir && pwd` |
||||
|
]) |
||||
|
|
||||
|
# AM_CONDITIONAL -*- Autoconf -*- |
||||
|
|
||||
|
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 |
||||
|
# Free Software Foundation, Inc. |
||||
|
# |
||||
|
# This file is free software; the Free Software Foundation |
||||
|
# gives unlimited permission to copy and/or distribute it, |
||||
|
# with or without modifications, as long as this notice is preserved. |
||||
|
|
||||
|
# serial 7 |
||||
|
|
||||
|
# AM_CONDITIONAL(NAME, SHELL-CONDITION) |
||||
|
# ------------------------------------- |
||||
|
# Define a conditional. |
||||
|
AC_DEFUN([AM_CONDITIONAL], |
||||
|
[AC_PREREQ(2.52)dnl |
||||
|
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], |
||||
|
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl |
||||
|
AC_SUBST([$1_TRUE]) |
||||
|
AC_SUBST([$1_FALSE]) |
||||
|
if $2; then |
||||
|
$1_TRUE= |
||||
|
$1_FALSE='#' |
||||
|
else |
||||
|
$1_TRUE='#' |
||||
|
$1_FALSE= |
||||
|
fi |
||||
|
AC_CONFIG_COMMANDS_PRE( |
||||
|
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then |
||||
|
AC_MSG_ERROR([[conditional "$1" was never defined. |
||||
|
Usually this means the macro was only invoked conditionally.]]) |
||||
|
fi])]) |
||||
|
|
||||
|
|
||||
|
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
||||
|
# Free Software Foundation, Inc. |
||||
|
# |
||||
|
# This file is free software; the Free Software Foundation |
||||
|
# gives unlimited permission to copy and/or distribute it, |
||||
|
# with or without modifications, as long as this notice is preserved. |
||||
|
|
||||
|
# serial 8 |
||||
|
|
||||
|
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be |
||||
|
# written in clear, in which case automake, when reading aclocal.m4, |
||||
|
# will think it sees a *use*, and therefore will trigger all it's |
||||
|
# C support machinery. Also note that it means that autoscan, seeing |
||||
|
# CC etc. in the Makefile, will ask for an AC_PROG_CC use... |
||||
|
|
||||
|
|
||||
|
# _AM_DEPENDENCIES(NAME) |
||||
|
# ---------------------- |
||||
|
# See how the compiler implements dependency checking. |
||||
|
# NAME is "CC", "CXX", "GCJ", or "OBJC". |
||||
|
# We try a few techniques and use that to set a single cache variable. |
||||
|
# |
||||
|
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was |
||||
|
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular |
||||
|
# dependency, and given that the user is not expected to run this macro, |
||||
|
# just rely on AC_PROG_CC. |
||||
|
AC_DEFUN([_AM_DEPENDENCIES], |
||||
|
[AC_REQUIRE([AM_SET_DEPDIR])dnl |
||||
|
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl |
||||
|
AC_REQUIRE([AM_MAKE_INCLUDE])dnl |
||||
|
AC_REQUIRE([AM_DEP_TRACK])dnl |
||||
|
|
||||
|
ifelse([$1], CC, [depcc="$CC" am_compiler_list=], |
||||
|
[$1], CXX, [depcc="$CXX" am_compiler_list=], |
||||
|
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], |
||||
|
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], |
||||
|
[depcc="$$1" am_compiler_list=]) |
||||
|
|
||||
|
AC_CACHE_CHECK([dependency style of $depcc], |
||||
|
[am_cv_$1_dependencies_compiler_type], |
||||
|
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
||||
|
# We make a subdir and do the tests there. Otherwise we can end up |
||||
|
# making bogus files that we don't know about and never remove. For |
||||
|
# instance it was reported that on HP-UX the gcc test will end up |
||||
|
# making a dummy file named `D' -- because `-MD' means `put the output |
||||
|
# in D'. |
||||
|
mkdir conftest.dir |
||||
|
# Copy depcomp to subdir because otherwise we won't find it if we're |
||||
|
# using a relative directory. |
||||
|
cp "$am_depcomp" conftest.dir |
||||
|
cd conftest.dir |
||||
|
# We will build objects and dependencies in a subdirectory because |
||||
|
# it helps to detect inapplicable dependency modes. For instance |
||||
|
# both Tru64's cc and ICC support -MD to output dependencies as a |
||||
|
# side effect of compilation, but ICC will put the dependencies in |
||||
|
# the current directory while Tru64 will put them in the object |
||||
|
# directory. |
||||
|
mkdir sub |
||||
|
|
||||
|
am_cv_$1_dependencies_compiler_type=none |
||||
|
if test "$am_compiler_list" = ""; then |
||||
|
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` |
||||
|
fi |
||||
|
for depmode in $am_compiler_list; do |
||||
|
# Setup a source with many dependencies, because some compilers |
||||
|
# like to wrap large dependency lists on column 80 (with \), and |
||||
|
# we should not choose a depcomp mode which is confused by this. |
||||
|
# |
||||
|
# We need to recreate these files for each test, as the compiler may |
||||
|
# overwrite some of them when testing with obscure command lines. |
||||
|
# This happens at least with the AIX C compiler. |
||||
|
: > sub/conftest.c |
||||
|
for i in 1 2 3 4 5 6; do |
||||
|
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
||||
|
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
||||
|
# Solaris 8's {/usr,}/bin/sh. |
||||
|
touch sub/conftst$i.h |
||||
|
done |
||||
|
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
||||
|
|
||||
|
case $depmode in |
||||
|
nosideeffect) |
||||
|
# after this tag, mechanisms are not by side-effect, so they'll |
||||
|
# only be used when explicitly requested |
||||
|
if test "x$enable_dependency_tracking" = xyes; then |
||||
|
continue |
||||
|
else |
||||
|
break |
||||
|
fi |
||||
|
;; |
||||
|
none) break ;; |
||||
|
esac |
||||
|
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
||||
|
# mode. It turns out that the SunPro C++ compiler does not properly |
||||
|
# handle `-M -o', and we need to detect this. |
||||
|
if depmode=$depmode \ |
||||
|
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
||||
|
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
||||
|
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
||||
|
>/dev/null 2>conftest.err && |
||||
|
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
||||
|
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
||||
|
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
||||
|
# icc doesn't choke on unknown options, it will just issue warnings |
||||
|
# or remarks (even with -Werror). So we grep stderr for any message |
||||
|
# that says an option was ignored or not supported. |
||||
|
# When given -MP, icc 7.0 and 7.1 complain thusly: |
||||
|
# icc: Command line warning: ignoring option '-M'; no argument required |
||||
|
# The diagnosis changed in icc 8.0: |
||||
|
# icc: Command line remark: option '-MP' not supported |
||||
|
if (grep 'ignoring option' conftest.err || |
||||
|
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
||||
|
am_cv_$1_dependencies_compiler_type=$depmode |
||||
|
break |
||||
|
fi |
||||
|
fi |
||||
|
done |
||||
|
|
||||
|
cd .. |
||||
|
rm -rf conftest.dir |
||||
|
else |
||||
|
am_cv_$1_dependencies_compiler_type=none |
||||
|
fi |
||||
|
]) |
||||
|
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) |
||||
|
AM_CONDITIONAL([am__fastdep$1], [ |
||||
|
test "x$enable_dependency_tracking" != xno \ |
||||
|
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3]) |
||||
|
]) |
||||
|
|
||||
|
|
||||
|
# AM_SET_DEPDIR |
||||
|
# ------------- |
||||
|
# Choose a directory name for dependency files. |
||||
|
# This macro is AC_REQUIREd in _AM_DEPENDENCIES |
||||
|
AC_DEFUN([AM_SET_DEPDIR], |
||||
|
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
||||
|
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl |
||||
|
]) |
||||
|
|
||||
|
|
||||
|
# AM_DEP_TRACK |
||||
|
# ------------ |
||||
|
AC_DEFUN([AM_DEP_TRACK], |
||||
|
[AC_ARG_ENABLE(dependency-tracking, |
||||
|
[ --disable-dependency-tracking speeds up one-time build |
||||
|
--enable-dependency-tracking do not reject slow dependency extractors]) |
||||
|
if test "x$enable_dependency_tracking" != xno; then |
||||
|
am_depcomp="$ac_aux_dir/depcomp" |
||||
|
AMDEPBACKSLASH='\' |
||||
|
fi |
||||
|
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) |
||||
|
AC_SUBST([AMDEPBACKSLASH]) |
||||
|
]) |
||||
|
|
||||
|
# Generate code to set up dependency tracking. -*- Autoconf -*- |
||||
|
|
||||
|
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
||||
|
# Free Software Foundation, Inc. |
||||
|
# |
||||
|
# This file is free software; the Free Software Foundation |
||||
|
# gives unlimited permission to copy and/or distribute it, |
||||
|
# with or without modifications, as long as this notice is preserved. |
||||
|
|
||||
|
#serial 3 |
||||
|
|
||||
|
# _AM_OUTPUT_DEPENDENCY_COMMANDS |
||||
|
# ------------------------------ |
||||
|
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
||||
|
[for mf in $CONFIG_FILES; do |
||||
|
# Strip MF so we end up with the name of the file. |
||||
|
mf=`echo "$mf" | sed -e 's/:.*$//'` |
||||
|
# Check whether this is an Automake generated Makefile or not. |
||||
|
# We used to match only the files named `Makefile.in', but |
||||
|
# some people rename them; so instead we look at the file content. |
||||
|
# Grep'ing the first line is not enough: some people post-process |
||||
|
# each Makefile.in and add a new line on top of each file to say so. |
||||
|
# So let's grep whole file. |
||||
|
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
||||
|
dirpart=`AS_DIRNAME("$mf")` |
||||
|
else |
||||
|
continue |
||||
|
fi |
||||
|
# Extract the definition of DEPDIR, am__include, and am__quote |
||||
|
# from the Makefile without running `make'. |
||||
|
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
||||
|
test -z "$DEPDIR" && continue |
||||
|
am__include=`sed -n 's/^am__include = //p' < "$mf"` |
||||
|
test -z "am__include" && continue |
||||
|
am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
||||
|
# When using ansi2knr, U may be empty or an underscore; expand it |
||||
|
U=`sed -n 's/^U = //p' < "$mf"` |
||||
|
# Find all dependency output files, they are included files with |
||||
|
# $(DEPDIR) in their names. We invoke sed twice because it is the |
||||
|
# simplest approach to changing $(DEPDIR) to its actual value in the |
||||
|
# expansion. |
||||
|
for file in `sed -n " |
||||
|
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
||||
|
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
||||
|
# Make sure the directory exists. |
||||
|
test -f "$dirpart/$file" && continue |
||||
|
fdir=`AS_DIRNAME(["$file"])` |
||||
|
AS_MKDIR_P([$dirpart/$fdir]) |
||||
|
# echo "creating $dirpart/$file" |
||||
|
echo '# dummy' > "$dirpart/$file" |
||||
|
done |
||||
|
done |
||||
|
])# _AM_OUTPUT_DEPENDENCY_COMMANDS |
||||
|
|
||||
|
|
||||
|
# AM_OUTPUT_DEPENDENCY_COMMANDS |
||||
|
# ----------------------------- |
||||
|
# This macro should only be invoked once -- use via AC_REQUIRE. |
||||
|
# |
||||
|
# This code is only required when automatic dependency tracking |
||||
|
# is enabled. FIXME. This creates each `.P' file that we will |
||||
|
# need in order to bootstrap the dependency handling code. |
||||
|
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], |
||||
|
[AC_CONFIG_COMMANDS([depfiles], |
||||
|
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], |
||||
|
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) |
||||
|
]) |
||||
|
|
||||
|
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 |
||||
|
# Free Software Foundation, Inc. |
||||
|
# |
||||
|
# This file is free software; the Free Software Foundation |
||||
|
# gives unlimited permission to copy and/or distribute it, |
||||
|
# with or without modifications, as long as this notice is preserved. |
||||
|
|
||||
|
# serial 8 |
||||
|
|
||||
|
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. |
||||
|
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) |
||||
|
|
||||
|
# Do all the work for Automake. -*- Autoconf -*- |
||||
|
|
||||
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
||||
|
# Free Software Foundation, Inc. |
||||
|
# |
||||
|
# This file is free software; the Free Software Foundation |
||||
|
# gives unlimited permission to copy and/or distribute it, |
||||
|
# with or without modifications, as long as this notice is preserved. |
||||
|
|
||||
|
# serial 12 |
||||
|
|
||||
|
# This macro actually does too much. Some checks are only needed if |
||||
|
# your package does certain things. But this isn't really a big deal. |
||||
|
|
||||
|
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) |
||||
|
# AM_INIT_AUTOMAKE([OPTIONS]) |
||||
|
# ----------------------------------------------- |
||||
|
# The call with PACKAGE and VERSION arguments is the old style |
||||
|
# call (pre autoconf-2.50), which is being phased out. PACKAGE |
||||
|
# and VERSION should now be passed to AC_INIT and removed from |
||||
|
# the call to AM_INIT_AUTOMAKE. |
||||
|
# We support both call styles for the transition. After |
||||
|
# the next Automake release, Autoconf can make the AC_INIT |
||||
|
# arguments mandatory, and then we can depend on a new Autoconf |
||||
|
# release and drop the old call support. |
||||
|
AC_DEFUN([AM_INIT_AUTOMAKE], |
||||
|
[AC_PREREQ([2.58])dnl |
||||
|
dnl Autoconf wants to disallow AM_ names. We explicitly allow |
||||
|
dnl the ones we care about. |
||||
|
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
||||
|
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl |
||||
|
AC_REQUIRE([AC_PROG_INSTALL])dnl |
||||
|
# test to see if srcdir already configured |
||||
|
if test "`cd $srcdir && pwd`" != "`pwd`" && |
||||
|
test -f $srcdir/config.status; then |
||||
|
AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) |
||||
|
fi |
||||
|
|
||||
|
# test whether we have cygpath |
||||
|
if test -z "$CYGPATH_W"; then |
||||
|
if (cygpath --version) >/dev/null 2>/dev/null; then |
||||
|
CYGPATH_W='cygpath -w' |
||||
|
else |
||||
|
CYGPATH_W=echo |
||||
|
fi |
||||
|
fi |
||||
|
AC_SUBST([CYGPATH_W]) |
||||
|
|
||||
|
# Define the identity of the package. |
||||
|
dnl Distinguish between old-style and new-style calls. |
||||
|
m4_ifval([$2], |
||||
|
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl |
||||
|
AC_SUBST([PACKAGE], [$1])dnl |
||||
|
AC_SUBST([VERSION], [$2])], |
||||
|
[_AM_SET_OPTIONS([$1])dnl |
||||
|
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
||||
|
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl |
||||
|
|
||||
|
_AM_IF_OPTION([no-define],, |
||||
|
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) |
||||
|
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl |
||||
|
|
||||
|
# Some tools Automake needs. |
||||
|
AC_REQUIRE([AM_SANITY_CHECK])dnl |
||||
|
AC_REQUIRE([AC_ARG_PROGRAM])dnl |
||||
|
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) |
||||
|
AM_MISSING_PROG(AUTOCONF, autoconf) |
||||
|
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) |
||||
|
AM_MISSING_PROG(AUTOHEADER, autoheader) |
||||
|
AM_MISSING_PROG(MAKEINFO, makeinfo) |
||||
|
AM_PROG_INSTALL_SH |
||||
|
AM_PROG_INSTALL_STRIP |
||||
|
AC_REQUIRE([AM_PROG_MKDIR_P])dnl |
||||
|
# We need awk for the "check" target. The system "awk" is bad on |
||||
|
# some platforms. |
||||
|
AC_REQUIRE([AC_PROG_AWK])dnl |
||||
|
AC_REQUIRE([AC_PROG_MAKE_SET])dnl |
||||
|
AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
||||
|
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], |
||||
|
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], |
||||
|
[_AM_PROG_TAR([v7])])]) |
||||
|
_AM_IF_OPTION([no-dependencies],, |
||||
|
[AC_PROVIDE_IFELSE([AC_PROG_CC], |
||||
|
[_AM_DEPENDENCIES(CC)], |
||||
|
[define([AC_PROG_CC], |
||||
|
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl |
||||
|
AC_PROVIDE_IFELSE([AC_PROG_CXX], |
||||
|
[_AM_DEPENDENCIES(CXX)], |
||||
|
[define([AC_PROG_CXX], |
||||
|
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl |
||||
|
]) |
||||
|
]) |
||||
|
|
||||
|
|
||||
|
# When config.status generates a header, we must update the stamp-h file. |
||||
|
# This file resides in the same directory as the config header |
||||
|
# that is generated. The stamp files are numbered to have different names. |
||||
|
|
||||
|
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the |
||||
|
# loop where config.status creates the headers, so we can generate |
||||
|
# our stamp files there. |
||||
|
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], |
||||
|
[# Compute $1's index in $config_headers. |
||||
|
_am_stamp_count=1 |
||||
|
for _am_header in $config_headers :; do |
||||
|
case $_am_header in |
||||
|
$1 | $1:* ) |
||||
|
break ;; |
||||
|
* ) |
||||
|
_am_stamp_count=`expr $_am_stamp_count + 1` ;; |
||||
|
esac |
||||
|
done |
||||
|
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) |
||||
|
|
||||
|
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
||||
|
# |
||||
|
# This file is free software; the Free Software Foundation |
||||
|
# gives unlimited permission to copy and/or distribute it, |
||||
|
# with or without modifications, as long as this notice is preserved. |
||||
|
|
||||
|
# AM_PROG_INSTALL_SH |
||||
|
# ------------------ |
||||
|
# Define $install_sh. |
||||
|
AC_DEFUN([AM_PROG_INSTALL_SH], |
||||
|
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
||||
|
install_sh=${install_sh-"$am_aux_dir/install-sh"} |
||||
|
AC_SUBST(install_sh)]) |
||||
|
|
||||
|
# Copyright (C) 2003, 2005 Free Software Foundation, Inc. |
||||
|
# |
||||
|
# This file is free software; the Free Software Foundation |
||||
|
# gives unlimited permission to copy and/or distribute it, |
||||
|
# with or without modifications, as long as this notice is preserved. |
||||
|
|
||||
|
# serial 2 |
||||
|
|
||||
|
# Check whether the underlying file-system supports filenames |
||||
|
# with a leading dot. For instance MS-DOS doesn't. |
||||
|
AC_DEFUN([AM_SET_LEADING_DOT], |
||||
|
[rm -rf .tst 2>/dev/null |
||||
|
mkdir .tst 2>/dev/null |
||||
|
if test -d .tst; then |
||||
|
am__leading_dot=. |
||||
|
else |
||||
|
am__leading_dot=_ |
||||
|
fi |
||||
|
rmdir .tst 2>/dev/null |
||||
|
AC_SUBST([am__leading_dot])]) |
||||
|
|
||||
|
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- |
||||
|
# From Jim Meyering |
||||
|
|
||||
|
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 |
||||
|
# Free Software Foundation, Inc. |
||||
|
# |
||||
|
# This file is free software; the Free Software Foundation |
||||
|
# gives unlimited permission to copy and/or distribute it, |
||||
|
# with or without modifications, as long as this notice is preserved. |
||||
|
|
||||
|
# serial 4 |
||||
|
|
||||
|
AC_DEFUN([AM_MAINTAINER_MODE], |
||||
|
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) |
||||
|
dnl maintainer-mode is disabled by default |
||||
|
AC_ARG_ENABLE(maintainer-mode, |
||||
|
[ --enable-maintainer-mode enable make rules and dependencies not useful |
||||
|
(and sometimes confusing) to the casual installer], |
||||
|
USE_MAINTAINER_MODE=$enableval, |
||||
|
USE_MAINTAINER_MODE=no) |
||||
|
AC_MSG_RESULT([$USE_MAINTAINER_MODE]) |
||||
|
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) |
||||
|
MAINT=$MAINTAINER_MODE_TRUE |
||||
|
AC_SUBST(MAINT)dnl |
||||
|
] |
||||
|
) |
||||
|
|
||||
|
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) |
||||
|
|
||||
|
# Check to see how 'make' treats includes. -*- Autoconf -*- |
||||
|
|
||||
|
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. |
||||
|
# |
||||
|
# This file is free software; the Free Software Foundation |
||||
|
# gives unlimited permission to copy and/or distribute it, |
||||
|
# with or without modifications, as long as this notice is preserved. |
||||
|
|
||||
|
# serial 3 |
||||
|
|
||||
|
# AM_MAKE_INCLUDE() |
||||
|
# ----------------- |
||||
|
# Check to see how make treats includes. |
||||
|
AC_DEFUN([AM_MAKE_INCLUDE], |
||||
|
[am_make=${MAKE-make} |
||||
|
cat > confinc << 'END' |
||||
|
am__doit: |
||||
|
@echo done |
||||
|
.PHONY: am__doit |
||||
|
END |
||||
|
# If we don't find an include directive, just comment out the code. |
||||
|
AC_MSG_CHECKING([for style of include used by $am_make]) |
||||
|
am__include="#" |
||||
|
am__quote= |
||||
|
_am_result=none |
||||
|
# First try GNU make style include. |
||||
|
echo "include confinc" > confmf |
||||
|
# We grep out `Entering directory' and `Leaving directory' |
||||
|
# messages which can occur if `w' ends up in MAKEFLAGS. |
||||
|
# In particular we don't look at `^make:' because GNU make might |
||||
|
# be invoked under some other name (usually "gmake"), in which |
||||
|
# case it prints its new name instead of `make'. |
||||
|
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
||||
|
am__include=include |
||||
|
am__quote= |
||||
|
_am_result=GNU |
||||
|
fi |
||||
|
# Now try BSD make style include. |
||||
|
if test "$am__include" = "#"; then |
||||
|
echo '.include "confinc"' > confmf |
||||
|
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
||||
|
am__include=.include |
||||
|
am__quote="\"" |
||||
|
_am_result=BSD |
||||
|
fi |
||||
|
fi |
||||
|
AC_SUBST([am__include]) |
||||
|
AC_SUBST([am__quote]) |
||||
|
AC_MSG_RESULT([$_am_result]) |
||||
|
rm -f confinc confmf |
||||
|
]) |
||||
|
|
||||
|
# Copyright (C) 1999, 2000, 2001, 2003, 2005 Free Software Foundation, Inc. |
||||
|
# |
||||
|
# This file is free software; the Free Software Foundation |
||||
|
# gives unlimited permission to copy and/or distribute it, |
||||
|
# with or without modifications, as long as this notice is preserved. |
||||
|
|
||||
|
# serial 3 |
||||
|
|
||||
|
# AM_PROG_CC_C_O |
||||
|
# -------------- |
||||
|
# Like AC_PROG_CC_C_O, but changed for automake. |
||||
|
AC_DEFUN([AM_PROG_CC_C_O], |
||||
|
[AC_REQUIRE([AC_PROG_CC_C_O])dnl |
||||
|
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
||||
|
# FIXME: we rely on the cache variable name because |
||||
|
# there is no other way. |
||||
|
set dummy $CC |
||||
|
ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` |
||||
|
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then |
||||
|
# Losing compiler, so override with the script. |
||||
|
# FIXME: It is wrong to rewrite CC. |
||||
|
# But if we don't then we get into trouble of one sort or another. |
||||
|
# A longer-term fix would be to have automake use am__CC in this case, |
||||
|
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
||||
|
CC="$am_aux_dir/compile $CC" |
||||
|
fi |
||||
|
]) |
||||
|
|
||||
|
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
||||
|
|
||||
|
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 |
||||
|
# Free Software Foundation, Inc. |
||||
|
# |
||||
|
# This file is free software; the Free Software Foundation |
||||
|
# gives unlimited permission to copy and/or distribute it, |
||||
|
# with or without modifications, as long as this notice is preserved. |
||||
|
|
||||
|
# serial 4 |
||||
|
|
||||
|
# AM_MISSING_PROG(NAME, PROGRAM) |
||||
|
# ------------------------------ |
||||
|
AC_DEFUN([AM_MISSING_PROG], |
||||
|
[AC_REQUIRE([AM_MISSING_HAS_RUN]) |
||||
|
$1=${$1-"${am_missing_run}$2"} |
||||
|
AC_SUBST($1)]) |
||||
|
|
||||
|
|
||||
|
# AM_MISSING_HAS_RUN |
||||
|
# ------------------ |
||||
|
# Define MISSING if not defined so far and test if it supports --run. |
||||
|
# If it does, set am_missing_run to use it, otherwise, to nothing. |
||||
|
AC_DEFUN([AM_MISSING_HAS_RUN], |
||||
|
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
||||
|
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
||||
|
# Use eval to expand $SHELL |
||||
|
if eval "$MISSING --run true"; then |
||||
|
am_missing_run="$MISSING --run " |
||||
|
else |
||||
|
am_missing_run= |
||||
|
AC_MSG_WARN([`missing' script is too old or missing]) |
||||
|
fi |
||||
|
]) |
||||
|
|
||||
|
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. |
||||
|
# |
||||
|
# This file is free software; the Free Software Foundation |
||||
|
# gives unlimited permission to copy and/or distribute it, |
||||
|
# with or without modifications, as long as this notice is preserved. |
||||
|
|
||||
|
# AM_PROG_MKDIR_P |
||||
|
# --------------- |
||||
|
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. |
||||
|
# |
||||
|
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories |
||||
|
# created by `make install' are always world readable, even if the |
||||
|
# installer happens to have an overly restrictive umask (e.g. 077). |
||||
|
# This was a mistake. There are at least two reasons why we must not |
||||
|
# use `-m 0755': |
||||
|
# - it causes special bits like SGID to be ignored, |
||||
|
# - it may be too restrictive (some setups expect 775 directories). |
||||
|
# |
||||
|
# Do not use -m 0755 and let people choose whatever they expect by |
||||
|
# setting umask. |
||||
|
# |
||||
|
# We cannot accept any implementation of `mkdir' that recognizes `-p'. |
||||
|
# Some implementations (such as Solaris 8's) are not thread-safe: if a |
||||
|
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' |
||||
|
# concurrently, both version can detect that a/ is missing, but only |
||||
|
# one can create it and the other will error out. Consequently we |
||||
|
# restrict ourselves to GNU make (using the --version option ensures |
||||
|
# this.) |
||||
|
AC_DEFUN([AM_PROG_MKDIR_P], |
||||
|
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
||||
|
# We used to keeping the `.' as first argument, in order to |
||||
|
# allow $(mkdir_p) to be used without argument. As in |
||||
|
# $(mkdir_p) $(somedir) |
||||
|
# where $(somedir) is conditionally defined. However this is wrong |
||||
|
# for two reasons: |
||||
|
# 1. if the package is installed by a user who cannot write `.' |
||||
|
# make install will fail, |
||||
|
# 2. the above comment should most certainly read |
||||
|
# $(mkdir_p) $(DESTDIR)$(somedir) |
||||
|
# so it does not work when $(somedir) is undefined and |
||||
|
# $(DESTDIR) is not. |
||||
|
# To support the latter case, we have to write |
||||
|
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
||||
|
# so the `.' trick is pointless. |
||||
|
mkdir_p='mkdir -p --' |
||||
|
else |
||||
|
# On NextStep and OpenStep, the `mkdir' command does not |
||||
|
# recognize any option. It will interpret all options as |
||||
|
# directories to create, and then abort because `.' already |
||||
|
# exists. |
||||
|
for d in ./-p ./--version; |
||||
|
do |
||||
|
test -d $d && rmdir $d |
||||
|
done |
||||
|
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
||||
|
if test -f "$ac_aux_dir/mkinstalldirs"; then |
||||
|
mkdir_p='$(mkinstalldirs)' |
||||
|
else |
||||
|
mkdir_p='$(install_sh) -d' |
||||
|
fi |
||||
|
fi |
||||
|
AC_SUBST([mkdir_p])]) |
||||
|
|
||||
|
# Helper functions for option handling. -*- Autoconf -*- |
||||
|
|
||||
|
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. |
||||
|
# |
||||
|
# This file is free software; the Free Software Foundation |
||||
|
# gives unlimited permission to copy and/or distribute it, |
||||
|
# with or without modifications, as long as this notice is preserved. |
||||
|
|
||||
|
# serial 3 |
||||
|
|
||||
|
# _AM_MANGLE_OPTION(NAME) |
||||
|
# ----------------------- |
||||
|
AC_DEFUN([_AM_MANGLE_OPTION], |
||||
|
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) |
||||
|
|
||||
|
# _AM_SET_OPTION(NAME) |
||||
|
# ------------------------------ |
||||
|
# Set option NAME. Presently that only means defining a flag for this option. |
||||
|
AC_DEFUN([_AM_SET_OPTION], |
||||
|
[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) |
||||
|
|
||||
|
# _AM_SET_OPTIONS(OPTIONS) |
||||
|
# ---------------------------------- |
||||
|
# OPTIONS is a space-separated list of Automake options. |
||||
|
AC_DEFUN([_AM_SET_OPTIONS], |
||||
|
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) |
||||
|
|
||||
|
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) |
||||
|
# ------------------------------------------- |
||||
|
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. |
||||
|
AC_DEFUN([_AM_IF_OPTION], |
||||
|
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
||||
|
|
||||
|
# Check to make sure that the build environment is sane. -*- Autoconf -*- |
||||
|
|
||||
|
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 |
||||
|
# Free Software Foundation, Inc. |
||||
|
# |
||||
|
# This file is free software; the Free Software Foundation |
||||
|
# gives unlimited permission to copy and/or distribute it, |
||||
|
# with or without modifications, as long as this notice is preserved. |
||||
|
|
||||
|
# serial 4 |
||||
|
|
||||
|
# AM_SANITY_CHECK |
||||
|
# --------------- |
||||
|
AC_DEFUN([AM_SANITY_CHECK], |
||||
|
[AC_MSG_CHECKING([whether build environment is sane]) |
||||
|
# Just in case |
||||
|
sleep 1 |
||||
|
echo timestamp > conftest.file |
||||
|
# Do `set' in a subshell so we don't clobber the current shell's |
||||
|
# arguments. Must try -L first in case configure is actually a |
||||
|
# symlink; some systems play weird games with the mod time of symlinks |
||||
|
# (eg FreeBSD returns the mod time of the symlink's containing |
||||
|
# directory). |
||||
|
if ( |
||||
|
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
||||
|
if test "$[*]" = "X"; then |
||||
|
# -L didn't work. |
||||
|
set X `ls -t $srcdir/configure conftest.file` |
||||
|
fi |
||||
|
rm -f conftest.file |
||||
|
if test "$[*]" != "X $srcdir/configure conftest.file" \ |
||||
|
&& test "$[*]" != "X conftest.file $srcdir/configure"; then |
||||
|
|
||||
|
# If neither matched, then we have a broken ls. This can happen |
||||
|
# if, for instance, CONFIG_SHELL is bash and it inherits a |
||||
|
# broken ls alias from the environment. This has actually |
||||
|
# happened. Such a system could not be considered "sane". |
||||
|
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken |
||||
|
alias in your environment]) |
||||
|
fi |
||||
|
|
||||
|
test "$[2]" = conftest.file |
||||
|
) |
||||
|
then |
||||
|
# Ok. |
||||
|
: |
||||
|
else |
||||
|
AC_MSG_ERROR([newly created file is older than distributed files! |
||||
|
Check your system clock]) |
||||
|
fi |
||||
|
AC_MSG_RESULT(yes)]) |
||||
|
|
||||
|
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
||||
|
# |
||||
|
# This file is free software; the Free Software Foundation |
||||
|
# gives unlimited permission to copy and/or distribute it, |
||||
|
# with or without modifications, as long as this notice is preserved. |
||||
|
|
||||
|
# AM_PROG_INSTALL_STRIP |
||||
|
# --------------------- |
||||
|
# One issue with vendor `install' (even GNU) is that you can't |
||||
|
# specify the program used to strip binaries. This is especially |
||||
|
# annoying in cross-compiling environments, where the build's strip |
||||
|
# is unlikely to handle the host's binaries. |
||||
|
# Fortunately install-sh will honor a STRIPPROG variable, so we |
||||
|
# always use install-sh in `make install-strip', and initialize |
||||
|
# STRIPPROG with the value of the STRIP variable (set by the user). |
||||
|
AC_DEFUN([AM_PROG_INSTALL_STRIP], |
||||
|
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
||||
|
# Installed binaries are usually stripped using `strip' when the user |
||||
|
# run `make install-strip'. However `strip' might not be the right |
||||
|
# tool to use in cross-compilation environments, therefore Automake |
||||
|
# will honor the `STRIP' environment variable to overrule this program. |
||||
|
dnl Don't test for $cross_compiling = yes, because it might be `maybe'. |
||||
|
if test "$cross_compiling" != no; then |
||||
|
AC_CHECK_TOOL([STRIP], [strip], :) |
||||
|
fi |
||||
|
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
||||
|
AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
||||
|
|
||||
|
# Check how to create a tarball. -*- Autoconf -*- |
||||
|
|
||||
|
# Copyright (C) 2004, 2005 Free Software Foundation, Inc. |
||||
|
# |
||||
|
# This file is free software; the Free Software Foundation |
||||
|
# gives unlimited permission to copy and/or distribute it, |
||||
|
# with or without modifications, as long as this notice is preserved. |
||||
|
|
||||
|
# serial 2 |
||||
|
|
||||
|
# _AM_PROG_TAR(FORMAT) |
||||
|
# -------------------- |
||||
|
# Check how to create a tarball in format FORMAT. |
||||
|
# FORMAT should be one of `v7', `ustar', or `pax'. |
||||
|
# |
||||
|
# Substitute a variable $(am__tar) that is a command |
||||
|
# writing to stdout a FORMAT-tarball containing the directory |
||||
|
# $tardir. |
||||
|
# tardir=directory && $(am__tar) > result.tar |
||||
|
# |
||||
|
# Substitute a variable $(am__untar) that extract such |
||||
|
# a tarball read from stdin. |
||||
|
# $(am__untar) < result.tar |
||||
|
AC_DEFUN([_AM_PROG_TAR], |
||||
|
[# Always define AMTAR for backward compatibility. |
||||
|
AM_MISSING_PROG([AMTAR], [tar]) |
||||
|
m4_if([$1], [v7], |
||||
|
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], |
||||
|
[m4_case([$1], [ustar],, [pax],, |
||||
|
[m4_fatal([Unknown tar format])]) |
||||
|
AC_MSG_CHECKING([how to create a $1 tar archive]) |
||||
|
# Loop over all known methods to create a tar archive until one works. |
||||
|
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' |
||||
|
_am_tools=${am_cv_prog_tar_$1-$_am_tools} |
||||
|
# Do not fold the above two line into one, because Tru64 sh and |
||||
|
# Solaris sh will not grok spaces in the rhs of `-'. |
||||
|
for _am_tool in $_am_tools |
||||
|
do |
||||
|
case $_am_tool in |
||||
|
gnutar) |
||||
|
for _am_tar in tar gnutar gtar; |
||||
|
do |
||||
|
AM_RUN_LOG([$_am_tar --version]) && break |
||||
|
done |
||||
|
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' |
||||
|
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' |
||||
|
am__untar="$_am_tar -xf -" |
||||
|
;; |
||||
|
plaintar) |
||||
|
# Must skip GNU tar: if it does not support --format= it doesn't create |
||||
|
# ustar tarball either. |
||||
|
(tar --version) >/dev/null 2>&1 && continue |
||||
|
am__tar='tar chf - "$$tardir"' |
||||
|
am__tar_='tar chf - "$tardir"' |
||||
|
am__untar='tar xf -' |
||||
|
;; |
||||
|
pax) |
||||
|
am__tar='pax -L -x $1 -w "$$tardir"' |
||||
|
am__tar_='pax -L -x $1 -w "$tardir"' |
||||
|
am__untar='pax -r' |
||||
|
;; |
||||
|
cpio) |
||||
|
am__tar='find "$$tardir" -print | cpio -o -H $1 -L' |
||||
|
am__tar_='find "$tardir" -print | cpio -o -H $1 -L' |
||||
|
am__untar='cpio -i -H $1 -d' |
||||
|
;; |
||||
|
none) |
||||
|
am__tar=false |
||||
|
am__tar_=false |
||||
|
am__untar=false |
||||
|
;; |
||||
|
esac |
||||
|
|
||||
|
# If the value was cached, stop now. We just wanted to have am__tar |
||||
|
# and am__untar set. |
||||
|
test -n "${am_cv_prog_tar_$1}" && break |
||||
|
|
||||
|
# tar/untar a dummy directory, and stop if the command works |
||||
|
rm -rf conftest.dir |
||||
|
mkdir conftest.dir |
||||
|
echo GrepMe > conftest.dir/file |
||||
|
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) |
||||
|
rm -rf conftest.dir |
||||
|
if test -s conftest.tar; then |
||||
|
AM_RUN_LOG([$am__untar <conftest.tar]) |
||||
|
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
||||
|
fi |
||||
|
done |
||||
|
rm -rf conftest.dir |
||||
|
|
||||
|
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) |
||||
|
AC_MSG_RESULT([$am_cv_prog_tar_$1])]) |
||||
|
AC_SUBST([am__tar]) |
||||
|
AC_SUBST([am__untar]) |
||||
|
]) # _AM_PROG_TAR |
||||
|
|
||||
|
m4_include([m4/cares-compilers.m4]) |
||||
|
m4_include([m4/cares-confopts.m4]) |
||||
|
m4_include([m4/cares-functions.m4]) |
||||
|
m4_include([m4/cares-override.m4]) |
||||
|
m4_include([m4/cares-reentrant.m4]) |
||||
|
m4_include([m4/cares-system.m4]) |
||||
|
m4_include([m4/libtool.m4]) |
||||
|
m4_include([m4/ltoptions.m4]) |
||||
|
m4_include([m4/ltsugar.m4]) |
||||
|
m4_include([m4/ltversion.m4]) |
||||
|
m4_include([m4/lt~obsolete.m4]) |
||||
|
m4_include([acinclude.m4]) |
@ -0,0 +1,627 @@ |
|||||
|
/*
|
||||
|
* |
||||
|
* IP-address/hostname to country converter. |
||||
|
* |
||||
|
* Problem; you want to know where IP a.b.c.d is located. |
||||
|
* |
||||
|
* Use ares_gethostbyname ("d.c.b.a.zz.countries.nerd.dk") |
||||
|
* and get the CNAME (host->h_name). Result will be: |
||||
|
* CNAME = zz<CC>.countries.nerd.dk with address 127.0.x.y (ver 1) or |
||||
|
* CNAME = <a.b.c.d>.zz.countries.nerd.dk with address 127.0.x.y (ver 2) |
||||
|
* |
||||
|
* The 2 letter country code is in <CC> and the ISO-3166 country |
||||
|
* number is in x.y (number = x*256 + y). Version 2 of the protocol is missing |
||||
|
* the <CC> number. |
||||
|
* |
||||
|
* Ref: http://countries.nerd.dk/more.html
|
||||
|
* |
||||
|
* Written by G. Vanem <gvanem@broadpark.no> 2006, 2007 |
||||
|
* |
||||
|
* NB! This program may not be big-endian aware. |
||||
|
* |
||||
|
* Permission to use, copy, modify, and distribute this |
||||
|
* software and its documentation for any purpose and without |
||||
|
* fee is hereby granted, provided that the above copyright |
||||
|
* notice appear in all copies and that both that copyright |
||||
|
* notice and this permission notice appear in supporting |
||||
|
* documentation, and that the name of M.I.T. not be used in |
||||
|
* advertising or publicity pertaining to distribution of the |
||||
|
* software without specific, written prior permission. |
||||
|
* M.I.T. makes no representations about the suitability of |
||||
|
* this software for any purpose. It is provided "as is" |
||||
|
* without express or implied warranty. |
||||
|
*/ |
||||
|
|
||||
|
#include "ares_setup.h" |
||||
|
|
||||
|
#include <stdio.h> |
||||
|
#include <stdlib.h> |
||||
|
#include <stdarg.h> |
||||
|
#include <string.h> |
||||
|
#include <ctype.h> |
||||
|
#ifdef HAVE_UNISTD_H |
||||
|
#include <unistd.h> |
||||
|
#endif |
||||
|
#ifdef HAVE_STRINGS_H |
||||
|
#include <strings.h> |
||||
|
#endif |
||||
|
|
||||
|
#if defined(WIN32) && !defined(WATT32) |
||||
|
#include <winsock.h> |
||||
|
#else |
||||
|
#include <sys/socket.h> |
||||
|
#include <arpa/inet.h> |
||||
|
#include <netinet/in.h> |
||||
|
#include <netdb.h> |
||||
|
#endif |
||||
|
|
||||
|
#include "ares.h" |
||||
|
#include "ares_getopt.h" |
||||
|
#include "inet_net_pton.h" |
||||
|
#include "inet_ntop.h" |
||||
|
|
||||
|
#ifndef HAVE_STRDUP |
||||
|
# include "ares_strdup.h" |
||||
|
# define strdup(ptr) ares_strdup(ptr) |
||||
|
#endif |
||||
|
|
||||
|
#ifndef HAVE_STRCASECMP |
||||
|
# include "ares_strcasecmp.h" |
||||
|
# define strcasecmp(p1,p2) ares_strcasecmp(p1,p2) |
||||
|
#endif |
||||
|
|
||||
|
#ifndef HAVE_STRNCASECMP |
||||
|
# include "ares_strcasecmp.h" |
||||
|
# define strncasecmp(p1,p2,n) ares_strncasecmp(p1,p2,n) |
||||
|
#endif |
||||
|
|
||||
|
#ifndef INADDR_NONE |
||||
|
#define INADDR_NONE 0xffffffff |
||||
|
#endif |
||||
|
|
||||
|
static const char *usage = "acountry [-vh?] {host|addr} ...\n"; |
||||
|
static const char nerd_fmt[] = "%u.%u.%u.%u.zz.countries.nerd.dk"; |
||||
|
static const char *nerd_ver1 = nerd_fmt + 14; |
||||
|
static const char *nerd_ver2 = nerd_fmt + 11; |
||||
|
static int verbose = 0; |
||||
|
|
||||
|
#define TRACE(fmt) do { \ |
||||
|
if (verbose > 0) \ |
||||
|
printf fmt ; \ |
||||
|
} while (0) |
||||
|
|
||||
|
static void wait_ares(ares_channel channel); |
||||
|
static void callback(void *arg, int status, int timeouts, struct hostent *host); |
||||
|
static void callback2(void *arg, int status, int timeouts, struct hostent *host); |
||||
|
static void find_country_from_cname(const char *cname, struct in_addr addr); |
||||
|
|
||||
|
static void Abort(const char *fmt, ...) |
||||
|
{ |
||||
|
va_list args; |
||||
|
va_start(args, fmt); |
||||
|
vfprintf(stderr, fmt, args); |
||||
|
va_end(args); |
||||
|
exit(1); |
||||
|
} |
||||
|
|
||||
|
int main(int argc, char **argv) |
||||
|
{ |
||||
|
ares_channel channel; |
||||
|
int ch, status; |
||||
|
|
||||
|
#if defined(WIN32) && !defined(WATT32) |
||||
|
WORD wVersionRequested = MAKEWORD(USE_WINSOCK,USE_WINSOCK); |
||||
|
WSADATA wsaData; |
||||
|
WSAStartup(wVersionRequested, &wsaData); |
||||
|
#endif |
||||
|
|
||||
|
status = ares_library_init(ARES_LIB_INIT_ALL); |
||||
|
if (status != ARES_SUCCESS) |
||||
|
{ |
||||
|
fprintf(stderr, "ares_library_init: %s\n", ares_strerror(status)); |
||||
|
return 1; |
||||
|
} |
||||
|
|
||||
|
while ((ch = ares_getopt(argc, argv, "dvh?")) != -1) |
||||
|
switch (ch) |
||||
|
{ |
||||
|
case 'd': |
||||
|
#ifdef WATT32 |
||||
|
dbug_init(); |
||||
|
#endif |
||||
|
break; |
||||
|
case 'v': |
||||
|
verbose++; |
||||
|
break; |
||||
|
case 'h': |
||||
|
case '?': |
||||
|
default: |
||||
|
Abort(usage); |
||||
|
} |
||||
|
|
||||
|
argc -= optind; |
||||
|
argv += optind; |
||||
|
if (argc < 1) |
||||
|
Abort(usage); |
||||
|
|
||||
|
status = ares_init(&channel); |
||||
|
if (status != ARES_SUCCESS) |
||||
|
{ |
||||
|
fprintf(stderr, "ares_init: %s\n", ares_strerror(status)); |
||||
|
return 1; |
||||
|
} |
||||
|
|
||||
|
/* Initiate the queries, one per command-line argument. */ |
||||
|
for ( ; *argv; argv++) |
||||
|
{ |
||||
|
struct in_addr addr; |
||||
|
char buf[100]; |
||||
|
|
||||
|
/* If this fails, assume '*argv' is a host-name that
|
||||
|
* must be resolved first |
||||
|
*/ |
||||
|
if (ares_inet_pton(AF_INET, *argv, &addr) != 1) |
||||
|
{ |
||||
|
ares_gethostbyname(channel, *argv, AF_INET, callback2, &addr); |
||||
|
wait_ares(channel); |
||||
|
if (addr.s_addr == INADDR_NONE) |
||||
|
{ |
||||
|
printf("Failed to lookup %s\n", *argv); |
||||
|
continue; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
sprintf(buf, nerd_fmt, |
||||
|
(unsigned int)(addr.s_addr >> 24), |
||||
|
(unsigned int)((addr.s_addr >> 16) & 255), |
||||
|
(unsigned int)((addr.s_addr >> 8) & 255), |
||||
|
(unsigned int)(addr.s_addr & 255)); |
||||
|
TRACE(("Looking up %s...", buf)); |
||||
|
fflush(stdout); |
||||
|
ares_gethostbyname(channel, buf, AF_INET, callback, buf); |
||||
|
} |
||||
|
|
||||
|
wait_ares(channel); |
||||
|
ares_destroy(channel); |
||||
|
|
||||
|
ares_library_cleanup(); |
||||
|
|
||||
|
#if defined(WIN32) && !defined(WATT32) |
||||
|
WSACleanup(); |
||||
|
#endif |
||||
|
|
||||
|
return 0; |
||||
|
} |
||||
|
|
||||
|
/*
|
||||
|
* Wait for the queries to complete. |
||||
|
*/ |
||||
|
static void wait_ares(ares_channel channel) |
||||
|
{ |
||||
|
for (;;) |
||||
|
{ |
||||
|
struct timeval *tvp, tv; |
||||
|
fd_set read_fds, write_fds; |
||||
|
int nfds; |
||||
|
|
||||
|
FD_ZERO(&read_fds); |
||||
|
FD_ZERO(&write_fds); |
||||
|
nfds = ares_fds(channel, &read_fds, &write_fds); |
||||
|
if (nfds == 0) |
||||
|
break; |
||||
|
tvp = ares_timeout(channel, NULL, &tv); |
||||
|
select(nfds, &read_fds, &write_fds, NULL, tvp); |
||||
|
ares_process(channel, &read_fds, &write_fds); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/*
|
||||
|
* This is the callback used when we have the IP-address of interest. |
||||
|
* Extract the CNAME and figure out the country-code from it. |
||||
|
*/ |
||||
|
static void callback(void *arg, int status, int timeouts, struct hostent *host) |
||||
|
{ |
||||
|
const char *name = (const char*)arg; |
||||
|
const char *cname; |
||||
|
char buf[20]; |
||||
|
|
||||
|
(void)timeouts; |
||||
|
|
||||
|
if (!host || status != ARES_SUCCESS) |
||||
|
{ |
||||
|
printf("Failed to lookup %s: %s\n", name, ares_strerror(status)); |
||||
|
return; |
||||
|
} |
||||
|
|
||||
|
TRACE(("\nFound address %s, name %s\n", |
||||
|
ares_inet_ntop(AF_INET,(const char*)host->h_addr,buf,sizeof(buf)), |
||||
|
host->h_name)); |
||||
|
|
||||
|
cname = host->h_name; /* CNAME gets put here */ |
||||
|
if (!cname) |
||||
|
printf("Failed to get CNAME for %s\n", name); |
||||
|
else |
||||
|
find_country_from_cname(cname, *(struct in_addr*)host->h_addr); |
||||
|
} |
||||
|
|
||||
|
/*
|
||||
|
* This is the callback used to obtain the IP-address of the host of interest. |
||||
|
*/ |
||||
|
static void callback2(void *arg, int status, int timeouts, struct hostent *host) |
||||
|
{ |
||||
|
struct in_addr *addr = (struct in_addr*) arg; |
||||
|
|
||||
|
(void)timeouts; |
||||
|
if (!host || status != ARES_SUCCESS) |
||||
|
memset(addr, INADDR_NONE, sizeof(*addr)); |
||||
|
else |
||||
|
memcpy(addr, host->h_addr, sizeof(*addr)); |
||||
|
} |
||||
|
|
||||
|
struct search_list { |
||||
|
int country_number; /* ISO-3166 country number */ |
||||
|
char short_name[3]; /* A2 short country code */ |
||||
|
const char *long_name; /* normal country name */ |
||||
|
}; |
||||
|
|
||||
|
static const struct search_list *list_lookup(int number, const struct search_list *list, int num) |
||||
|
{ |
||||
|
while (num > 0 && list->long_name) |
||||
|
{ |
||||
|
if (list->country_number == number) |
||||
|
return (list); |
||||
|
num--; |
||||
|
list++; |
||||
|
} |
||||
|
return (NULL); |
||||
|
} |
||||
|
|
||||
|
/*
|
||||
|
* Ref: ftp://ftp.ripe.net/iso3166-countrycodes.txt
|
||||
|
*/ |
||||
|
static const struct search_list country_list[] = { |
||||
|
{ 4, "af", "Afghanistan" }, |
||||
|
{ 248, "ax", "Åland Island" }, |
||||
|
{ 8, "al", "Albania" }, |
||||
|
{ 12, "dz", "Algeria" }, |
||||
|
{ 16, "as", "American Samoa" }, |
||||
|
{ 20, "ad", "Andorra" }, |
||||
|
{ 24, "ao", "Angola" }, |
||||
|
{ 660, "ai", "Anguilla" }, |
||||
|
{ 10, "aq", "Antarctica" }, |
||||
|
{ 28, "ag", "Antigua & Barbuda" }, |
||||
|
{ 32, "ar", "Argentina" }, |
||||
|
{ 51, "am", "Armenia" }, |
||||
|
{ 533, "aw", "Aruba" }, |
||||
|
{ 36, "au", "Australia" }, |
||||
|
{ 40, "at", "Austria" }, |
||||
|
{ 31, "az", "Azerbaijan" }, |
||||
|
{ 44, "bs", "Bahamas" }, |
||||
|
{ 48, "bh", "Bahrain" }, |
||||
|
{ 50, "bd", "Bangladesh" }, |
||||
|
{ 52, "bb", "Barbados" }, |
||||
|
{ 112, "by", "Belarus" }, |
||||
|
{ 56, "be", "Belgium" }, |
||||
|
{ 84, "bz", "Belize" }, |
||||
|
{ 204, "bj", "Benin" }, |
||||
|
{ 60, "bm", "Bermuda" }, |
||||
|
{ 64, "bt", "Bhutan" }, |
||||
|
{ 68, "bo", "Bolivia" }, |
||||
|
{ 70, "ba", "Bosnia & Herzegowina" }, |
||||
|
{ 72, "bw", "Botswana" }, |
||||
|
{ 74, "bv", "Bouvet Island" }, |
||||
|
{ 76, "br", "Brazil" }, |
||||
|
{ 86, "io", "British Indian Ocean Territory" }, |
||||
|
{ 96, "bn", "Brunei Darussalam" }, |
||||
|
{ 100, "bg", "Bulgaria" }, |
||||
|
{ 854, "bf", "Burkina Faso" }, |
||||
|
{ 108, "bi", "Burundi" }, |
||||
|
{ 116, "kh", "Cambodia" }, |
||||
|
{ 120, "cm", "Cameroon" }, |
||||
|
{ 124, "ca", "Canada" }, |
||||
|
{ 132, "cv", "Cape Verde" }, |
||||
|
{ 136, "ky", "Cayman Islands" }, |
||||
|
{ 140, "cf", "Central African Republic" }, |
||||
|
{ 148, "td", "Chad" }, |
||||
|
{ 152, "cl", "Chile" }, |
||||
|
{ 156, "cn", "China" }, |
||||
|
{ 162, "cx", "Christmas Island" }, |
||||
|
{ 166, "cc", "Cocos Islands" }, |
||||
|
{ 170, "co", "Colombia" }, |
||||
|
{ 174, "km", "Comoros" }, |
||||
|
{ 178, "cg", "Congo" }, |
||||
|
{ 180, "cd", "Congo" }, |
||||
|
{ 184, "ck", "Cook Islands" }, |
||||
|
{ 188, "cr", "Costa Rica" }, |
||||
|
{ 384, "ci", "Cote d'Ivoire" }, |
||||
|
{ 191, "hr", "Croatia" }, |
||||
|
{ 192, "cu", "Cuba" }, |
||||
|
{ 196, "cy", "Cyprus" }, |
||||
|
{ 203, "cz", "Czech Republic" }, |
||||
|
{ 208, "dk", "Denmark" }, |
||||
|
{ 262, "dj", "Djibouti" }, |
||||
|
{ 212, "dm", "Dominica" }, |
||||
|
{ 214, "do", "Dominican Republic" }, |
||||
|
{ 218, "ec", "Ecuador" }, |
||||
|
{ 818, "eg", "Egypt" }, |
||||
|
{ 222, "sv", "El Salvador" }, |
||||
|
{ 226, "gq", "Equatorial Guinea" }, |
||||
|
{ 232, "er", "Eritrea" }, |
||||
|
{ 233, "ee", "Estonia" }, |
||||
|
{ 231, "et", "Ethiopia" }, |
||||
|
{ 238, "fk", "Falkland Islands" }, |
||||
|
{ 234, "fo", "Faroe Islands" }, |
||||
|
{ 242, "fj", "Fiji" }, |
||||
|
{ 246, "fi", "Finland" }, |
||||
|
{ 250, "fr", "France" }, |
||||
|
{ 249, "fx", "France, Metropolitan" }, |
||||
|
{ 254, "gf", "French Guiana" }, |
||||
|
{ 258, "pf", "French Polynesia" }, |
||||
|
{ 260, "tf", "French Southern Territories" }, |
||||
|
{ 266, "ga", "Gabon" }, |
||||
|
{ 270, "gm", "Gambia" }, |
||||
|
{ 268, "ge", "Georgia" }, |
||||
|
{ 276, "de", "Germany" }, |
||||
|
{ 288, "gh", "Ghana" }, |
||||
|
{ 292, "gi", "Gibraltar" }, |
||||
|
{ 300, "gr", "Greece" }, |
||||
|
{ 304, "gl", "Greenland" }, |
||||
|
{ 308, "gd", "Grenada" }, |
||||
|
{ 312, "gp", "Guadeloupe" }, |
||||
|
{ 316, "gu", "Guam" }, |
||||
|
{ 320, "gt", "Guatemala" }, |
||||
|
{ 324, "gn", "Guinea" }, |
||||
|
{ 624, "gw", "Guinea-Bissau" }, |
||||
|
{ 328, "gy", "Guyana" }, |
||||
|
{ 332, "ht", "Haiti" }, |
||||
|
{ 334, "hm", "Heard & Mc Donald Islands" }, |
||||
|
{ 336, "va", "Vatican City" }, |
||||
|
{ 340, "hn", "Honduras" }, |
||||
|
{ 344, "hk", "Hong kong" }, |
||||
|
{ 348, "hu", "Hungary" }, |
||||
|
{ 352, "is", "Iceland" }, |
||||
|
{ 356, "in", "India" }, |
||||
|
{ 360, "id", "Indonesia" }, |
||||
|
{ 364, "ir", "Iran" }, |
||||
|
{ 368, "iq", "Iraq" }, |
||||
|
{ 372, "ie", "Ireland" }, |
||||
|
{ 376, "il", "Israel" }, |
||||
|
{ 380, "it", "Italy" }, |
||||
|
{ 388, "jm", "Jamaica" }, |
||||
|
{ 392, "jp", "Japan" }, |
||||
|
{ 400, "jo", "Jordan" }, |
||||
|
{ 398, "kz", "Kazakhstan" }, |
||||
|
{ 404, "ke", "Kenya" }, |
||||
|
{ 296, "ki", "Kiribati" }, |
||||
|
{ 408, "kp", "Korea (north)" }, |
||||
|
{ 410, "kr", "Korea (south)" }, |
||||
|
{ 414, "kw", "Kuwait" }, |
||||
|
{ 417, "kg", "Kyrgyzstan" }, |
||||
|
{ 418, "la", "Laos" }, |
||||
|
{ 428, "lv", "Latvia" }, |
||||
|
{ 422, "lb", "Lebanon" }, |
||||
|
{ 426, "ls", "Lesotho" }, |
||||
|
{ 430, "lr", "Liberia" }, |
||||
|
{ 434, "ly", "Libya" }, |
||||
|
{ 438, "li", "Liechtenstein" }, |
||||
|
{ 440, "lt", "Lithuania" }, |
||||
|
{ 442, "lu", "Luxembourg" }, |
||||
|
{ 446, "mo", "Macao" }, |
||||
|
{ 807, "mk", "Macedonia" }, |
||||
|
{ 450, "mg", "Madagascar" }, |
||||
|
{ 454, "mw", "Malawi" }, |
||||
|
{ 458, "my", "Malaysia" }, |
||||
|
{ 462, "mv", "Maldives" }, |
||||
|
{ 466, "ml", "Mali" }, |
||||
|
{ 470, "mt", "Malta" }, |
||||
|
{ 584, "mh", "Marshall Islands" }, |
||||
|
{ 474, "mq", "Martinique" }, |
||||
|
{ 478, "mr", "Mauritania" }, |
||||
|
{ 480, "mu", "Mauritius" }, |
||||
|
{ 175, "yt", "Mayotte" }, |
||||
|
{ 484, "mx", "Mexico" }, |
||||
|
{ 583, "fm", "Micronesia" }, |
||||
|
{ 498, "md", "Moldova" }, |
||||
|
{ 492, "mc", "Monaco" }, |
||||
|
{ 496, "mn", "Mongolia" }, |
||||
|
{ 500, "ms", "Montserrat" }, |
||||
|
{ 504, "ma", "Morocco" }, |
||||
|
{ 508, "mz", "Mozambique" }, |
||||
|
{ 104, "mm", "Myanmar" }, |
||||
|
{ 516, "na", "Namibia" }, |
||||
|
{ 520, "nr", "Nauru" }, |
||||
|
{ 524, "np", "Nepal" }, |
||||
|
{ 528, "nl", "Netherlands" }, |
||||
|
{ 530, "an", "Netherlands Antilles" }, |
||||
|
{ 540, "nc", "New Caledonia" }, |
||||
|
{ 554, "nz", "New Zealand" }, |
||||
|
{ 558, "ni", "Nicaragua" }, |
||||
|
{ 562, "ne", "Niger" }, |
||||
|
{ 566, "ng", "Nigeria" }, |
||||
|
{ 570, "nu", "Niue" }, |
||||
|
{ 574, "nf", "Norfolk Island" }, |
||||
|
{ 580, "mp", "Northern Mariana Islands" }, |
||||
|
{ 578, "no", "Norway" }, |
||||
|
{ 512, "om", "Oman" }, |
||||
|
{ 586, "pk", "Pakistan" }, |
||||
|
{ 585, "pw", "Palau" }, |
||||
|
{ 275, "ps", "Palestinian Territory" }, |
||||
|
{ 591, "pa", "Panama" }, |
||||
|
{ 598, "pg", "Papua New Guinea" }, |
||||
|
{ 600, "py", "Paraguay" }, |
||||
|
{ 604, "pe", "Peru" }, |
||||
|
{ 608, "ph", "Philippines" }, |
||||
|
{ 612, "pn", "Pitcairn" }, |
||||
|
{ 616, "pl", "Poland" }, |
||||
|
{ 620, "pt", "Portugal" }, |
||||
|
{ 630, "pr", "Puerto Rico" }, |
||||
|
{ 634, "qa", "Qatar" }, |
||||
|
{ 638, "re", "Reunion" }, |
||||
|
{ 642, "ro", "Romania" }, |
||||
|
{ 643, "ru", "Russia" }, |
||||
|
{ 646, "rw", "Rwanda" }, |
||||
|
{ 659, "kn", "Saint Kitts & Nevis" }, |
||||
|
{ 662, "lc", "Saint Lucia" }, |
||||
|
{ 670, "vc", "Saint Vincent" }, |
||||
|
{ 882, "ws", "Samoa" }, |
||||
|
{ 674, "sm", "San Marino" }, |
||||
|
{ 678, "st", "Sao Tome & Principe" }, |
||||
|
{ 682, "sa", "Saudi Arabia" }, |
||||
|
{ 686, "sn", "Senegal" }, |
||||
|
{ 891, "cs", "Serbia and Montenegro" }, |
||||
|
{ 690, "sc", "Seychelles" }, |
||||
|
{ 694, "sl", "Sierra Leone" }, |
||||
|
{ 702, "sg", "Singapore" }, |
||||
|
{ 703, "sk", "Slovakia" }, |
||||
|
{ 705, "si", "Slovenia" }, |
||||
|
{ 90, "sb", "Solomon Islands" }, |
||||
|
{ 706, "so", "Somalia" }, |
||||
|
{ 710, "za", "South Africa" }, |
||||
|
{ 239, "gs", "South Georgia" }, |
||||
|
{ 724, "es", "Spain" }, |
||||
|
{ 144, "lk", "Sri Lanka" }, |
||||
|
{ 654, "sh", "St. Helena" }, |
||||
|
{ 666, "pm", "St. Pierre & Miquelon" }, |
||||
|
{ 736, "sd", "Sudan" }, |
||||
|
{ 740, "sr", "Suriname" }, |
||||
|
{ 744, "sj", "Svalbard & Jan Mayen Islands" }, |
||||
|
{ 748, "sz", "Swaziland" }, |
||||
|
{ 752, "se", "Sweden" }, |
||||
|
{ 756, "ch", "Switzerland" }, |
||||
|
{ 760, "sy", "Syrian Arab Republic" }, |
||||
|
{ 626, "tl", "Timor-Leste" }, |
||||
|
{ 158, "tw", "Taiwan" }, |
||||
|
{ 762, "tj", "Tajikistan" }, |
||||
|
{ 834, "tz", "Tanzania" }, |
||||
|
{ 764, "th", "Thailand" }, |
||||
|
{ 768, "tg", "Togo" }, |
||||
|
{ 772, "tk", "Tokelau" }, |
||||
|
{ 776, "to", "Tonga" }, |
||||
|
{ 780, "tt", "Trinidad & Tobago" }, |
||||
|
{ 788, "tn", "Tunisia" }, |
||||
|
{ 792, "tr", "Turkey" }, |
||||
|
{ 795, "tm", "Turkmenistan" }, |
||||
|
{ 796, "tc", "Turks & Caicos Islands" }, |
||||
|
{ 798, "tv", "Tuvalu" }, |
||||
|
{ 800, "ug", "Uganda" }, |
||||
|
{ 804, "ua", "Ukraine" }, |
||||
|
{ 784, "ae", "United Arab Emirates" }, |
||||
|
{ 826, "gb", "United Kingdom" }, |
||||
|
{ 840, "us", "United States" }, |
||||
|
{ 581, "um", "United States Minor Outlying Islands" }, |
||||
|
{ 858, "uy", "Uruguay" }, |
||||
|
{ 860, "uz", "Uzbekistan" }, |
||||
|
{ 548, "vu", "Vanuatu" }, |
||||
|
{ 862, "ve", "Venezuela" }, |
||||
|
{ 704, "vn", "Vietnam" }, |
||||
|
{ 92, "vg", "Virgin Islands (British)" }, |
||||
|
{ 850, "vi", "Virgin Islands (US)" }, |
||||
|
{ 876, "wf", "Wallis & Futuna Islands" }, |
||||
|
{ 732, "eh", "Western Sahara" }, |
||||
|
{ 887, "ye", "Yemen" }, |
||||
|
{ 894, "zm", "Zambia" }, |
||||
|
{ 716, "zw", "Zimbabwe" } |
||||
|
}; |
||||
|
|
||||
|
/*
|
||||
|
* Check if start of 'str' is simply an IPv4 address. |
||||
|
*/ |
||||
|
#define BYTE_OK(x) ((x) >= 0 && (x) <= 255) |
||||
|
|
||||
|
static int is_addr(char *str, char **end) |
||||
|
{ |
||||
|
int a0, a1, a2, a3, num, rc = 0, length = 0; |
||||
|
|
||||
|
num = sscanf(str,"%3d.%3d.%3d.%3d%n",&a0,&a1,&a2,&a3,&length); |
||||
|
if( (num == 4) && |
||||
|
BYTE_OK(a0) && BYTE_OK(a1) && BYTE_OK(a2) && BYTE_OK(a3) && |
||||
|
length >= (3+4)) |
||||
|
{ |
||||
|
rc = 1; |
||||
|
*end = str + length; |
||||
|
} |
||||
|
return rc; |
||||
|
} |
||||
|
|
||||
|
/*
|
||||
|
* Find the country-code and name from the CNAME. E.g.: |
||||
|
* version 1: CNAME = zzno.countries.nerd.dk with address 127.0.2.66 |
||||
|
* yields ccode_A" = "no" and cnumber 578 (2.66). |
||||
|
* version 2: CNAME = <a.b.c.d>.zz.countries.nerd.dk with address 127.0.2.66 |
||||
|
* yields cnumber 578 (2.66). ccode_A is ""; |
||||
|
*/ |
||||
|
static void find_country_from_cname(const char *cname, struct in_addr addr) |
||||
|
{ |
||||
|
const struct search_list *country; |
||||
|
char ccode_A2[3], *ccopy, *dot_4; |
||||
|
int cnumber, z0, z1, ver_1, ver_2; |
||||
|
unsigned long ip; |
||||
|
|
||||
|
ip = ntohl(addr.s_addr); |
||||
|
z0 = TOLOWER(cname[0]); |
||||
|
z1 = TOLOWER(cname[1]); |
||||
|
ccopy = strdup(cname); |
||||
|
dot_4 = NULL; |
||||
|
|
||||
|
ver_1 = (z0 == 'z' && z1 == 'z' && !strcasecmp(cname+4,nerd_ver1)); |
||||
|
ver_2 = (is_addr(ccopy,&dot_4) && !strcasecmp(dot_4,nerd_ver2)); |
||||
|
|
||||
|
if (ver_1) |
||||
|
{ |
||||
|
const char *dot = strchr(cname, '.'); |
||||
|
if ((z0 != 'z' && z1 != 'z') || dot != cname+4) |
||||
|
{ |
||||
|
printf("Unexpected CNAME %s (ver_1)\n", cname); |
||||
|
return; |
||||
|
} |
||||
|
} |
||||
|
else if (ver_2) |
||||
|
{ |
||||
|
z0 = TOLOWER(dot_4[1]); |
||||
|
z1 = TOLOWER(dot_4[2]); |
||||
|
if (z0 != 'z' && z1 != 'z') |
||||
|
{ |
||||
|
printf("Unexpected CNAME %s (ver_2)\n", cname); |
||||
|
return; |
||||
|
} |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
printf("Unexpected CNAME %s (ver?)\n", cname); |
||||
|
return; |
||||
|
} |
||||
|
|
||||
|
if (ver_1) |
||||
|
{ |
||||
|
ccode_A2[0] = (char)TOLOWER(cname[2]); |
||||
|
ccode_A2[1] = (char)TOLOWER(cname[3]); |
||||
|
ccode_A2[2] = '\0'; |
||||
|
} |
||||
|
else |
||||
|
ccode_A2[0] = '\0'; |
||||
|
|
||||
|
cnumber = ip & 0xFFFF; |
||||
|
|
||||
|
TRACE(("Found country-code `%s', number %d\n", |
||||
|
ver_1 ? ccode_A2 : "<n/a>", cnumber)); |
||||
|
|
||||
|
country = list_lookup(cnumber, country_list, |
||||
|
sizeof(country_list) / sizeof(country_list[0])); |
||||
|
if (!country) |
||||
|
printf("Name for country-number %d not found.\n", cnumber); |
||||
|
else |
||||
|
{ |
||||
|
if (ver_1) |
||||
|
{ |
||||
|
if ((country->short_name[0] != ccode_A2[0]) || |
||||
|
(country->short_name[1] != ccode_A2[1]) || |
||||
|
(country->short_name[2] != ccode_A2[2])) |
||||
|
printf("short-name mismatch; %s vs %s\n", |
||||
|
country->short_name, ccode_A2); |
||||
|
} |
||||
|
printf("%s (%s), number %d.\n", |
||||
|
country->long_name, country->short_name, cnumber); |
||||
|
} |
||||
|
free(ccopy); |
||||
|
} |
||||
|
|
@ -0,0 +1,819 @@ |
|||||
|
/* Copyright 1998 by the Massachusetts Institute of Technology.
|
||||
|
* |
||||
|
* |
||||
|
* Permission to use, copy, modify, and distribute this |
||||
|
* software and its documentation for any purpose and without |
||||
|
* fee is hereby granted, provided that the above copyright |
||||
|
* notice appear in all copies and that both that copyright |
||||
|
* notice and this permission notice appear in supporting |
||||
|
* documentation, and that the name of M.I.T. not be used in |
||||
|
* advertising or publicity pertaining to distribution of the |
||||
|
* software without specific, written prior permission. |
||||
|
* M.I.T. makes no representations about the suitability of |
||||
|
* this software for any purpose. It is provided "as is" |
||||
|
* without express or implied warranty. |
||||
|
*/ |
||||
|
|
||||
|
#include "ares_setup.h" |
||||
|
|
||||
|
#ifdef HAVE_SYS_SOCKET_H |
||||
|
# include <sys/socket.h> |
||||
|
#endif |
||||
|
#ifdef HAVE_NETINET_IN_H |
||||
|
# include <netinet/in.h> |
||||
|
#endif |
||||
|
#ifdef HAVE_ARPA_INET_H |
||||
|
# include <arpa/inet.h> |
||||
|
#endif |
||||
|
#ifdef HAVE_NETDB_H |
||||
|
# include <netdb.h> |
||||
|
#endif |
||||
|
#ifdef HAVE_ARPA_NAMESER_H |
||||
|
# include <arpa/nameser.h> |
||||
|
#else |
||||
|
# include "nameser.h" |
||||
|
#endif |
||||
|
#ifdef HAVE_ARPA_NAMESER_COMPAT_H |
||||
|
# include <arpa/nameser_compat.h> |
||||
|
#endif |
||||
|
|
||||
|
#ifdef HAVE_SYS_TIME_H |
||||
|
# include <sys/time.h> |
||||
|
#endif |
||||
|
#ifdef HAVE_UNISTD_H |
||||
|
# include <unistd.h> |
||||
|
#endif |
||||
|
#ifdef HAVE_STRINGS_H |
||||
|
# include <strings.h> |
||||
|
#endif |
||||
|
|
||||
|
#include <stdio.h> |
||||
|
#include <stdlib.h> |
||||
|
#include <string.h> |
||||
|
#include <ctype.h> |
||||
|
#include <errno.h> |
||||
|
|
||||
|
#include "ares.h" |
||||
|
#include "ares_dns.h" |
||||
|
#include "inet_ntop.h" |
||||
|
#include "inet_net_pton.h" |
||||
|
#include "ares_getopt.h" |
||||
|
|
||||
|
#ifndef HAVE_STRDUP |
||||
|
# include "ares_strdup.h" |
||||
|
# define strdup(ptr) ares_strdup(ptr) |
||||
|
#endif |
||||
|
|
||||
|
#ifndef HAVE_STRCASECMP |
||||
|
# include "ares_strcasecmp.h" |
||||
|
# define strcasecmp(p1,p2) ares_strcasecmp(p1,p2) |
||||
|
#endif |
||||
|
|
||||
|
#ifndef HAVE_STRNCASECMP |
||||
|
# include "ares_strcasecmp.h" |
||||
|
# define strncasecmp(p1,p2,n) ares_strncasecmp(p1,p2,n) |
||||
|
#endif |
||||
|
|
||||
|
#ifdef WATT32 |
||||
|
#undef WIN32 /* Redefined in MingW headers */ |
||||
|
#endif |
||||
|
|
||||
|
/* Mac OS X portability check */ |
||||
|
#ifndef T_SRV |
||||
|
#define T_SRV 33 /* server selection */ |
||||
|
#endif |
||||
|
|
||||
|
/* AIX portability check */ |
||||
|
#ifndef T_NAPTR |
||||
|
#define T_NAPTR 35 /* naming authority pointer */ |
||||
|
#endif |
||||
|
|
||||
|
struct nv { |
||||
|
const char *name; |
||||
|
int value; |
||||
|
}; |
||||
|
|
||||
|
static const struct nv flags[] = { |
||||
|
{ "usevc", ARES_FLAG_USEVC }, |
||||
|
{ "primary", ARES_FLAG_PRIMARY }, |
||||
|
{ "igntc", ARES_FLAG_IGNTC }, |
||||
|
{ "norecurse", ARES_FLAG_NORECURSE }, |
||||
|
{ "stayopen", ARES_FLAG_STAYOPEN }, |
||||
|
{ "noaliases", ARES_FLAG_NOALIASES } |
||||
|
}; |
||||
|
static const int nflags = sizeof(flags) / sizeof(flags[0]); |
||||
|
|
||||
|
static const struct nv classes[] = { |
||||
|
{ "IN", C_IN }, |
||||
|
{ "CHAOS", C_CHAOS }, |
||||
|
{ "HS", C_HS }, |
||||
|
{ "ANY", C_ANY } |
||||
|
}; |
||||
|
static const int nclasses = sizeof(classes) / sizeof(classes[0]); |
||||
|
|
||||
|
static const struct nv types[] = { |
||||
|
{ "A", T_A }, |
||||
|
{ "NS", T_NS }, |
||||
|
{ "MD", T_MD }, |
||||
|
{ "MF", T_MF }, |
||||
|
{ "CNAME", T_CNAME }, |
||||
|
{ "SOA", T_SOA }, |
||||
|
{ "MB", T_MB }, |
||||
|
{ "MG", T_MG }, |
||||
|
{ "MR", T_MR }, |
||||
|
{ "NULL", T_NULL }, |
||||
|
{ "WKS", T_WKS }, |
||||
|
{ "PTR", T_PTR }, |
||||
|
{ "HINFO", T_HINFO }, |
||||
|
{ "MINFO", T_MINFO }, |
||||
|
{ "MX", T_MX }, |
||||
|
{ "TXT", T_TXT }, |
||||
|
{ "RP", T_RP }, |
||||
|
{ "AFSDB", T_AFSDB }, |
||||
|
{ "X25", T_X25 }, |
||||
|
{ "ISDN", T_ISDN }, |
||||
|
{ "RT", T_RT }, |
||||
|
{ "NSAP", T_NSAP }, |
||||
|
{ "NSAP_PTR", T_NSAP_PTR }, |
||||
|
{ "SIG", T_SIG }, |
||||
|
{ "KEY", T_KEY }, |
||||
|
{ "PX", T_PX }, |
||||
|
{ "GPOS", T_GPOS }, |
||||
|
{ "AAAA", T_AAAA }, |
||||
|
{ "LOC", T_LOC }, |
||||
|
{ "SRV", T_SRV }, |
||||
|
{ "AXFR", T_AXFR }, |
||||
|
{ "MAILB", T_MAILB }, |
||||
|
{ "MAILA", T_MAILA }, |
||||
|
{ "NAPTR", T_NAPTR }, |
||||
|
{ "ANY", T_ANY } |
||||
|
}; |
||||
|
static const int ntypes = sizeof(types) / sizeof(types[0]); |
||||
|
|
||||
|
static const char *opcodes[] = { |
||||
|
"QUERY", "IQUERY", "STATUS", "(reserved)", "NOTIFY", |
||||
|
"(unknown)", "(unknown)", "(unknown)", "(unknown)", |
||||
|
"UPDATEA", "UPDATED", "UPDATEDA", "UPDATEM", "UPDATEMA", |
||||
|
"ZONEINIT", "ZONEREF" |
||||
|
}; |
||||
|
|
||||
|
static const char *rcodes[] = { |
||||
|
"NOERROR", "FORMERR", "SERVFAIL", "NXDOMAIN", "NOTIMP", "REFUSED", |
||||
|
"(unknown)", "(unknown)", "(unknown)", "(unknown)", "(unknown)", |
||||
|
"(unknown)", "(unknown)", "(unknown)", "(unknown)", "NOCHANGE" |
||||
|
}; |
||||
|
|
||||
|
static void callback(void *arg, int status, int timeouts, |
||||
|
unsigned char *abuf, int alen); |
||||
|
static const unsigned char *display_question(const unsigned char *aptr, |
||||
|
const unsigned char *abuf, |
||||
|
int alen); |
||||
|
static const unsigned char *display_rr(const unsigned char *aptr, |
||||
|
const unsigned char *abuf, int alen); |
||||
|
static const char *type_name(int type); |
||||
|
static const char *class_name(int dnsclass); |
||||
|
static void usage(void); |
||||
|
static void destroy_addr_list(struct ares_addr_node *head); |
||||
|
static void append_addr_list(struct ares_addr_node **head, |
||||
|
struct ares_addr_node *node); |
||||
|
|
||||
|
int main(int argc, char **argv) |
||||
|
{ |
||||
|
ares_channel channel; |
||||
|
int c, i, optmask = ARES_OPT_FLAGS, dnsclass = C_IN, type = T_A; |
||||
|
int status, nfds, count; |
||||
|
struct ares_options options; |
||||
|
struct hostent *hostent; |
||||
|
fd_set read_fds, write_fds; |
||||
|
struct timeval *tvp, tv; |
||||
|
struct ares_addr_node *srvr, *servers = NULL; |
||||
|
|
||||
|
#ifdef USE_WINSOCK |
||||
|
WORD wVersionRequested = MAKEWORD(USE_WINSOCK,USE_WINSOCK); |
||||
|
WSADATA wsaData; |
||||
|
WSAStartup(wVersionRequested, &wsaData); |
||||
|
#endif |
||||
|
|
||||
|
status = ares_library_init(ARES_LIB_INIT_ALL); |
||||
|
if (status != ARES_SUCCESS) |
||||
|
{ |
||||
|
fprintf(stderr, "ares_library_init: %s\n", ares_strerror(status)); |
||||
|
return 1; |
||||
|
} |
||||
|
|
||||
|
options.flags = ARES_FLAG_NOCHECKRESP; |
||||
|
options.servers = NULL; |
||||
|
options.nservers = 0; |
||||
|
while ((c = ares_getopt(argc, argv, "df:s:c:t:T:U:")) != -1) |
||||
|
{ |
||||
|
switch (c) |
||||
|
{ |
||||
|
case 'd': |
||||
|
#ifdef WATT32 |
||||
|
dbug_init(); |
||||
|
#endif |
||||
|
break; |
||||
|
|
||||
|
case 'f': |
||||
|
/* Add a flag. */ |
||||
|
for (i = 0; i < nflags; i++) |
||||
|
{ |
||||
|
if (strcmp(flags[i].name, optarg) == 0) |
||||
|
break; |
||||
|
} |
||||
|
if (i < nflags) |
||||
|
options.flags |= flags[i].value; |
||||
|
else |
||||
|
usage(); |
||||
|
break; |
||||
|
|
||||
|
case 's': |
||||
|
/* User-specified name servers override default ones. */ |
||||
|
srvr = malloc(sizeof(struct ares_addr_node)); |
||||
|
if (!srvr) |
||||
|
{ |
||||
|
fprintf(stderr, "Out of memory!\n"); |
||||
|
destroy_addr_list(servers); |
||||
|
return 1; |
||||
|
} |
||||
|
append_addr_list(&servers, srvr); |
||||
|
if (ares_inet_pton(AF_INET, optarg, &srvr->addr.addr4) > 0) |
||||
|
srvr->family = AF_INET; |
||||
|
else if (ares_inet_pton(AF_INET6, optarg, &srvr->addr.addr6) > 0) |
||||
|
srvr->family = AF_INET6; |
||||
|
else |
||||
|
{ |
||||
|
hostent = gethostbyname(optarg); |
||||
|
if (!hostent) |
||||
|
{ |
||||
|
fprintf(stderr, "adig: server %s not found.\n", optarg); |
||||
|
destroy_addr_list(servers); |
||||
|
return 1; |
||||
|
} |
||||
|
switch (hostent->h_addrtype) |
||||
|
{ |
||||
|
case AF_INET: |
||||
|
srvr->family = AF_INET; |
||||
|
memcpy(&srvr->addr.addr4, hostent->h_addr, |
||||
|
sizeof(srvr->addr.addr4)); |
||||
|
break; |
||||
|
case AF_INET6: |
||||
|
srvr->family = AF_INET6; |
||||
|
memcpy(&srvr->addr.addr6, hostent->h_addr, |
||||
|
sizeof(srvr->addr.addr6)); |
||||
|
break; |
||||
|
default: |
||||
|
fprintf(stderr, |
||||
|
"adig: server %s unsupported address family.\n", optarg); |
||||
|
destroy_addr_list(servers); |
||||
|
return 1; |
||||
|
} |
||||
|
} |
||||
|
/* Notice that calling ares_init_options() without servers in the
|
||||
|
* options struct and with ARES_OPT_SERVERS set simultaneously in |
||||
|
* the options mask, results in an initialization with no servers. |
||||
|
* When alternative name servers have been specified these are set |
||||
|
* later calling ares_set_servers() overriding any existing server |
||||
|
* configuration. To prevent initial configuration with default |
||||
|
* servers that will be discarded later, ARES_OPT_SERVERS is set. |
||||
|
* If this flag is not set here the result shall be the same but |
||||
|
* ares_init_options() will do needless work. */ |
||||
|
optmask |= ARES_OPT_SERVERS; |
||||
|
break; |
||||
|
|
||||
|
case 'c': |
||||
|
/* Set the query class. */ |
||||
|
for (i = 0; i < nclasses; i++) |
||||
|
{ |
||||
|
if (strcasecmp(classes[i].name, optarg) == 0) |
||||
|
break; |
||||
|
} |
||||
|
if (i < nclasses) |
||||
|
dnsclass = classes[i].value; |
||||
|
else |
||||
|
usage(); |
||||
|
break; |
||||
|
|
||||
|
case 't': |
||||
|
/* Set the query type. */ |
||||
|
for (i = 0; i < ntypes; i++) |
||||
|
{ |
||||
|
if (strcasecmp(types[i].name, optarg) == 0) |
||||
|
break; |
||||
|
} |
||||
|
if (i < ntypes) |
||||
|
type = types[i].value; |
||||
|
else |
||||
|
usage(); |
||||
|
break; |
||||
|
|
||||
|
case 'T': |
||||
|
/* Set the TCP port number. */ |
||||
|
if (!ISDIGIT(*optarg)) |
||||
|
usage(); |
||||
|
options.tcp_port = (unsigned short)strtol(optarg, NULL, 0); |
||||
|
optmask |= ARES_OPT_TCP_PORT; |
||||
|
break; |
||||
|
|
||||
|
case 'U': |
||||
|
/* Set the UDP port number. */ |
||||
|
if (!ISDIGIT(*optarg)) |
||||
|
usage(); |
||||
|
options.udp_port = (unsigned short)strtol(optarg, NULL, 0); |
||||
|
optmask |= ARES_OPT_UDP_PORT; |
||||
|
break; |
||||
|
} |
||||
|
} |
||||
|
argc -= optind; |
||||
|
argv += optind; |
||||
|
if (argc == 0) |
||||
|
usage(); |
||||
|
|
||||
|
status = ares_init_options(&channel, &options, optmask); |
||||
|
|
||||
|
if (status != ARES_SUCCESS) |
||||
|
{ |
||||
|
fprintf(stderr, "ares_init_options: %s\n", |
||||
|
ares_strerror(status)); |
||||
|
return 1; |
||||
|
} |
||||
|
|
||||
|
if(servers) |
||||
|
{ |
||||
|
status = ares_set_servers(channel, servers); |
||||
|
destroy_addr_list(servers); |
||||
|
if (status != ARES_SUCCESS) |
||||
|
{ |
||||
|
fprintf(stderr, "ares_init_options: %s\n", |
||||
|
ares_strerror(status)); |
||||
|
return 1; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/* Initiate the queries, one per command-line argument. If there is
|
||||
|
* only one query to do, supply NULL as the callback argument; |
||||
|
* otherwise, supply the query name as an argument so we can |
||||
|
* distinguish responses for the user when printing them out. |
||||
|
*/ |
||||
|
if (argc == 1) |
||||
|
ares_query(channel, *argv, dnsclass, type, callback, (char *) NULL); |
||||
|
else |
||||
|
{ |
||||
|
for (; *argv; argv++) |
||||
|
ares_query(channel, *argv, dnsclass, type, callback, *argv); |
||||
|
} |
||||
|
|
||||
|
/* Wait for all queries to complete. */ |
||||
|
for (;;) |
||||
|
{ |
||||
|
FD_ZERO(&read_fds); |
||||
|
FD_ZERO(&write_fds); |
||||
|
nfds = ares_fds(channel, &read_fds, &write_fds); |
||||
|
if (nfds == 0) |
||||
|
break; |
||||
|
tvp = ares_timeout(channel, NULL, &tv); |
||||
|
count = select(nfds, &read_fds, &write_fds, NULL, tvp); |
||||
|
if (count < 0 && SOCKERRNO != EINVAL) |
||||
|
{ |
||||
|
perror("select"); |
||||
|
return 1; |
||||
|
} |
||||
|
ares_process(channel, &read_fds, &write_fds); |
||||
|
} |
||||
|
|
||||
|
ares_destroy(channel); |
||||
|
|
||||
|
ares_library_cleanup(); |
||||
|
|
||||
|
#ifdef USE_WINSOCK |
||||
|
WSACleanup(); |
||||
|
#endif |
||||
|
|
||||
|
return 0; |
||||
|
} |
||||
|
|
||||
|
static void callback(void *arg, int status, int timeouts, |
||||
|
unsigned char *abuf, int alen) |
||||
|
{ |
||||
|
char *name = (char *) arg; |
||||
|
int id, qr, opcode, aa, tc, rd, ra, rcode; |
||||
|
unsigned int qdcount, ancount, nscount, arcount, i; |
||||
|
const unsigned char *aptr; |
||||
|
|
||||
|
(void) timeouts; |
||||
|
|
||||
|
/* Display the query name if given. */ |
||||
|
if (name) |
||||
|
printf("Answer for query %s:\n", name); |
||||
|
|
||||
|
/* Display an error message if there was an error, but only stop if
|
||||
|
* we actually didn't get an answer buffer. |
||||
|
*/ |
||||
|
if (status != ARES_SUCCESS) |
||||
|
{ |
||||
|
printf("%s\n", ares_strerror(status)); |
||||
|
if (!abuf) |
||||
|
return; |
||||
|
} |
||||
|
|
||||
|
/* Won't happen, but check anyway, for safety. */ |
||||
|
if (alen < HFIXEDSZ) |
||||
|
return; |
||||
|
|
||||
|
/* Parse the answer header. */ |
||||
|
id = DNS_HEADER_QID(abuf); |
||||
|
qr = DNS_HEADER_QR(abuf); |
||||
|
opcode = DNS_HEADER_OPCODE(abuf); |
||||
|
aa = DNS_HEADER_AA(abuf); |
||||
|
tc = DNS_HEADER_TC(abuf); |
||||
|
rd = DNS_HEADER_RD(abuf); |
||||
|
ra = DNS_HEADER_RA(abuf); |
||||
|
rcode = DNS_HEADER_RCODE(abuf); |
||||
|
qdcount = DNS_HEADER_QDCOUNT(abuf); |
||||
|
ancount = DNS_HEADER_ANCOUNT(abuf); |
||||
|
nscount = DNS_HEADER_NSCOUNT(abuf); |
||||
|
arcount = DNS_HEADER_ARCOUNT(abuf); |
||||
|
|
||||
|
/* Display the answer header. */ |
||||
|
printf("id: %d\n", id); |
||||
|
printf("flags: %s%s%s%s%s\n", |
||||
|
qr ? "qr " : "", |
||||
|
aa ? "aa " : "", |
||||
|
tc ? "tc " : "", |
||||
|
rd ? "rd " : "", |
||||
|
ra ? "ra " : ""); |
||||
|
printf("opcode: %s\n", opcodes[opcode]); |
||||
|
printf("rcode: %s\n", rcodes[rcode]); |
||||
|
|
||||
|
/* Display the questions. */ |
||||
|
printf("Questions:\n"); |
||||
|
aptr = abuf + HFIXEDSZ; |
||||
|
for (i = 0; i < qdcount; i++) |
||||
|
{ |
||||
|
aptr = display_question(aptr, abuf, alen); |
||||
|
if (aptr == NULL) |
||||
|
return; |
||||
|
} |
||||
|
|
||||
|
/* Display the answers. */ |
||||
|
printf("Answers:\n"); |
||||
|
for (i = 0; i < ancount; i++) |
||||
|
{ |
||||
|
aptr = display_rr(aptr, abuf, alen); |
||||
|
if (aptr == NULL) |
||||
|
return; |
||||
|
} |
||||
|
|
||||
|
/* Display the NS records. */ |
||||
|
printf("NS records:\n"); |
||||
|
for (i = 0; i < nscount; i++) |
||||
|
{ |
||||
|
aptr = display_rr(aptr, abuf, alen); |
||||
|
if (aptr == NULL) |
||||
|
return; |
||||
|
} |
||||
|
|
||||
|
/* Display the additional records. */ |
||||
|
printf("Additional records:\n"); |
||||
|
for (i = 0; i < arcount; i++) |
||||
|
{ |
||||
|
aptr = display_rr(aptr, abuf, alen); |
||||
|
if (aptr == NULL) |
||||
|
return; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
static const unsigned char *display_question(const unsigned char *aptr, |
||||
|
const unsigned char *abuf, |
||||
|
int alen) |
||||
|
{ |
||||
|
char *name; |
||||
|
int type, dnsclass, status; |
||||
|
long len; |
||||
|
|
||||
|
/* Parse the question name. */ |
||||
|
status = ares_expand_name(aptr, abuf, alen, &name, &len); |
||||
|
if (status != ARES_SUCCESS) |
||||
|
return NULL; |
||||
|
aptr += len; |
||||
|
|
||||
|
/* Make sure there's enough data after the name for the fixed part
|
||||
|
* of the question. |
||||
|
*/ |
||||
|
if (aptr + QFIXEDSZ > abuf + alen) |
||||
|
{ |
||||
|
ares_free_string(name); |
||||
|
return NULL; |
||||
|
} |
||||
|
|
||||
|
/* Parse the question type and class. */ |
||||
|
type = DNS_QUESTION_TYPE(aptr); |
||||
|
dnsclass = DNS_QUESTION_CLASS(aptr); |
||||
|
aptr += QFIXEDSZ; |
||||
|
|
||||
|
/* Display the question, in a format sort of similar to how we will
|
||||
|
* display RRs. |
||||
|
*/ |
||||
|
printf("\t%-15s.\t", name); |
||||
|
if (dnsclass != C_IN) |
||||
|
printf("\t%s", class_name(dnsclass)); |
||||
|
printf("\t%s\n", type_name(type)); |
||||
|
ares_free_string(name); |
||||
|
return aptr; |
||||
|
} |
||||
|
|
||||
|
static const unsigned char *display_rr(const unsigned char *aptr, |
||||
|
const unsigned char *abuf, int alen) |
||||
|
{ |
||||
|
const unsigned char *p; |
||||
|
int type, dnsclass, ttl, dlen, status; |
||||
|
long len; |
||||
|
char addr[46]; |
||||
|
union { |
||||
|
unsigned char * as_uchar; |
||||
|
char * as_char; |
||||
|
} name; |
||||
|
|
||||
|
/* Parse the RR name. */ |
||||
|
status = ares_expand_name(aptr, abuf, alen, &name.as_char, &len); |
||||
|
if (status != ARES_SUCCESS) |
||||
|
return NULL; |
||||
|
aptr += len; |
||||
|
|
||||
|
/* Make sure there is enough data after the RR name for the fixed
|
||||
|
* part of the RR. |
||||
|
*/ |
||||
|
if (aptr + RRFIXEDSZ > abuf + alen) |
||||
|
{ |
||||
|
ares_free_string(name.as_char); |
||||
|
return NULL; |
||||
|
} |
||||
|
|
||||
|
/* Parse the fixed part of the RR, and advance to the RR data
|
||||
|
* field. */ |
||||
|
type = DNS_RR_TYPE(aptr); |
||||
|
dnsclass = DNS_RR_CLASS(aptr); |
||||
|
ttl = DNS_RR_TTL(aptr); |
||||
|
dlen = DNS_RR_LEN(aptr); |
||||
|
aptr += RRFIXEDSZ; |
||||
|
if (aptr + dlen > abuf + alen) |
||||
|
{ |
||||
|
ares_free_string(name.as_char); |
||||
|
return NULL; |
||||
|
} |
||||
|
|
||||
|
/* Display the RR name, class, and type. */ |
||||
|
printf("\t%-15s.\t%d", name.as_char, ttl); |
||||
|
if (dnsclass != C_IN) |
||||
|
printf("\t%s", class_name(dnsclass)); |
||||
|
printf("\t%s", type_name(type)); |
||||
|
ares_free_string(name.as_char); |
||||
|
|
||||
|
/* Display the RR data. Don't touch aptr. */ |
||||
|
switch (type) |
||||
|
{ |
||||
|
case T_CNAME: |
||||
|
case T_MB: |
||||
|
case T_MD: |
||||
|
case T_MF: |
||||
|
case T_MG: |
||||
|
case T_MR: |
||||
|
case T_NS: |
||||
|
case T_PTR: |
||||
|
/* For these types, the RR data is just a domain name. */ |
||||
|
status = ares_expand_name(aptr, abuf, alen, &name.as_char, &len); |
||||
|
if (status != ARES_SUCCESS) |
||||
|
return NULL; |
||||
|
printf("\t%s.", name.as_char); |
||||
|
ares_free_string(name.as_char); |
||||
|
break; |
||||
|
|
||||
|
case T_HINFO: |
||||
|
/* The RR data is two length-counted character strings. */ |
||||
|
p = aptr; |
||||
|
len = *p; |
||||
|
if (p + len + 1 > aptr + dlen) |
||||
|
return NULL; |
||||
|
status = ares_expand_string(p, abuf, alen, &name.as_uchar, &len); |
||||
|
if (status != ARES_SUCCESS) |
||||
|
return NULL; |
||||
|
printf("\t%s", name.as_char); |
||||
|
ares_free_string(name.as_char); |
||||
|
p += len; |
||||
|
len = *p; |
||||
|
if (p + len + 1 > aptr + dlen) |
||||
|
return NULL; |
||||
|
status = ares_expand_string(p, abuf, alen, &name.as_uchar, &len); |
||||
|
if (status != ARES_SUCCESS) |
||||
|
return NULL; |
||||
|
printf("\t%s", name.as_char); |
||||
|
ares_free_string(name.as_char); |
||||
|
break; |
||||
|
|
||||
|
case T_MINFO: |
||||
|
/* The RR data is two domain names. */ |
||||
|
p = aptr; |
||||
|
status = ares_expand_name(p, abuf, alen, &name.as_char, &len); |
||||
|
if (status != ARES_SUCCESS) |
||||
|
return NULL; |
||||
|
printf("\t%s.", name.as_char); |
||||
|
ares_free_string(name.as_char); |
||||
|
p += len; |
||||
|
status = ares_expand_name(p, abuf, alen, &name.as_char, &len); |
||||
|
if (status != ARES_SUCCESS) |
||||
|
return NULL; |
||||
|
printf("\t%s.", name.as_char); |
||||
|
ares_free_string(name.as_char); |
||||
|
break; |
||||
|
|
||||
|
case T_MX: |
||||
|
/* The RR data is two bytes giving a preference ordering, and
|
||||
|
* then a domain name. |
||||
|
*/ |
||||
|
if (dlen < 2) |
||||
|
return NULL; |
||||
|
printf("\t%d", DNS__16BIT(aptr)); |
||||
|
status = ares_expand_name(aptr + 2, abuf, alen, &name.as_char, &len); |
||||
|
if (status != ARES_SUCCESS) |
||||
|
return NULL; |
||||
|
printf("\t%s.", name.as_char); |
||||
|
ares_free_string(name.as_char); |
||||
|
break; |
||||
|
|
||||
|
case T_SOA: |
||||
|
/* The RR data is two domain names and then five four-byte
|
||||
|
* numbers giving the serial number and some timeouts. |
||||
|
*/ |
||||
|
p = aptr; |
||||
|
status = ares_expand_name(p, abuf, alen, &name.as_char, &len); |
||||
|
if (status != ARES_SUCCESS) |
||||
|
return NULL; |
||||
|
printf("\t%s.\n", name.as_char); |
||||
|
ares_free_string(name.as_char); |
||||
|
p += len; |
||||
|
status = ares_expand_name(p, abuf, alen, &name.as_char, &len); |
||||
|
if (status != ARES_SUCCESS) |
||||
|
return NULL; |
||||
|
printf("\t\t\t\t\t\t%s.\n", name.as_char); |
||||
|
ares_free_string(name.as_char); |
||||
|
p += len; |
||||
|
if (p + 20 > aptr + dlen) |
||||
|
return NULL; |
||||
|
printf("\t\t\t\t\t\t( %lu %lu %lu %lu %lu )", |
||||
|
(unsigned long)DNS__32BIT(p), (unsigned long)DNS__32BIT(p+4), |
||||
|
(unsigned long)DNS__32BIT(p+8), (unsigned long)DNS__32BIT(p+12), |
||||
|
(unsigned long)DNS__32BIT(p+16)); |
||||
|
break; |
||||
|
|
||||
|
case T_TXT: |
||||
|
/* The RR data is one or more length-counted character
|
||||
|
* strings. */ |
||||
|
p = aptr; |
||||
|
while (p < aptr + dlen) |
||||
|
{ |
||||
|
len = *p; |
||||
|
if (p + len + 1 > aptr + dlen) |
||||
|
return NULL; |
||||
|
status = ares_expand_string(p, abuf, alen, &name.as_uchar, &len); |
||||
|
if (status != ARES_SUCCESS) |
||||
|
return NULL; |
||||
|
printf("\t%s", name.as_char); |
||||
|
ares_free_string(name.as_char); |
||||
|
p += len; |
||||
|
} |
||||
|
break; |
||||
|
|
||||
|
case T_A: |
||||
|
/* The RR data is a four-byte Internet address. */ |
||||
|
if (dlen != 4) |
||||
|
return NULL; |
||||
|
printf("\t%s", ares_inet_ntop(AF_INET,aptr,addr,sizeof(addr))); |
||||
|
break; |
||||
|
|
||||
|
case T_AAAA: |
||||
|
/* The RR data is a 16-byte IPv6 address. */ |
||||
|
if (dlen != 16) |
||||
|
return NULL; |
||||
|
printf("\t%s", ares_inet_ntop(AF_INET6,aptr,addr,sizeof(addr))); |
||||
|
break; |
||||
|
|
||||
|
case T_WKS: |
||||
|
/* Not implemented yet */ |
||||
|
break; |
||||
|
|
||||
|
case T_SRV: |
||||
|
/* The RR data is three two-byte numbers representing the
|
||||
|
* priority, weight, and port, followed by a domain name. |
||||
|
*/ |
||||
|
|
||||
|
printf("\t%d", DNS__16BIT(aptr)); |
||||
|
printf(" %d", DNS__16BIT(aptr + 2)); |
||||
|
printf(" %d", DNS__16BIT(aptr + 4)); |
||||
|
|
||||
|
status = ares_expand_name(aptr + 6, abuf, alen, &name.as_char, &len); |
||||
|
if (status != ARES_SUCCESS) |
||||
|
return NULL; |
||||
|
printf("\t%s.", name.as_char); |
||||
|
ares_free_string(name.as_char); |
||||
|
break; |
||||
|
|
||||
|
case T_NAPTR: |
||||
|
|
||||
|
printf("\t%d", DNS__16BIT(aptr)); /* order */ |
||||
|
printf(" %d\n", DNS__16BIT(aptr + 2)); /* preference */ |
||||
|
|
||||
|
p = aptr + 4; |
||||
|
status = ares_expand_string(p, abuf, alen, &name.as_uchar, &len); |
||||
|
if (status != ARES_SUCCESS) |
||||
|
return NULL; |
||||
|
printf("\t\t\t\t\t\t%s\n", name.as_char); |
||||
|
ares_free_string(name.as_char); |
||||
|
p += len; |
||||
|
|
||||
|
status = ares_expand_string(p, abuf, alen, &name.as_uchar, &len); |
||||
|
if (status != ARES_SUCCESS) |
||||
|
return NULL; |
||||
|
printf("\t\t\t\t\t\t%s\n", name.as_char); |
||||
|
ares_free_string(name.as_char); |
||||
|
p += len; |
||||
|
|
||||
|
status = ares_expand_string(p, abuf, alen, &name.as_uchar, &len); |
||||
|
if (status != ARES_SUCCESS) |
||||
|
return NULL; |
||||
|
printf("\t\t\t\t\t\t%s\n", name.as_char); |
||||
|
ares_free_string(name.as_char); |
||||
|
p += len; |
||||
|
|
||||
|
status = ares_expand_name(p, abuf, alen, &name.as_char, &len); |
||||
|
if (status != ARES_SUCCESS) |
||||
|
return NULL; |
||||
|
printf("\t\t\t\t\t\t%s", name.as_char); |
||||
|
ares_free_string(name.as_char); |
||||
|
break; |
||||
|
|
||||
|
|
||||
|
default: |
||||
|
printf("\t[Unknown RR; cannot parse]"); |
||||
|
break; |
||||
|
} |
||||
|
printf("\n"); |
||||
|
|
||||
|
return aptr + dlen; |
||||
|
} |
||||
|
|
||||
|
static const char *type_name(int type) |
||||
|
{ |
||||
|
int i; |
||||
|
|
||||
|
for (i = 0; i < ntypes; i++) |
||||
|
{ |
||||
|
if (types[i].value == type) |
||||
|
return types[i].name; |
||||
|
} |
||||
|
return "(unknown)"; |
||||
|
} |
||||
|
|
||||
|
static const char *class_name(int dnsclass) |
||||
|
{ |
||||
|
int i; |
||||
|
|
||||
|
for (i = 0; i < nclasses; i++) |
||||
|
{ |
||||
|
if (classes[i].value == dnsclass) |
||||
|
return classes[i].name; |
||||
|
} |
||||
|
return "(unknown)"; |
||||
|
} |
||||
|
|
||||
|
static void usage(void) |
||||
|
{ |
||||
|
fprintf(stderr, "usage: adig [-f flag] [-s server] [-c class] " |
||||
|
"[-t type] [-p port] name ...\n"); |
||||
|
exit(1); |
||||
|
} |
||||
|
|
||||
|
static void destroy_addr_list(struct ares_addr_node *head) |
||||
|
{ |
||||
|
while(head) |
||||
|
{ |
||||
|
struct ares_addr_node *detached = head; |
||||
|
head = head->next; |
||||
|
free(detached); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
static void append_addr_list(struct ares_addr_node **head, |
||||
|
struct ares_addr_node *node) |
||||
|
{ |
||||
|
struct ares_addr_node *last; |
||||
|
node->next = NULL; |
||||
|
if(*head) |
||||
|
{ |
||||
|
last = *head; |
||||
|
while(last->next) |
||||
|
last = last->next; |
||||
|
last->next = node; |
||||
|
} |
||||
|
else |
||||
|
*head = node; |
||||
|
} |
@ -0,0 +1,201 @@ |
|||||
|
/* Copyright 1998 by the Massachusetts Institute of Technology.
|
||||
|
* |
||||
|
* |
||||
|
* Permission to use, copy, modify, and distribute this |
||||
|
* software and its documentation for any purpose and without |
||||
|
* fee is hereby granted, provided that the above copyright |
||||
|
* notice appear in all copies and that both that copyright |
||||
|
* notice and this permission notice appear in supporting |
||||
|
* documentation, and that the name of M.I.T. not be used in |
||||
|
* advertising or publicity pertaining to distribution of the |
||||
|
* software without specific, written prior permission. |
||||
|
* M.I.T. makes no representations about the suitability of |
||||
|
* this software for any purpose. It is provided "as is" |
||||
|
* without express or implied warranty. |
||||
|
*/ |
||||
|
|
||||
|
#include "ares_setup.h" |
||||
|
|
||||
|
#if !defined(WIN32) || defined(WATT32) |
||||
|
#ifdef HAVE_SYS_TIME_H |
||||
|
#include <sys/time.h> |
||||
|
#endif |
||||
|
#include <sys/socket.h> |
||||
|
#include <netinet/in.h> |
||||
|
#include <arpa/inet.h> |
||||
|
#include <netdb.h> |
||||
|
#ifdef HAVE_UNISTD_H |
||||
|
#include <unistd.h> |
||||
|
#endif |
||||
|
#endif |
||||
|
#ifdef HAVE_STRINGS_H |
||||
|
#include <strings.h> |
||||
|
#endif |
||||
|
|
||||
|
#include <stdio.h> |
||||
|
#include <stdlib.h> |
||||
|
#include <string.h> |
||||
|
|
||||
|
#include "ares.h" |
||||
|
#include "ares_dns.h" |
||||
|
#include "inet_ntop.h" |
||||
|
#include "inet_net_pton.h" |
||||
|
#include "ares_getopt.h" |
||||
|
#include "ares_ipv6.h" |
||||
|
|
||||
|
#ifndef HAVE_STRDUP |
||||
|
# include "ares_strdup.h" |
||||
|
# define strdup(ptr) ares_strdup(ptr) |
||||
|
#endif |
||||
|
|
||||
|
#ifndef HAVE_STRCASECMP |
||||
|
# include "ares_strcasecmp.h" |
||||
|
# define strcasecmp(p1,p2) ares_strcasecmp(p1,p2) |
||||
|
#endif |
||||
|
|
||||
|
#ifndef HAVE_STRNCASECMP |
||||
|
# include "ares_strcasecmp.h" |
||||
|
# define strncasecmp(p1,p2,n) ares_strncasecmp(p1,p2,n) |
||||
|
#endif |
||||
|
|
||||
|
static void callback(void *arg, int status, int timeouts, struct hostent *host); |
||||
|
static void usage(void); |
||||
|
|
||||
|
int main(int argc, char **argv) |
||||
|
{ |
||||
|
ares_channel channel; |
||||
|
int status, nfds, c, addr_family = AF_INET; |
||||
|
fd_set read_fds, write_fds; |
||||
|
struct timeval *tvp, tv; |
||||
|
struct in_addr addr4; |
||||
|
struct ares_in6_addr addr6; |
||||
|
|
||||
|
#ifdef USE_WINSOCK |
||||
|
WORD wVersionRequested = MAKEWORD(USE_WINSOCK,USE_WINSOCK); |
||||
|
WSADATA wsaData; |
||||
|
WSAStartup(wVersionRequested, &wsaData); |
||||
|
#endif |
||||
|
|
||||
|
status = ares_library_init(ARES_LIB_INIT_ALL); |
||||
|
if (status != ARES_SUCCESS) |
||||
|
{ |
||||
|
fprintf(stderr, "ares_library_init: %s\n", ares_strerror(status)); |
||||
|
return 1; |
||||
|
} |
||||
|
|
||||
|
while ((c = ares_getopt(argc,argv,"dt:h")) != -1) |
||||
|
{ |
||||
|
switch (c) |
||||
|
{ |
||||
|
case 'd': |
||||
|
#ifdef WATT32 |
||||
|
dbug_init(); |
||||
|
#endif |
||||
|
break; |
||||
|
case 't': |
||||
|
if (!strcasecmp(optarg,"a")) |
||||
|
addr_family = AF_INET; |
||||
|
else if (!strcasecmp(optarg,"aaaa")) |
||||
|
addr_family = AF_INET6; |
||||
|
else |
||||
|
usage(); |
||||
|
break; |
||||
|
case 'h': |
||||
|
default: |
||||
|
usage(); |
||||
|
break; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
argc -= optind; |
||||
|
argv += optind; |
||||
|
if (argc < 1) |
||||
|
usage(); |
||||
|
|
||||
|
status = ares_init(&channel); |
||||
|
if (status != ARES_SUCCESS) |
||||
|
{ |
||||
|
fprintf(stderr, "ares_init: %s\n", ares_strerror(status)); |
||||
|
return 1; |
||||
|
} |
||||
|
|
||||
|
/* Initiate the queries, one per command-line argument. */ |
||||
|
for ( ; *argv; argv++) |
||||
|
{ |
||||
|
if (ares_inet_pton(AF_INET, *argv, &addr4) == 1) |
||||
|
{ |
||||
|
ares_gethostbyaddr(channel, &addr4, sizeof(addr4), AF_INET, callback, |
||||
|
*argv); |
||||
|
} |
||||
|
else if (ares_inet_pton(AF_INET6, *argv, &addr6) == 1) |
||||
|
{ |
||||
|
ares_gethostbyaddr(channel, &addr6, sizeof(addr6), AF_INET6, callback, |
||||
|
*argv); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
ares_gethostbyname(channel, *argv, addr_family, callback, *argv); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/* Wait for all queries to complete. */ |
||||
|
for (;;) |
||||
|
{ |
||||
|
FD_ZERO(&read_fds); |
||||
|
FD_ZERO(&write_fds); |
||||
|
nfds = ares_fds(channel, &read_fds, &write_fds); |
||||
|
if (nfds == 0) |
||||
|
break; |
||||
|
tvp = ares_timeout(channel, NULL, &tv); |
||||
|
select(nfds, &read_fds, &write_fds, NULL, tvp); |
||||
|
ares_process(channel, &read_fds, &write_fds); |
||||
|
} |
||||
|
|
||||
|
ares_destroy(channel); |
||||
|
|
||||
|
ares_library_cleanup(); |
||||
|
|
||||
|
#ifdef USE_WINSOCK |
||||
|
WSACleanup(); |
||||
|
#endif |
||||
|
|
||||
|
return 0; |
||||
|
} |
||||
|
|
||||
|
static void callback(void *arg, int status, int timeouts, struct hostent *host) |
||||
|
{ |
||||
|
char **p; |
||||
|
|
||||
|
(void)timeouts; |
||||
|
|
||||
|
if (status != ARES_SUCCESS) |
||||
|
{ |
||||
|
fprintf(stderr, "%s: %s\n", (char *) arg, ares_strerror(status)); |
||||
|
return; |
||||
|
} |
||||
|
|
||||
|
for (p = host->h_addr_list; *p; p++) |
||||
|
{ |
||||
|
char addr_buf[46] = "??"; |
||||
|
|
||||
|
ares_inet_ntop(host->h_addrtype, *p, addr_buf, sizeof(addr_buf)); |
||||
|
printf("%-32s\t%s", host->h_name, addr_buf); |
||||
|
#if 0 |
||||
|
if (host->h_aliases[0]) |
||||
|
{ |
||||
|
int i; |
||||
|
|
||||
|
printf (", Aliases: "); |
||||
|
for (i = 0; host->h_aliases[i]; i++) |
||||
|
printf("%s ", host->h_aliases[i]); |
||||
|
} |
||||
|
#endif |
||||
|
puts(""); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
static void usage(void) |
||||
|
{ |
||||
|
fprintf(stderr, "usage: ahost [-t {a|aaaa}] {host|addr} ...\n"); |
||||
|
exit(1); |
||||
|
} |
@ -0,0 +1,252 @@ |
|||||
|
#ifndef __CARES_BUILD_H |
||||
|
#define __CARES_BUILD_H |
||||
|
|
||||
|
|
||||
|
/* Copyright (C) 2009 - 2010 by Daniel Stenberg et al
|
||||
|
* |
||||
|
* Permission to use, copy, modify, and distribute this software and its |
||||
|
* documentation for any purpose and without fee is hereby granted, provided |
||||
|
* that the above copyright notice appear in all copies and that both that |
||||
|
* copyright notice and this permission notice appear in supporting |
||||
|
* documentation, and that the name of M.I.T. not be used in advertising or |
||||
|
* publicity pertaining to distribution of the software without specific, |
||||
|
* written prior permission. M.I.T. makes no representations about the |
||||
|
* suitability of this software for any purpose. It is provided "as is" |
||||
|
* without express or implied warranty. |
||||
|
*/ |
||||
|
|
||||
|
/* ================================================================ */ |
||||
|
/* NOTES FOR CONFIGURE CAPABLE SYSTEMS */ |
||||
|
/* ================================================================ */ |
||||
|
|
||||
|
/*
|
||||
|
* NOTE 1: |
||||
|
* ------- |
||||
|
* |
||||
|
* See file ares_build.h.in, run configure, and forget that this file |
||||
|
* exists it is only used for non-configure systems. |
||||
|
* But you can keep reading if you want ;-) |
||||
|
* |
||||
|
*/ |
||||
|
|
||||
|
/* ================================================================ */ |
||||
|
/* NOTES FOR NON-CONFIGURE SYSTEMS */ |
||||
|
/* ================================================================ */ |
||||
|
|
||||
|
/*
|
||||
|
* NOTE 1: |
||||
|
* ------- |
||||
|
* |
||||
|
* Nothing in this file is intended to be modified or adjusted by the |
||||
|
* c-ares library user nor by the c-ares library builder. |
||||
|
* |
||||
|
* If you think that something actually needs to be changed, adjusted |
||||
|
* or fixed in this file, then, report it on the c-ares development |
||||
|
* mailing list: http://cool.haxx.se/mailman/listinfo/c-ares/
|
||||
|
* |
||||
|
* Try to keep one section per platform, compiler and architecture, |
||||
|
* otherwise, if an existing section is reused for a different one and |
||||
|
* later on the original is adjusted, probably the piggybacking one can |
||||
|
* be adversely changed. |
||||
|
* |
||||
|
* In order to differentiate between platforms/compilers/architectures |
||||
|
* use only compiler built in predefined preprocessor symbols. |
||||
|
* |
||||
|
* This header file shall only export symbols which are 'cares' or 'CARES' |
||||
|
* prefixed, otherwise public name space would be polluted. |
||||
|
* |
||||
|
* NOTE 2: |
||||
|
* ------- |
||||
|
* |
||||
|
* Right now you might be staring at file ares_build.h.dist or ares_build.h, |
||||
|
* this is due to the following reason: file ares_build.h.dist is renamed |
||||
|
* to ares_build.h when the c-ares source code distribution archive file is |
||||
|
* created. |
||||
|
* |
||||
|
* File ares_build.h.dist is not included in the distribution archive. |
||||
|
* File ares_build.h is not present in the git tree. |
||||
|
* |
||||
|
* The distributed ares_build.h file is only intended to be used on systems |
||||
|
* which can not run the also distributed configure script. |
||||
|
* |
||||
|
* On systems capable of running the configure script, the configure process |
||||
|
* will overwrite the distributed ares_build.h file with one that is suitable |
||||
|
* and specific to the library being configured and built, which is generated |
||||
|
* from the ares_build.h.in template file. |
||||
|
* |
||||
|
* If you check out from git on a non-configure platform, you must run the |
||||
|
* appropriate buildconf* script to set up ares_build.h and other local files. |
||||
|
* |
||||
|
*/ |
||||
|
|
||||
|
/* ================================================================ */ |
||||
|
/* DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE */ |
||||
|
/* ================================================================ */ |
||||
|
|
||||
|
#ifdef CARES_SIZEOF_LONG |
||||
|
# error "CARES_SIZEOF_LONG shall not be defined except in ares_build.h" |
||||
|
Error Compilation_aborted_CARES_SIZEOF_LONG_already_defined |
||||
|
#endif |
||||
|
|
||||
|
#ifdef CARES_TYPEOF_ARES_SOCKLEN_T |
||||
|
# error "CARES_TYPEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h" |
||||
|
Error Compilation_aborted_CARES_TYPEOF_ARES_SOCKLEN_T_already_defined |
||||
|
#endif |
||||
|
|
||||
|
#ifdef CARES_SIZEOF_ARES_SOCKLEN_T |
||||
|
# error "CARES_SIZEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h" |
||||
|
Error Compilation_aborted_CARES_SIZEOF_ARES_SOCKLEN_T_already_defined |
||||
|
#endif |
||||
|
|
||||
|
/* ================================================================ */ |
||||
|
/* EXTERNAL INTERFACE SETTINGS FOR NON-CONFIGURE SYSTEMS ONLY */ |
||||
|
/* ================================================================ */ |
||||
|
|
||||
|
#if defined(__DJGPP__) || defined(__GO32__) |
||||
|
# define CARES_SIZEOF_LONG 4 |
||||
|
# define CARES_TYPEOF_ARES_SOCKLEN_T int |
||||
|
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
||||
|
|
||||
|
#elif defined(__SALFORDC__) |
||||
|
# define CARES_SIZEOF_LONG 4 |
||||
|
# define CARES_TYPEOF_ARES_SOCKLEN_T int |
||||
|
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
||||
|
|
||||
|
#elif defined(__BORLANDC__) |
||||
|
# define CARES_SIZEOF_LONG 4 |
||||
|
# define CARES_TYPEOF_ARES_SOCKLEN_T int |
||||
|
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
||||
|
|
||||
|
#elif defined(__TURBOC__) |
||||
|
# define CARES_SIZEOF_LONG 4 |
||||
|
# define CARES_TYPEOF_ARES_SOCKLEN_T int |
||||
|
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
||||
|
|
||||
|
#elif defined(__WATCOMC__) |
||||
|
# define CARES_SIZEOF_LONG 4 |
||||
|
# define CARES_TYPEOF_ARES_SOCKLEN_T int |
||||
|
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
||||
|
|
||||
|
#elif defined(__POCC__) |
||||
|
# define CARES_SIZEOF_LONG 4 |
||||
|
# define CARES_TYPEOF_ARES_SOCKLEN_T int |
||||
|
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
||||
|
|
||||
|
#elif defined(__LCC__) |
||||
|
# define CARES_SIZEOF_LONG 4 |
||||
|
# define CARES_TYPEOF_ARES_SOCKLEN_T int |
||||
|
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
||||
|
|
||||
|
#elif defined(__SYMBIAN32__) |
||||
|
# define CARES_SIZEOF_LONG 4 |
||||
|
# define CARES_TYPEOF_ARES_SOCKLEN_T unsigned int |
||||
|
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
||||
|
|
||||
|
#elif defined(__MWERKS__) |
||||
|
# define CARES_SIZEOF_LONG 4 |
||||
|
# define CARES_TYPEOF_ARES_SOCKLEN_T int |
||||
|
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
||||
|
|
||||
|
#elif defined(_WIN32_WCE) |
||||
|
# define CARES_SIZEOF_LONG 4 |
||||
|
# define CARES_TYPEOF_ARES_SOCKLEN_T int |
||||
|
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
||||
|
|
||||
|
#elif defined(__MINGW32__) |
||||
|
# define CARES_SIZEOF_LONG 4 |
||||
|
# define CARES_TYPEOF_ARES_SOCKLEN_T int |
||||
|
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
||||
|
|
||||
|
#elif defined(__VMS) |
||||
|
# define CARES_SIZEOF_LONG 4 |
||||
|
# define CARES_TYPEOF_ARES_SOCKLEN_T unsigned int |
||||
|
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
||||
|
|
||||
|
#elif defined(__OS400__) |
||||
|
# if defined(__ILEC400__) |
||||
|
# define CARES_SIZEOF_LONG 4 |
||||
|
# define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t |
||||
|
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
||||
|
# define CARES_PULL_SYS_TYPES_H 1 |
||||
|
# define CARES_PULL_SYS_SOCKET_H 1 |
||||
|
# endif |
||||
|
|
||||
|
#elif defined(__MVS__) |
||||
|
# if defined(__IBMC__) || defined(__IBMCPP__) |
||||
|
# if defined(_ILP32) |
||||
|
# define CARES_SIZEOF_LONG 4 |
||||
|
# elif defined(_LP64) |
||||
|
# define CARES_SIZEOF_LONG 8 |
||||
|
# endif |
||||
|
# define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t |
||||
|
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
||||
|
# define CARES_PULL_SYS_TYPES_H 1 |
||||
|
# define CARES_PULL_SYS_SOCKET_H 1 |
||||
|
# endif |
||||
|
|
||||
|
#elif defined(__370__) |
||||
|
# if defined(__IBMC__) || defined(__IBMCPP__) |
||||
|
# if defined(_ILP32) |
||||
|
# define CARES_SIZEOF_LONG 4 |
||||
|
# elif defined(_LP64) |
||||
|
# define CARES_SIZEOF_LONG 8 |
||||
|
# endif |
||||
|
# define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t |
||||
|
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
||||
|
# define CARES_PULL_SYS_TYPES_H 1 |
||||
|
# define CARES_PULL_SYS_SOCKET_H 1 |
||||
|
# endif |
||||
|
|
||||
|
#elif defined(TPF) |
||||
|
# define CARES_SIZEOF_LONG 8 |
||||
|
# define CARES_TYPEOF_ARES_SOCKLEN_T int |
||||
|
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
||||
|
|
||||
|
/* ===================================== */ |
||||
|
/* KEEP MSVC THE PENULTIMATE ENTRY */ |
||||
|
/* ===================================== */ |
||||
|
|
||||
|
#elif defined(_MSC_VER) |
||||
|
# define CARES_SIZEOF_LONG 4 |
||||
|
# define CARES_TYPEOF_ARES_SOCKLEN_T int |
||||
|
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
||||
|
|
||||
|
/* ===================================== */ |
||||
|
/* KEEP GENERIC GCC THE LAST ENTRY */ |
||||
|
/* ===================================== */ |
||||
|
|
||||
|
#elif defined(__GNUC__) |
||||
|
# if defined(__i386__) || defined(__ppc__) |
||||
|
# define CARES_SIZEOF_LONG 4 |
||||
|
# elif defined(__x86_64__) || defined(__ppc64__) |
||||
|
# define CARES_SIZEOF_LONG 8 |
||||
|
# endif |
||||
|
# define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t |
||||
|
# define CARES_SIZEOF_ARES_SOCKLEN_T 4 |
||||
|
# define CARES_PULL_SYS_TYPES_H 1 |
||||
|
# define CARES_PULL_SYS_SOCKET_H 1 |
||||
|
|
||||
|
#else |
||||
|
# error "Unknown non-configure build target!" |
||||
|
Error Compilation_aborted_Unknown_non_configure_build_target |
||||
|
#endif |
||||
|
|
||||
|
/* CARES_PULL_SYS_TYPES_H is defined above when inclusion of header file */ |
||||
|
/* sys/types.h is required here to properly make type definitions below. */ |
||||
|
#ifdef CARES_PULL_SYS_TYPES_H |
||||
|
# include <sys/types.h> |
||||
|
#endif |
||||
|
|
||||
|
/* CARES_PULL_SYS_SOCKET_H is defined above when inclusion of header file */ |
||||
|
/* sys/socket.h is required here to properly make type definitions below. */ |
||||
|
#ifdef CARES_PULL_SYS_SOCKET_H |
||||
|
# include <sys/socket.h> |
||||
|
#endif |
||||
|
|
||||
|
/* Data type definition of ares_socklen_t. */ |
||||
|
|
||||
|
#ifdef CARES_TYPEOF_ARES_SOCKLEN_T |
||||
|
typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t; |
||||
|
#endif |
||||
|
|
||||
|
#endif /* __CARES_BUILD_H */ |
@ -0,0 +1,43 @@ |
|||||
|
.\" |
||||
|
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
||||
|
.\" |
||||
|
.\" Permission to use, copy, modify, and distribute this |
||||
|
.\" software and its documentation for any purpose and without |
||||
|
.\" fee is hereby granted, provided that the above copyright |
||||
|
.\" notice appear in all copies and that both that copyright |
||||
|
.\" notice and this permission notice appear in supporting |
||||
|
.\" documentation, and that the name of M.I.T. not be used in |
||||
|
.\" advertising or publicity pertaining to distribution of the |
||||
|
.\" software without specific, written prior permission. |
||||
|
.\" M.I.T. makes no representations about the suitability of |
||||
|
.\" this software for any purpose. It is provided "as is" |
||||
|
.\" without express or implied warranty. |
||||
|
.\" |
||||
|
.TH ARES_CANCEL 3 "31 March 2004" |
||||
|
.SH NAME |
||||
|
ares_cancel \- Cancel a resolve |
||||
|
.SH SYNOPSIS |
||||
|
.nf |
||||
|
.B #include <ares.h> |
||||
|
.PP |
||||
|
.B void ares_cancel(ares_channel \fIchannel\fP) |
||||
|
.fi |
||||
|
.SH DESCRIPTION |
||||
|
The \fBares_cancel\fP function cancels all lookups/requests made on the the |
||||
|
name service channel identified by \fIchannel\fP. \fBares_cancel\fP invokes |
||||
|
the callbacks for each pending query on the channel, passing a status of |
||||
|
.BR ARES_ECANCELLED . |
||||
|
These calls give the callbacks a chance to clean up any state which |
||||
|
might have been stored in their arguments. |
||||
|
.SH SEE ALSO |
||||
|
.BR ares_init (3) |
||||
|
.BR ares_destroy (3) |
||||
|
.SH NOTES |
||||
|
This function was added in c-ares 1.2.0 |
||||
|
|
||||
|
c-ares 1.6.0 and earlier pass a status of |
||||
|
.BR ARES_ETIMEOUT |
||||
|
instead of |
||||
|
.BR ARES_ECANCELLED . |
||||
|
.SH AUTHOR |
||||
|
Dirk Manske |
@ -0,0 +1,43 @@ |
|||||
|
.\" |
||||
|
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
||||
|
.\" |
||||
|
.\" Permission to use, copy, modify, and distribute this |
||||
|
.\" software and its documentation for any purpose and without |
||||
|
.\" fee is hereby granted, provided that the above copyright |
||||
|
.\" notice appear in all copies and that both that copyright |
||||
|
.\" notice and this permission notice appear in supporting |
||||
|
.\" documentation, and that the name of M.I.T. not be used in |
||||
|
.\" advertising or publicity pertaining to distribution of the |
||||
|
.\" software without specific, written prior permission. |
||||
|
.\" M.I.T. makes no representations about the suitability of |
||||
|
.\" this software for any purpose. It is provided "as is" |
||||
|
.\" without express or implied warranty. |
||||
|
.\" |
||||
|
.TH ARES_DESTROY 3 "7 December 2004" |
||||
|
.SH NAME |
||||
|
ares_destroy \- Destroy a resolver channel |
||||
|
.SH SYNOPSIS |
||||
|
.nf |
||||
|
.B #include <ares.h> |
||||
|
.PP |
||||
|
.B void ares_destroy(ares_channel \fIchannel\fP) |
||||
|
.fi |
||||
|
.SH DESCRIPTION |
||||
|
The |
||||
|
.B ares_destroy |
||||
|
function destroys the name service channel identified by |
||||
|
.IR channel , |
||||
|
freeing all memory and closing all sockets used by the channel. |
||||
|
.B ares_destroy |
||||
|
invokes the callbacks for each pending query on the channel, passing a |
||||
|
status of |
||||
|
.BR ARES_EDESTRUCTION . |
||||
|
These calls give the callbacks a chance to clean up any state which |
||||
|
might have been stored in their arguments. |
||||
|
.SH SEE ALSO |
||||
|
.BR ares_init (3), |
||||
|
.BR ares_cancel (3) |
||||
|
.SH AUTHOR |
||||
|
Greg Hudson, MIT Information Systems |
||||
|
.br |
||||
|
Copyright 1998 by the Massachusetts Institute of Technology. |
@ -0,0 +1,38 @@ |
|||||
|
.\" |
||||
|
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
||||
|
.\" |
||||
|
.\" Permission to use, copy, modify, and distribute this |
||||
|
.\" software and its documentation for any purpose and without |
||||
|
.\" fee is hereby granted, provided that the above copyright |
||||
|
.\" notice appear in all copies and that both that copyright |
||||
|
.\" notice and this permission notice appear in supporting |
||||
|
.\" documentation, and that the name of M.I.T. not be used in |
||||
|
.\" advertising or publicity pertaining to distribution of the |
||||
|
.\" software without specific, written prior permission. |
||||
|
.\" M.I.T. makes no representations about the suitability of |
||||
|
.\" this software for any purpose. It is provided "as is" |
||||
|
.\" without express or implied warranty. |
||||
|
.\" |
||||
|
.TH ARES_DESTROY_OPTIONS 3 "1 June 2007" |
||||
|
.SH NAME |
||||
|
ares_destroy_options \- Destroy options initialized with ares_save_options |
||||
|
.SH SYNOPSIS |
||||
|
.nf |
||||
|
.B #include <ares.h> |
||||
|
.PP |
||||
|
.B void ares_destroy_options(struct ares_options *\fIoptions\fP) |
||||
|
.fi |
||||
|
.SH DESCRIPTION |
||||
|
The |
||||
|
.B ares_destroy_options |
||||
|
function destroys the options struct identified by |
||||
|
.IR options , |
||||
|
freeing all memory allocated by ares_save_options. |
||||
|
|
||||
|
.SH SEE ALSO |
||||
|
.BR ares_save_options (3), |
||||
|
.BR ares_init_options (3) |
||||
|
.SH AUTHOR |
||||
|
Brad House |
||||
|
.br |
||||
|
Copyright 1998 by the Massachusetts Institute of Technology. |
@ -0,0 +1,43 @@ |
|||||
|
.\" |
||||
|
.\" Copyright (C) 2004-2009 by Daniel Stenberg |
||||
|
.\" |
||||
|
.\" Permission to use, copy, modify, and distribute this |
||||
|
.\" software and its documentation for any purpose and without |
||||
|
.\" fee is hereby granted, provided that the above copyright |
||||
|
.\" notice appear in all copies and that both that copyright |
||||
|
.\" notice and this permission notice appear in supporting |
||||
|
.\" documentation, and that the name of M.I.T. not be used in |
||||
|
.\" advertising or publicity pertaining to distribution of the |
||||
|
.\" software without specific, written prior permission. |
||||
|
.\" M.I.T. makes no representations about the suitability of |
||||
|
.\" this software for any purpose. It is provided "as is" |
||||
|
.\" without express or implied warranty. |
||||
|
.\" |
||||
|
.TH ARES_DUP 3 "26 May 2009" |
||||
|
.SH NAME |
||||
|
ares_dup \- Duplicate a resolver channel |
||||
|
.SH SYNOPSIS |
||||
|
.nf |
||||
|
.B #include <ares.h> |
||||
|
.PP |
||||
|
.B int ares_dup(ares_channel *\fIdest\fP, ares_channel \fIsource\fP) |
||||
|
.fi |
||||
|
.SH DESCRIPTION |
||||
|
The \fBares_dup(3)\fP function duplicates an existing communications channel |
||||
|
for name service lookups. If it returns successfully, \fBares_dup(3)\fP will |
||||
|
set the variable pointed to by \fIdest\fP to a handle used to identify the |
||||
|
name service channel. The caller should invoke \fIares_destroy(3)\fP on the |
||||
|
handle when the channel is no longer needed. |
||||
|
|
||||
|
The \fBares_dup_options\fP function also initializes a name service channel, |
||||
|
with additional options set exactly as the \fIsource\fP channel has them |
||||
|
configured. |
||||
|
.SH SEE ALSO |
||||
|
.BR ares_destroy(3), |
||||
|
.BR ares_init(3), |
||||
|
.BR ares_library_init(3) |
||||
|
.SH AVAILABILITY |
||||
|
ares_dup(3) was added in c-ares 1.6.0 |
||||
|
.SH AUTHOR |
||||
|
Daniel Stenberg |
||||
|
|
@ -0,0 +1,63 @@ |
|||||
|
.\" |
||||
|
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
||||
|
.\" |
||||
|
.\" Permission to use, copy, modify, and distribute this |
||||
|
.\" software and its documentation for any purpose and without |
||||
|
.\" fee is hereby granted, provided that the above copyright |
||||
|
.\" notice appear in all copies and that both that copyright |
||||
|
.\" notice and this permission notice appear in supporting |
||||
|
.\" documentation, and that the name of M.I.T. not be used in |
||||
|
.\" advertising or publicity pertaining to distribution of the |
||||
|
.\" software without specific, written prior permission. |
||||
|
.\" M.I.T. makes no representations about the suitability of |
||||
|
.\" this software for any purpose. It is provided "as is" |
||||
|
.\" without express or implied warranty. |
||||
|
.\" |
||||
|
.TH ARES_EXPAND_NAME 3 "20 Nov 2009" |
||||
|
.SH NAME |
||||
|
ares_expand_name \- Expand a DNS-encoded domain name |
||||
|
.SH SYNOPSIS |
||||
|
.nf |
||||
|
.B #include <ares.h> |
||||
|
.PP |
||||
|
.B int ares_expand_name(const unsigned char *\fIencoded\fP, |
||||
|
.B const unsigned char *\fIabuf\fP, int \fIalen\fP, char **\fIs\fP, |
||||
|
.B long *\fIenclen\fP) |
||||
|
.fi |
||||
|
.SH DESCRIPTION |
||||
|
The |
||||
|
.B ares_expand_name |
||||
|
function converts a DNS-encoded domain name to a dot-separated C |
||||
|
string. The argument |
||||
|
.I encoded |
||||
|
gives the beginning of the encoded domain name, and the arguments |
||||
|
.I abuf |
||||
|
and |
||||
|
.I alen |
||||
|
give the containing message buffer (necessary for the processing of |
||||
|
indirection pointers within the encoded domain name). The result is |
||||
|
placed in a NUL-terminated allocated buffer, a pointer to which is |
||||
|
stored in the variable pointed to by |
||||
|
.IR s . |
||||
|
The length of the encoded name is stored in the variable pointed to by |
||||
|
.I enclen |
||||
|
so that the caller can advance past the encoded domain name to read |
||||
|
further data in the message. |
||||
|
.SH RETURN VALUES |
||||
|
.B ares_expand_name |
||||
|
can return any of the following values: |
||||
|
.TP 15 |
||||
|
.B ARES_SUCCESS |
||||
|
Expansion of the encoded name succeeded. |
||||
|
.TP 15 |
||||
|
.B ARES_EBADNAME |
||||
|
The encoded domain name was malformed and could not be expanded. |
||||
|
.TP 15 |
||||
|
.B ARES_ENOMEM |
||||
|
Memory was exhausted. |
||||
|
.SH SEE ALSO |
||||
|
.BR ares_mkquery (3) |
||||
|
.SH AUTHOR |
||||
|
Greg Hudson, MIT Information Systems |
||||
|
.br |
||||
|
Copyright 1998 by the Massachusetts Institute of Technology. |
@ -0,0 +1,61 @@ |
|||||
|
.\" |
||||
|
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
||||
|
.\" |
||||
|
.\" Permission to use, copy, modify, and distribute this |
||||
|
.\" software and its documentation for any purpose and without |
||||
|
.\" fee is hereby granted, provided that the above copyright |
||||
|
.\" notice appear in all copies and that both that copyright |
||||
|
.\" notice and this permission notice appear in supporting |
||||
|
.\" documentation, and that the name of M.I.T. not be used in |
||||
|
.\" advertising or publicity pertaining to distribution of the |
||||
|
.\" software without specific, written prior permission. |
||||
|
.\" M.I.T. makes no representations about the suitability of |
||||
|
.\" this software for any purpose. It is provided "as is" |
||||
|
.\" without express or implied warranty. |
||||
|
.\" |
||||
|
.TH ARES_EXPAND_NAME 3 "20 Nov 2009" |
||||
|
.SH NAME |
||||
|
ares_expand_string \- Expand a length encoded string |
||||
|
.SH SYNOPSIS |
||||
|
.nf |
||||
|
.B #include <ares.h> |
||||
|
.PP |
||||
|
.B int ares_expand_string(const unsigned char *\fIencoded\fP, |
||||
|
.B const unsigned char *\fIabuf\fP, int \fIalen\fP, unsigned char **\fIs\fP, |
||||
|
.B long *\fIenclen\fP) |
||||
|
.fi |
||||
|
.SH DESCRIPTION |
||||
|
The |
||||
|
.B ares_expand_string |
||||
|
function converts a length encoded string to a NUL-terminated C |
||||
|
string. The argument |
||||
|
.I encoded |
||||
|
gives the beginning of the encoded string, and the arguments |
||||
|
.I abuf |
||||
|
and |
||||
|
.I alen |
||||
|
give the containing message buffer (necessary for the processing of |
||||
|
indirection pointers within the encoded domain name). The result is |
||||
|
placed in a NUL-terminated allocated buffer, a pointer to which is |
||||
|
stored in the variable pointed to by |
||||
|
.IR s . |
||||
|
The length of the encoded string is stored in the variable pointed to by |
||||
|
.I enclen |
||||
|
so that the caller can advance past the encoded string to read |
||||
|
further data in the message. |
||||
|
.SH RETURN VALUES |
||||
|
.B ares_expand_string |
||||
|
can return any of the following values: |
||||
|
.TP 15 |
||||
|
.B ARES_SUCCESS |
||||
|
Expansion of the encoded string succeeded. |
||||
|
.TP 15 |
||||
|
.B ARES_EBADSTR |
||||
|
The encoded string was malformed and could not be expanded. |
||||
|
.TP 15 |
||||
|
.B ARES_ENOMEM |
||||
|
Memory was exhausted. |
||||
|
.SH SEE ALSO |
||||
|
.BR ares_free_string (3) |
||||
|
.SH AUTHOR |
||||
|
Dominick Meglio |
@ -0,0 +1,61 @@ |
|||||
|
.\" |
||||
|
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
||||
|
.\" |
||||
|
.\" Permission to use, copy, modify, and distribute this |
||||
|
.\" software and its documentation for any purpose and without |
||||
|
.\" fee is hereby granted, provided that the above copyright |
||||
|
.\" notice appear in all copies and that both that copyright |
||||
|
.\" notice and this permission notice appear in supporting |
||||
|
.\" documentation, and that the name of M.I.T. not be used in |
||||
|
.\" advertising or publicity pertaining to distribution of the |
||||
|
.\" software without specific, written prior permission. |
||||
|
.\" M.I.T. makes no representations about the suitability of |
||||
|
.\" this software for any purpose. It is provided "as is" |
||||
|
.\" without express or implied warranty. |
||||
|
.\" |
||||
|
.TH ARES_FDS 3 "23 July 1998" |
||||
|
.SH NAME |
||||
|
ares_fds \- Get file descriptors to select on for name service |
||||
|
.SH SYNOPSIS |
||||
|
.nf |
||||
|
.B #include <ares.h> |
||||
|
.PP |
||||
|
.B int ares_fds(ares_channel \fIchannel\fP, fd_set *\fIread_fds\fP, |
||||
|
.B fd_set *\fIwrite_fds\fP) |
||||
|
.fi |
||||
|
.SH DESCRIPTION |
||||
|
The |
||||
|
.B ares_fds |
||||
|
function retrieves the set of file descriptors which the calling |
||||
|
application should select on for reading and writing for the |
||||
|
processing of name service queries pending on the name service channel |
||||
|
identified by |
||||
|
.IR channel . |
||||
|
File descriptors will be set in the file descriptor sets pointed to by |
||||
|
.I read_fds |
||||
|
and |
||||
|
.I write_fds |
||||
|
as appropriate. File descriptors already set in |
||||
|
.I read_fds |
||||
|
and |
||||
|
.I write_fds |
||||
|
will remain set; initialization of the file descriptor sets |
||||
|
(using |
||||
|
.BR FD_ZERO ) |
||||
|
is the responsibility of the caller. |
||||
|
.SH RETURN VALUES |
||||
|
.B ares_fds |
||||
|
returns one greater than the number of the highest socket set in either |
||||
|
.I read_fds |
||||
|
or |
||||
|
.IR write_fds . |
||||
|
If no queries are active, |
||||
|
.B ares_fds |
||||
|
will return 0. |
||||
|
.SH SEE ALSO |
||||
|
.BR ares_timeout (3), |
||||
|
.BR ares_process (3) |
||||
|
.SH AUTHOR |
||||
|
Greg Hudson, MIT Information Systems |
||||
|
.br |
||||
|
Copyright 1998 by the Massachusetts Institute of Technology. |
@ -0,0 +1,72 @@ |
|||||
|
.\" |
||||
|
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
||||
|
.\" Copyright (C) 2004-2010 by Daniel Stenberg |
||||
|
.\" |
||||
|
.\" Permission to use, copy, modify, and distribute this |
||||
|
.\" software and its documentation for any purpose and without |
||||
|
.\" fee is hereby granted, provided that the above copyright |
||||
|
.\" notice appear in all copies and that both that copyright |
||||
|
.\" notice and this permission notice appear in supporting |
||||
|
.\" documentation, and that the name of M.I.T. not be used in |
||||
|
.\" advertising or publicity pertaining to distribution of the |
||||
|
.\" software without specific, written prior permission. |
||||
|
.\" M.I.T. makes no representations about the suitability of |
||||
|
.\" this software for any purpose. It is provided "as is" |
||||
|
.\" without express or implied warranty. |
||||
|
.\" |
||||
|
.TH ARES_FREE_DATA 3 "5 March 2010" |
||||
|
.SH NAME |
||||
|
ares_free_data \- Free data allocated by several c-ares functions |
||||
|
.SH SYNOPSIS |
||||
|
.nf |
||||
|
.B #include <ares.h> |
||||
|
.PP |
||||
|
.B void ares_free_data(void *\fIdataptr\fP) |
||||
|
.PP |
||||
|
.B cc file.c -lcares |
||||
|
.fi |
||||
|
.SH DESCRIPTION |
||||
|
.PP |
||||
|
The |
||||
|
.B ares_free_data(3) |
||||
|
function frees one or more data structures allocated and returned |
||||
|
by several c-ares functions. Specifically the data returned by the |
||||
|
following list of functions must be deallocated using this function. |
||||
|
.TP 5 |
||||
|
.B ares_get_servers(3) |
||||
|
When used to free the data returned by ares_get_servers(3) this |
||||
|
will free the whole linked list of ares_addr_node structures returned |
||||
|
by ares_get_servers(3). |
||||
|
.TP |
||||
|
.B ares_parse_srv_reply(3) |
||||
|
When used to free the data returned by ares_parse_srv_reply(3) this |
||||
|
will free the whole linked list of ares_srv_reply structures returned |
||||
|
by ares_parse_srv_reply(3), along with any additional storage |
||||
|
associated with those structures. |
||||
|
.TP |
||||
|
.B ares_parse_mx_reply(3) |
||||
|
When used to free the data returned by ares_parse_mx_reply(3) this |
||||
|
will free the whole linked list of ares_mx_reply structures returned |
||||
|
by ares_parse_mx_reply(3), along with any additional storage |
||||
|
associated with those structures. |
||||
|
.TP |
||||
|
.B ares_parse_txt_reply(3) |
||||
|
When used to free the data returned by ares_parse_txt_reply(3) this |
||||
|
will free the whole linked list of ares_txt_reply structures returned |
||||
|
by ares_parse_txt_reply(3), along with any additional storage |
||||
|
associated with those structures. |
||||
|
.SH RETURN VALUE |
||||
|
The ares_free_data() function does not return a value. |
||||
|
.SH AVAILABILITY |
||||
|
This function was first introduced in c-ares version 1.7.0. |
||||
|
.SH SEE ALSO |
||||
|
.BR ares_get_servers(3), |
||||
|
.BR ares_parse_srv_reply(3), |
||||
|
.BR ares_parse_mx_reply(3), |
||||
|
.BR ares_parse_txt_reply(3) |
||||
|
.SH AUTHOR |
||||
|
Yang Tse |
||||
|
.PP |
||||
|
Copyright 1998 by the Massachusetts Institute of Technology. |
||||
|
.br |
||||
|
Copyright (C) 2004-2010 by Daniel Stenberg. |
@ -0,0 +1,45 @@ |
|||||
|
.\" |
||||
|
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
||||
|
.\" |
||||
|
.\" Permission to use, copy, modify, and distribute this |
||||
|
.\" software and its documentation for any purpose and without |
||||
|
.\" fee is hereby granted, provided that the above copyright |
||||
|
.\" notice appear in all copies and that both that copyright |
||||
|
.\" notice and this permission notice appear in supporting |
||||
|
.\" documentation, and that the name of M.I.T. not be used in |
||||
|
.\" advertising or publicity pertaining to distribution of the |
||||
|
.\" software without specific, written prior permission. |
||||
|
.\" M.I.T. makes no representations about the suitability of |
||||
|
.\" this software for any purpose. It is provided "as is" |
||||
|
.\" without express or implied warranty. |
||||
|
.\" |
||||
|
.TH ARES_FREE_HOSTENT 3 "23 July 1998" |
||||
|
.SH NAME |
||||
|
ares_free_hostent \- Free host structure allocated by ares functions |
||||
|
.SH SYNOPSIS |
||||
|
.nf |
||||
|
.B #include <ares.h> |
||||
|
.PP |
||||
|
.B void ares_free_hostent(struct hostent *\fIhost\fP) |
||||
|
.fi |
||||
|
.SH DESCRIPTION |
||||
|
The |
||||
|
.I ares_free_hostent |
||||
|
function frees a |
||||
|
.B struct hostent |
||||
|
allocated by one of the functions \fIares_parse_a_reply(3)\fP, |
||||
|
\fIares_parse_aaaa_reply(3)\fP, or \fIares_parse_ptr_reply(3)\fP. |
||||
|
.SH NOTES |
||||
|
It is not necessary (and is not correct) to free the host structure passed to |
||||
|
the callback functions for \fIares_gethostbyname(3)\fP or |
||||
|
\fIares_gethostbyaddr(3)\fP. c-ares will automatically free such host |
||||
|
structures when the callback returns. |
||||
|
.SH SEE ALSO |
||||
|
.BR ares_parse_a_reply (3), |
||||
|
.BR ares_parse_aaaa_reply (3), |
||||
|
.BR ares_parse_ptr_reply (3), |
||||
|
.BR ares_parse_ns_reply (3) |
||||
|
.SH AUTHOR |
||||
|
Greg Hudson, MIT Information Systems |
||||
|
.br |
||||
|
Copyright 1998 by the Massachusetts Institute of Technology. |
@ -0,0 +1,35 @@ |
|||||
|
.\" |
||||
|
.\" Copyright 2000 by the Massachusetts Institute of Technology. |
||||
|
.\" |
||||
|
.\" Permission to use, copy, modify, and distribute this |
||||
|
.\" software and its documentation for any purpose and without |
||||
|
.\" fee is hereby granted, provided that the above copyright |
||||
|
.\" notice appear in all copies and that both that copyright |
||||
|
.\" notice and this permission notice appear in supporting |
||||
|
.\" documentation, and that the name of M.I.T. not be used in |
||||
|
.\" advertising or publicity pertaining to distribution of the |
||||
|
.\" software without specific, written prior permission. |
||||
|
.\" M.I.T. makes no representations about the suitability of |
||||
|
.\" this software for any purpose. It is provided "as is" |
||||
|
.\" without express or implied warranty. |
||||
|
.\" |
||||
|
.TH ARES_FREE_STRING 3 "4 February 2004" |
||||
|
.SH NAME |
||||
|
ares_free_string \- Free strings allocated by ares functions |
||||
|
.SH SYNOPSIS |
||||
|
.nf |
||||
|
.B #include <ares.h> |
||||
|
.PP |
||||
|
.B void ares_free_string(void *\fIstr\fP) |
||||
|
.fi |
||||
|
.SH DESCRIPTION |
||||
|
The |
||||
|
.I ares_free_string |
||||
|
function frees a string allocated by an ares function. |
||||
|
.SH SEE ALSO |
||||
|
.BR ares_mkquery (3) |
||||
|
.BR ares_expand_string (3) |
||||
|
.SH AUTHOR |
||||
|
Greg Hudson, MIT Information Systems |
||||
|
.br |
||||
|
Copyright 2000 by the Massachusetts Institute of Technology. |
@ -0,0 +1,78 @@ |
|||||
|
.\" |
||||
|
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
||||
|
.\" Copyright (C) 2008-2010 by Daniel Stenberg |
||||
|
.\" |
||||
|
.\" Permission to use, copy, modify, and distribute this |
||||
|
.\" software and its documentation for any purpose and without |
||||
|
.\" fee is hereby granted, provided that the above copyright |
||||
|
.\" notice appear in all copies and that both that copyright |
||||
|
.\" notice and this permission notice appear in supporting |
||||
|
.\" documentation, and that the name of M.I.T. not be used in |
||||
|
.\" advertising or publicity pertaining to distribution of the |
||||
|
.\" software without specific, written prior permission. |
||||
|
.\" M.I.T. makes no representations about the suitability of |
||||
|
.\" this software for any purpose. It is provided "as is" |
||||
|
.\" without express or implied warranty. |
||||
|
.\" |
||||
|
.TH ARES_GET_SERVERS 3 "5 March 2010" |
||||
|
.SH NAME |
||||
|
ares_get_servers \- Retrieve name servers from an initialized ares_channel |
||||
|
.SH SYNOPSIS |
||||
|
.nf |
||||
|
.B #include <ares.h> |
||||
|
.PP |
||||
|
.B int ares_get_servers(ares_channel \fIchannel\fP, struct ares_addr_node **\fIservers\fP) |
||||
|
.fi |
||||
|
.SH DESCRIPTION |
||||
|
The \fBares_get_servers(3)\fP function retrieves name servers configuration |
||||
|
from the |
||||
|
channel data identified by |
||||
|
.IR channel , |
||||
|
as a linked list of ares_addr_node structs storing a pointer to the first |
||||
|
node at the address specified by |
||||
|
.IR servers . |
||||
|
|
||||
|
Function caller may traverse the returned name server linked list, or may use |
||||
|
it directly as suitable input for the \fBares_set_servers(3)\fP function, but |
||||
|
shall not shrink or extend the list on its own. |
||||
|
|
||||
|
Each node of the name server linked list is stored in memory dynamically |
||||
|
allocated and managed by c-ares. It is the caller's responsibility to free |
||||
|
the resulting linked list, using \fBares_free_data(3)\fP , once the caller |
||||
|
does not need it any longer. |
||||
|
|
||||
|
This function is capable of handling IPv4 and IPv6 name server |
||||
|
addresses simultaneously, rendering \fBares_save_options(3)\fP with |
||||
|
optmask \fBARES_OPT_SERVERS\fP functionally obsolete except for |
||||
|
IPv4-only name server usage. |
||||
|
|
||||
|
.SH RETURN VALUES |
||||
|
.B ares_get_servers(3) |
||||
|
may return any of the following values: |
||||
|
.TP 15 |
||||
|
.B ARES_SUCCESS |
||||
|
The name servers configuration was successfuly retrieved |
||||
|
.TP 15 |
||||
|
.B ARES_ENOMEM |
||||
|
The memory was exhausted |
||||
|
.TP 15 |
||||
|
.B ARES_ENODATA |
||||
|
The channel data identified by |
||||
|
.IR channel |
||||
|
was invalid. |
||||
|
.SH SEE ALSO |
||||
|
.BR ares_set_servers (3), |
||||
|
.BR ares_init_options (3), |
||||
|
.BR ares_save_options(3) |
||||
|
.SH AVAILABILITY |
||||
|
ares_get_servers(3) was added in c-ares 1.7.1 |
||||
|
.SH AUTHOR |
||||
|
Implementation of this function and associated library internals are based |
||||
|
on code, comments and feedback provided in November and December of 2008 by |
||||
|
Daniel Stenberg, Gregor Jasny, Phil Blundell and Yang Tse, December 2009 |
||||
|
by Cedric Bail, February 2010 by Jakub Hrozek. On March 2010 Yang Tse |
||||
|
shuffled all the bits and this function popped out. |
||||
|
.br |
||||
|
Copyright 1998 by the Massachusetts Institute of Technology. |
||||
|
.br |
||||
|
Copyright (C) 2008-2010 by Daniel Stenberg |
@ -0,0 +1,101 @@ |
|||||
|
.\" |
||||
|
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
||||
|
.\" |
||||
|
.\" Permission to use, copy, modify, and distribute this |
||||
|
.\" software and its documentation for any purpose and without |
||||
|
.\" fee is hereby granted, provided that the above copyright |
||||
|
.\" notice appear in all copies and that both that copyright |
||||
|
.\" notice and this permission notice appear in supporting |
||||
|
.\" documentation, and that the name of M.I.T. not be used in |
||||
|
.\" advertising or publicity pertaining to distribution of the |
||||
|
.\" software without specific, written prior permission. |
||||
|
.\" M.I.T. makes no representations about the suitability of |
||||
|
.\" this software for any purpose. It is provided "as is" |
||||
|
.\" without express or implied warranty. |
||||
|
.\" |
||||
|
.TH ARES_GETHOSTBYADDR 3 "24 July 1998" |
||||
|
.SH NAME |
||||
|
ares_gethostbyaddr \- Initiate a host query by address |
||||
|
.SH SYNOPSIS |
||||
|
.nf |
||||
|
.B #include <ares.h> |
||||
|
.PP |
||||
|
.B typedef void (*ares_host_callback)(void *\fIarg\fP, int \fIstatus\fP, |
||||
|
.B int \fItimeouts\fP, struct hostent *\fIhostent\fP) |
||||
|
.PP |
||||
|
.B void ares_gethostbyaddr(ares_channel \fIchannel\fP, const void *\fIaddr\fP, |
||||
|
.B int \fIaddrlen\fP, int \fIfamily\fP, ares_host_callback \fIcallback\fP, |
||||
|
.B void *\fIarg\fP) |
||||
|
.fi |
||||
|
.SH DESCRIPTION |
||||
|
The |
||||
|
.B ares_gethostbyaddr |
||||
|
function initiates a host query by address on the name service channel |
||||
|
identified by |
||||
|
.IR channel . |
||||
|
The parameters |
||||
|
.I addr |
||||
|
and |
||||
|
.I addrlen |
||||
|
give the address as a series of bytes, and |
||||
|
.I family |
||||
|
gives the type of address. When the query is complete or has failed, the ares |
||||
|
library will invoke \fIcallback\fP. Completion or failure of the query may |
||||
|
happen immediately, or may happen during a later call to |
||||
|
\fIares_process(3)\fP, \fIares_destroy(3)\fP or \fIares_cancel(3)\fP. |
||||
|
.PP |
||||
|
The callback argument |
||||
|
.I arg |
||||
|
is copied from the |
||||
|
.B ares_gethostbyaddr |
||||
|
argument |
||||
|
.IR arg . |
||||
|
The callback argument |
||||
|
.I status |
||||
|
indicates whether the query succeeded and, if not, how it failed. It |
||||
|
may have any of the following values: |
||||
|
.TP 19 |
||||
|
.B ARES_SUCCESS |
||||
|
The host lookup completed successfully. |
||||
|
.TP 19 |
||||
|
.B ARES_ENOTIMP |
||||
|
The ares library does not know how to look up addresses of type |
||||
|
.IR family . |
||||
|
.TP 19 |
||||
|
.B ARES_ENOTFOUND |
||||
|
The address |
||||
|
.I addr |
||||
|
was not found. |
||||
|
.TP 19 |
||||
|
.B ARES_ENOMEM |
||||
|
Memory was exhausted. |
||||
|
.TP 19 |
||||
|
.B ARES_EDESTRUCTION |
||||
|
The name service channel |
||||
|
.I channel |
||||
|
is being destroyed; the query will not be completed. |
||||
|
.PP |
||||
|
The callback argument |
||||
|
.I timeouts |
||||
|
reports how many times a query timed out during the execution of the |
||||
|
given request. |
||||
|
.PP |
||||
|
On successful completion of the query, the callback argument |
||||
|
.I hostent |
||||
|
points to a |
||||
|
.B struct hostent |
||||
|
containing the name of the host returned by the query. The callback |
||||
|
need not and should not attempt to free the memory pointed to by |
||||
|
.IR hostent ; |
||||
|
the ares library will free it when the callback returns. If the query |
||||
|
did not complete successfully, |
||||
|
.I hostent |
||||
|
will be |
||||
|
.BR NULL . |
||||
|
.SH SEE ALSO |
||||
|
.BR ares_process (3), |
||||
|
.BR ares_gethostbyname (3) |
||||
|
.SH AUTHOR |
||||
|
Greg Hudson, MIT Information Systems |
||||
|
.br |
||||
|
Copyright 1998 by the Massachusetts Institute of Technology. |
@ -0,0 +1,105 @@ |
|||||
|
.\" |
||||
|
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
||||
|
.\" |
||||
|
.\" Permission to use, copy, modify, and distribute this |
||||
|
.\" software and its documentation for any purpose and without |
||||
|
.\" fee is hereby granted, provided that the above copyright |
||||
|
.\" notice appear in all copies and that both that copyright |
||||
|
.\" notice and this permission notice appear in supporting |
||||
|
.\" documentation, and that the name of M.I.T. not be used in |
||||
|
.\" advertising or publicity pertaining to distribution of the |
||||
|
.\" software without specific, written prior permission. |
||||
|
.\" M.I.T. makes no representations about the suitability of |
||||
|
.\" this software for any purpose. It is provided "as is" |
||||
|
.\" without express or implied warranty. |
||||
|
.\" |
||||
|
.TH ARES_GETHOSTBYNAME 3 "25 July 1998" |
||||
|
.SH NAME |
||||
|
ares_gethostbyname \- Initiate a host query by name |
||||
|
.SH SYNOPSIS |
||||
|
.nf |
||||
|
.B #include <ares.h> |
||||
|
.PP |
||||
|
.B typedef void (*ares_host_callback)(void *\fIarg\fP, int \fIstatus\fP, |
||||
|
.B int \fItimeouts\fP, struct hostent *\fIhostent\fP) |
||||
|
.PP |
||||
|
.B void ares_gethostbyname(ares_channel \fIchannel\fP, const char *\fIname\fP, |
||||
|
.B int \fIfamily\fP, ares_host_callback \fIcallback\fP, void *\fIarg\fP) |
||||
|
.fi |
||||
|
.SH DESCRIPTION |
||||
|
The |
||||
|
.B ares_gethostbyname |
||||
|
function initiates a host query by name on the name service channel |
||||
|
identified by |
||||
|
.IR channel . |
||||
|
The parameter |
||||
|
.I name |
||||
|
gives the hostname as a NUL-terminated C string, and |
||||
|
.I family |
||||
|
gives the desired type of address for the resulting host entry. When the |
||||
|
query is complete or has failed, the ares library will invoke \fIcallback\fP. |
||||
|
Completion or failure of the query may happen immediately, or may happen |
||||
|
during a later call to \fIares_process(3)\fP, \fIares_destroy(3)\fP or |
||||
|
\fIares_cancel(3)\fP. |
||||
|
.PP |
||||
|
The callback argument |
||||
|
.I arg |
||||
|
is copied from the |
||||
|
.B ares_gethostbyname |
||||
|
argument |
||||
|
.IR arg . |
||||
|
The callback argument |
||||
|
.I status |
||||
|
indicates whether the query succeeded and, if not, how it failed. It |
||||
|
may have any of the following values: |
||||
|
.TP 19 |
||||
|
.B ARES_SUCCESS |
||||
|
The host lookup completed successfully. |
||||
|
.TP 19 |
||||
|
.B ARES_ENOTIMP |
||||
|
The ares library does not know how to find addresses of type |
||||
|
.IR family . |
||||
|
.TP 19 |
||||
|
.B ARES_EBADNAME |
||||
|
The hostname |
||||
|
.B name |
||||
|
is composed entirely of numbers and periods, but is not a valid |
||||
|
representation of an Internet address. |
||||
|
.TP 19 |
||||
|
.B ARES_ENOTFOUND |
||||
|
The address |
||||
|
.I addr |
||||
|
was not found. |
||||
|
.TP 19 |
||||
|
.B ARES_ENOMEM |
||||
|
Memory was exhausted. |
||||
|
.TP 19 |
||||
|
.B ARES_EDESTRUCTION |
||||
|
The name service channel |
||||
|
.I channel |
||||
|
is being destroyed; the query will not be completed. |
||||
|
.PP |
||||
|
The callback argument |
||||
|
.I timeouts |
||||
|
reports how many times a query timed out during the execution of the |
||||
|
given request. |
||||
|
.PP |
||||
|
On successful completion of the query, the callback argument |
||||
|
.I hostent |
||||
|
points to a |
||||
|
.B struct hostent |
||||
|
containing the name of the host returned by the query. The callback |
||||
|
need not and should not attempt to free the memory pointed to by |
||||
|
.IR hostent ; |
||||
|
the ares library will free it when the callback returns. If the query |
||||
|
did not complete successfully, |
||||
|
.I hostent |
||||
|
will be |
||||
|
.BR NULL . |
||||
|
.SH SEE ALSO |
||||
|
.BR ares_process (3), |
||||
|
.BR ares_gethostbyaddr (3) |
||||
|
.SH AUTHOR |
||||
|
Greg Hudson, MIT Information Systems |
||||
|
.br |
||||
|
Copyright 1998 by the Massachusetts Institute of Technology. |
@ -0,0 +1,83 @@ |
|||||
|
.\" |
||||
|
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
||||
|
.\" |
||||
|
.\" Permission to use, copy, modify, and distribute this |
||||
|
.\" software and its documentation for any purpose and without |
||||
|
.\" fee is hereby granted, provided that the above copyright |
||||
|
.\" notice appear in all copies and that both that copyright |
||||
|
.\" notice and this permission notice appear in supporting |
||||
|
.\" documentation, and that the name of M.I.T. not be used in |
||||
|
.\" advertising or publicity pertaining to distribution of the |
||||
|
.\" software without specific, written prior permission. |
||||
|
.\" M.I.T. makes no representations about the suitability of |
||||
|
.\" this software for any purpose. It is provided "as is" |
||||
|
.\" without express or implied warranty. |
||||
|
.\" |
||||
|
.TH ARES_GETHOSTBYNAME 3 "25 July 1998" |
||||
|
.SH NAME |
||||
|
ares_gethostbyname_file \- Lookup a name in the system's hosts file |
||||
|
.SH SYNOPSIS |
||||
|
.nf |
||||
|
.B #include <ares.h> |
||||
|
.PP |
||||
|
.B int ares_gethostbyname_file(ares_channel \fIchannel\fP, const char *\fIname\fP, |
||||
|
.B int \fIfamily\fP, struct hostent **host) |
||||
|
.fi |
||||
|
.SH DESCRIPTION |
||||
|
The |
||||
|
.B ares_gethostbyname_file |
||||
|
function performs a host lookup by name against the system's hosts file (or equivalent local hostname database). |
||||
|
The |
||||
|
.IR channel |
||||
|
parameter is required, but no asynchronous queries are performed. Instead, the |
||||
|
lookup is done via the same mechanism used to perform 'f' lookups |
||||
|
(see the |
||||
|
.I lookups |
||||
|
options field in \fIares_init_options(3)\fP). |
||||
|
The parameter |
||||
|
.I name |
||||
|
gives the hostname as a NUL-terminated C string, and |
||||
|
.I family |
||||
|
gives the desired type of address for the resulting host entry. |
||||
|
.PP |
||||
|
The return value indicates whether the query succeeded and, if not, how it |
||||
|
failed. It may have any of the following values: |
||||
|
.TP 19 |
||||
|
.B ARES_SUCCESS |
||||
|
The host lookup completed successfully and |
||||
|
.I host |
||||
|
now points to the result (and must be freed with \fIares_free_hostent(3)\fP). |
||||
|
.TP 19 |
||||
|
.B ARES_ENOTFOUND |
||||
|
The hostname |
||||
|
.I name |
||||
|
was not found. |
||||
|
.TP 19 |
||||
|
.B ARES_EFILE |
||||
|
There was a file I/O error while performing the lookup. |
||||
|
.TP 19 |
||||
|
.B ARES_ENOMEM |
||||
|
Memory was exhausted. |
||||
|
.PP |
||||
|
On successful completion of the query, the pointer pointed to by |
||||
|
.I host |
||||
|
points to a |
||||
|
.B struct hostent |
||||
|
containing the address of the host returned by the lookup. The user must |
||||
|
free the memory pointed to by |
||||
|
.IR host |
||||
|
when finished with it by calling \fIares_free_hostent(3)\fP. If the lookup did |
||||
|
not complete successfully, |
||||
|
.I host |
||||
|
will be |
||||
|
.BR NULL . |
||||
|
.SH AVAILABILITY |
||||
|
Added in c-ares 1.5.4 |
||||
|
.SH SEE ALSO |
||||
|
.BR ares_gethostbyname (3), |
||||
|
.BR ares_free_hostent (3), |
||||
|
.BR ares_init_options (3) |
||||
|
.SH AUTHOR |
||||
|
Brad Spencer |
||||
|
.br |
||||
|
Copyright 1998 by the Massachusetts Institute of Technology. |
@ -0,0 +1,149 @@ |
|||||
|
.\" |
||||
|
.\" Copyright 2005 by Dominick Meglio. |
||||
|
.\" |
||||
|
.\" Permission to use, copy, modify, and distribute this |
||||
|
.\" software and its documentation for any purpose and without |
||||
|
.\" fee is hereby granted, provided that the above copyright |
||||
|
.\" notice appear in all copies and that both that copyright |
||||
|
.\" notice and this permission notice appear in supporting |
||||
|
.\" documentation, and that the name of M.I.T. not be used in |
||||
|
.\" advertising or publicity pertaining to distribution of the |
||||
|
.\" software without specific, written prior permission. |
||||
|
.\" M.I.T. makes no representations about the suitability of |
||||
|
.\" this software for any purpose. It is provided "as is" |
||||
|
.\" without express or implied warranty. |
||||
|
.\" |
||||
|
.TH ARES_GETNAMEINFO 3 "1 May 2009" |
||||
|
.SH NAME |
||||
|
ares_getnameinfo \- Address-to-nodename translation in protocol-independent manner |
||||
|
.SH SYNOPSIS |
||||
|
.nf |
||||
|
.B #include <ares.h> |
||||
|
.PP |
||||
|
.B typedef void (*ares_nameinfo_callback)(void *\fIarg\fP, int \fIstatus\fP, |
||||
|
.B int \fItimeouts\fP, char *\fInode\fP, char *\fIservice\fP) |
||||
|
.PP |
||||
|
.B void ares_getnameinfo(ares_channel \fIchannel\fP, const struct sockaddr *\fIsa\fP, |
||||
|
.B ares_socklen_t \fIsalen\fP, int \fIflags\fP, ares_nameinfo_callback \fIcallback\fP, |
||||
|
.B void *\fIarg\fP) |
||||
|
.fi |
||||
|
.SH DESCRIPTION |
||||
|
The |
||||
|
.B ares_getnameinfo |
||||
|
function is defined for protocol-independent address translation. The function |
||||
|
is a combination of \fIares_gethostbyaddr(3)\fP and \fIgetservbyport(3)\fP. The function will |
||||
|
translate the address either by executing a host query on the name service channel |
||||
|
identified by |
||||
|
.IR channel |
||||
|
or it will attempt to resolve it locally if possible. |
||||
|
The parameters |
||||
|
.I sa |
||||
|
and |
||||
|
.I len |
||||
|
give the address as a sockaddr structure, and |
||||
|
.I flags |
||||
|
gives the options that the function will use. Valid flags are listed below: |
||||
|
.TP 19 |
||||
|
.B ARES_NI_NOFQDN |
||||
|
Only the nodename portion of the FQDN is returned for local hosts. |
||||
|
.TP 19 |
||||
|
.B ARES_NI_NUMERICHOST |
||||
|
The numeric form of the hostname is returned rather than the name. |
||||
|
.TP 19 |
||||
|
.B ARES_NI_NAMEREQD |
||||
|
An error is returned if the hostname cannot be found in the DNS. |
||||
|
.TP 19 |
||||
|
.B ARES_NI_NUMERICSERV |
||||
|
The numeric form of the service is returned rather than the name. |
||||
|
.TP 19 |
||||
|
.B ARES_NI_TCP |
||||
|
The service name is to be looked up for the TCP protocol. |
||||
|
.TP 19 |
||||
|
.B ARES_NI_UDP |
||||
|
The service name is to be looked up for the UDP protocol. |
||||
|
.TP 19 |
||||
|
.B ARES_NI_SCTP |
||||
|
The service name is to be looked up for the SCTP protocol. |
||||
|
.TP 19 |
||||
|
.B ARES_NI_DCCP |
||||
|
The service name is to be looked up for the DCCP protocol. |
||||
|
.TP 19 |
||||
|
.B ARES_NI_NUMERICSCOPE |
||||
|
The numeric form of the scope ID is returned rather than the name. |
||||
|
.TP 19 |
||||
|
.B ARES_NI_LOOKUPHOST |
||||
|
A hostname lookup is being requested. |
||||
|
.TP 19 |
||||
|
.B ARES_NI_LOOKUPSERVICE |
||||
|
A service name lookup is being requested. |
||||
|
.PP |
||||
|
When the query |
||||
|
is complete or has |
||||
|
failed, the ares library will invoke \fIcallback\fP. Completion or failure of |
||||
|
the query may happen immediately, or may happen during a later call to |
||||
|
\fIares_process(3)\fP, \fIares_destroy(3)\fP or \fIares_cancel(3)\fP. |
||||
|
.PP |
||||
|
The callback argument |
||||
|
.I arg |
||||
|
is copied from the |
||||
|
.B ares_getnameinfo |
||||
|
argument |
||||
|
.IR arg . |
||||
|
The callback argument |
||||
|
.I status |
||||
|
indicates whether the query succeeded and, if not, how it failed. It |
||||
|
may have any of the following values: |
||||
|
.TP 19 |
||||
|
.B ARES_SUCCESS |
||||
|
The host lookup completed successfully. |
||||
|
.TP 19 |
||||
|
.B ARES_ENOTIMP |
||||
|
The ares library does not know how to look up addresses of type |
||||
|
.IR family . |
||||
|
.TP 19 |
||||
|
.B ARES_ENOTFOUND |
||||
|
The address |
||||
|
.I addr |
||||
|
was not found. |
||||
|
.TP 19 |
||||
|
.B ARES_ENOMEM |
||||
|
Memory was exhausted. |
||||
|
.TP 19 |
||||
|
.B ARES_EDESTRUCTION |
||||
|
The name service channel |
||||
|
.I channel |
||||
|
is being destroyed; the query will not be completed. |
||||
|
.TP 19 |
||||
|
.B ARES_EBADFLAGS |
||||
|
The |
||||
|
.I flags |
||||
|
parameter contains an illegal value. |
||||
|
.PP |
||||
|
The callback argument |
||||
|
.I timeouts |
||||
|
reports how many times a query timed out during the execution of the |
||||
|
given request. |
||||
|
.PP |
||||
|
On successful completion of the query, the callback argument |
||||
|
.I node |
||||
|
contains a string representing the hostname (assuming |
||||
|
.B ARES_NI_LOOKUPHOST |
||||
|
was specified). Additionally, |
||||
|
.I service |
||||
|
contains a string representing the service name (assuming |
||||
|
.B ARES_NI_LOOKUPSERVICE |
||||
|
was specified). |
||||
|
If the query did not complete successfully, or one of the values |
||||
|
was not requested, |
||||
|
.I node |
||||
|
or |
||||
|
.I service |
||||
|
will be |
||||
|
.BR NULL . |
||||
|
.SH SEE ALSO |
||||
|
.BR ares_process (3), |
||||
|
.BR ares_getaddrinfo (3) |
||||
|
.SH AUTHOR |
||||
|
Dominick Meglio |
||||
|
.br |
||||
|
Copyright 2005 by Dominick Meglio. |
@ -0,0 +1,57 @@ |
|||||
|
.\" |
||||
|
.\" Copyright 1998 by Daniel Stenberg |
||||
|
.\" |
||||
|
.\" Permission to use, copy, modify, and distribute this |
||||
|
.\" software and its documentation for any purpose and without |
||||
|
.\" fee is hereby granted, provided that the above copyright |
||||
|
.\" notice appear in all copies and that both that copyright |
||||
|
.\" notice and this permission notice appear in supporting |
||||
|
.\" documentation, and that the name of M.I.T. not be used in |
||||
|
.\" advertising or publicity pertaining to distribution of the |
||||
|
.\" software without specific, written prior permission. |
||||
|
.\" M.I.T. makes no representations about the suitability of |
||||
|
.\" this software for any purpose. It is provided "as is" |
||||
|
.\" without express or implied warranty. |
||||
|
.\" |
||||
|
.TH ARES_GETSOCK 3 "11 March 2010" |
||||
|
.SH NAME |
||||
|
ares_getsock \- get socket descriptors to wait on |
||||
|
.SH SYNOPSIS |
||||
|
.nf |
||||
|
.B #include <ares.h> |
||||
|
.PP |
||||
|
.B int ares_getsock(ares_channel \fIchannel\fP, ares_socket_t *\fIsocks\fP, |
||||
|
.B int \fInumsocks\fP); |
||||
|
.fi |
||||
|
.SH DESCRIPTION |
||||
|
The |
||||
|
.B ares_getsock |
||||
|
function retrieves the set of socket descriptors which the calling |
||||
|
application should wait on for reading and/or writing for the |
||||
|
processing of name service queries pending on the name service channel |
||||
|
identified by |
||||
|
.IR channel . |
||||
|
Socket descriptors will be set in the socket descriptor array pointed to by |
||||
|
\fIsocks\fP. |
||||
|
\fInumsocks\fP is the size of the given array in number of ints. |
||||
|
|
||||
|
This function can only return information about up to 16 sockets. If more are |
||||
|
in use (however unlikely that is), they are simply not reported back. |
||||
|
.SH RETURN VALUES |
||||
|
\fBares_getsock\fP returns a bitmask for what actions to wait for on the |
||||
|
different sockets. The ares.h header file provides these convenience macros to |
||||
|
extract the information appropriately: |
||||
|
|
||||
|
.nf |
||||
|
#define ARES_GETSOCK_MAXNUM 16 /* ares_getsock() can return info about |
||||
|
this many sockets */ |
||||
|
#define ARES_GETSOCK_READABLE(bits,num) (bits & (1<< (num))) |
||||
|
#define ARES_GETSOCK_WRITABLE(bits,num) (bits & (1 << ((num) + \ |
||||
|
ARES_GETSOCK_MAXNUM))) |
||||
|
.fi |
||||
|
.SH NOTES |
||||
|
This function was added in c-ares 1.3.1 |
||||
|
.SH SEE ALSO |
||||
|
.BR ares_timeout (3), |
||||
|
.BR ares_fds (3), |
||||
|
.BR ares_process (3) |
@ -0,0 +1,223 @@ |
|||||
|
.\" |
||||
|
.\" Copyright 1998 by the Massachusetts Institute of Technology. |
||||
|
.\" Copyright (C) 2004-2010 by Daniel Stenberg |
||||
|
.\" |
||||
|
.\" Permission to use, copy, modify, and distribute this |
||||
|
.\" software and its documentation for any purpose and without |
||||
|
.\" fee is hereby granted, provided that the above copyright |
||||
|
.\" notice appear in all copies and that both that copyright |
||||
|
.\" notice and this permission notice appear in supporting |
||||
|
.\" documentation, and that the name of M.I.T. not be used in |
||||
|
.\" advertising or publicity pertaining to distribution of the |
||||
|
.\" software without specific, written prior permission. |
||||
|
.\" M.I.T. makes no representations about the suitability of |
||||
|
.\" this software for any purpose. It is provided "as is" |
||||
|
.\" without express or implied warranty. |
||||
|
.\" |
||||
|
.TH ARES_INIT 3 "5 March 2010" |
||||
|
.SH NAME |
||||
|
ares_init, ares_init_options \- Initialize a resolver channel |
||||
|
.SH SYNOPSIS |
||||
|
.nf |
||||
|
.B #include <ares.h> |
||||
|
.PP |
||||
|
.B int ares_init(ares_channel *\fIchannelptr\fP) |
||||
|
.B int ares_init_options(ares_channel *\fIchannelptr\fP, |
||||
|
.B struct ares_options *\fIoptions\fP, int \fIoptmask\fP) |
||||
|
.PP |
||||
|
.B cc file.c -lcares |
||||
|
.fi |
||||
|
.SH DESCRIPTION |
||||
|
The \fBares_init\fP function initializes a communications channel for name |
||||
|
service lookups. If it returns successfully, \fBares_init\fP will set the |
||||
|
variable pointed to by \fIchannelptr\fP to a handle used to identify the name |
||||
|
service channel. The caller should invoke |
||||
|
.BR ares_destroy (3) |
||||
|
on the handle when the channel is no longer needed. |
||||
|
.PP |
||||
|
The \fBares_init_options\fP function also initializes a name service channel, |
||||
|
with additional options useful for applications requiring more control over |
||||
|
name service configuration. The \fIoptmask\fP parameter specifies which fields |
||||
|
in the structure pointed to by \fIoptions\fP are set, as follows: |
||||
|
.TP 18 |
||||
|
.B ARES_OPT_FLAGS |
||||
|
.B int \fIflags\fP; |
||||
|
.br |
||||
|
Flags controlling the behavior of the resolver. See below for a |
||||
|
description of possible flag values. |
||||
|
.TP 18 |
||||
|
.B ARES_OPT_TIMEOUT |
||||
|
.B int \fItimeout\fP; |
||||
|
.br |
||||
|
The number of seconds each name server is given to respond to a query on the |
||||
|
first try. (After the first try, the timeout algorithm becomes more |
||||
|
complicated, but scales linearly with the value of \fItimeout\fP.) The |
||||
|
default is five seconds. This option is being deprecated by |
||||
|
\fIARES_OPT_TIMEOUTMS\fP starting in c-ares 1.5.2. |
||||
|
.TP 18 |
||||
|
.B ARES_OPT_TIMEOUTMS |
||||
|
.B int \fItimeout\fP; |
||||
|
.br |
||||
|
The number of milliseconds each name server is given to respond to a query on |
||||
|
the first try. (After the first try, the timeout algorithm becomes more |
||||
|
complicated, but scales linearly with the value of \fItimeout\fP.) The |
||||
|
default is five seconds. Note that this option is specified with the same |
||||
|
struct field as the former \fIARES_OPT_TIMEOUT\fP, it is but the option bits |
||||
|
that tell c-ares how to interpret the number. This option was added in c-ares |
||||
|
1.5.2. |
||||
|
.TP 18 |
||||
|
.B ARES_OPT_TRIES |
||||
|
.B int \fItries\fP; |
||||
|
.br |
||||
|
The number of tries the resolver will try contacting each name server |
||||
|
before giving up. The default is four tries. |
||||
|
.TP 18 |
||||
|
.B ARES_OPT_NDOTS |
||||
|
.B int \fIndots\fP; |
||||
|
.br |
||||
|
The number of dots which must be present in a domain name for it to be |
||||
|
queried for "as is" prior to querying for it with the default domain |
||||
|
extensions appended. The default value is 1 unless set otherwise by |
||||
|
resolv.conf or the RES_OPTIONS environment variable. |
||||
|
.TP 18 |
||||
|
.B ARES_OPT_PORT |
||||
|
.B unsigned short \fIport\fP; |
||||
|
.br |
||||
|
The port to use for queries (both TCP and UDP), in network byte order. |
||||
|
The default value is 53 (in network byte order), the standard name |
||||
|
service port. |
||||
|
.TP 18 |
||||
|
.B ARES_OPT_SERVERS |
||||
|
.B struct in_addr *\fIservers\fP; |
||||
|
.br |
||||
|
.B int \fInservers\fP; |
||||
|
.br |
||||
|
The list of IPv4 servers to contact, instead of the servers specified in |
||||
|
resolv.conf or the local named. In order to allow specification of either |
||||
|
IPv4 or IPv6 name servers, the |
||||
|
.BR ares_set_servers(3) |
||||
|
function must be used instead. |
||||
|
.TP 18 |
||||
|
.B ARES_OPT_DOMAINS |
||||
|
.B char **\fIdomains\fP; |
||||
|
.br |
||||
|
.B int \fIndomains\fP; |
||||
|
.br |
||||
|
The domains to search, instead of the domains specified in resolv.conf |
||||
|
or the domain derived from the kernel hostname variable. |
||||
|
.TP 18 |
||||
|
.B ARES_OPT_LOOKUPS |
||||
|
.B char *\fIlookups\fP; |
||||
|
.br |
||||
|
The lookups to perform for host queries. |
||||
|
.I lookups |
||||
|
should be set to a string of the characters "b" or "f", where "b" |
||||
|
indicates a DNS lookup and "f" indicates a lookup in the hosts file. |
||||
|
.TP 18 |
||||
|
.B ARES_OPT_SOCK_STATE_CB |
||||
|
.B void (*\fIsock_state_cb\fP)(void *data, int s, int read, int write); |
||||
|
.br |
||||
|
.B void *\fIsock_state_cb_data\fP; |
||||
|
.br |
||||
|
A callback function to be invoked when a socket changes state. |
||||
|
.I s |
||||
|
will be passed the socket whose state has changed; |
||||
|
.I read |
||||
|
will be set to true if the socket should listen for read events, and |
||||
|
.I write |
||||
|
will be set to true if the socket should listen for write events. |
||||
|
The value of |
||||
|
.I sock_state_cb_data |
||||
|
will be passed as the |
||||
|
.I data |
||||
|
argument. |
||||
|
.PP |
||||
|
The |
||||
|
.I flags |
||||
|
field should be the bitwise or of some subset of the following values: |
||||
|
.TP 23 |
||||
|
.B ARES_FLAG_USEVC |
||||
|
Always use TCP queries (the "virtual circuit") instead of UDP |
||||
|
queries. Normally, TCP is only used if a UDP query yields a truncated |
||||
|
result. |
||||
|
.TP 23 |
||||
|
.B ARES_FLAG_PRIMARY |
||||
|
Only query the first server in the list of servers to query. |
||||
|
.TP 23 |
||||
|
.B ARES_FLAG_IGNTC |
||||
|
If a truncated response to a UDP query is received, do not fall back |
||||
|
to TCP; simply continue on with the truncated response. |
||||
|
.TP 23 |
||||
|
.B ARES_FLAG_NORECURSE |
||||
|
Do not set the "recursion desired" bit on outgoing queries, so that the name |
||||
|
server being contacted will not try to fetch the answer from other servers if |
||||
|
it doesn't know the answer locally. Be aware that ares will not do the |
||||
|
recursion for you. Recursion must be handled by the application calling ares |
||||
|
if \fIARES_FLAG_NORECURSE\fP is set. |
||||
|
.TP 23 |
||||
|
.B ARES_FLAG_STAYOPEN |
||||
|
Do not close communications sockets when the number of active queries |
||||
|
drops to zero. |
||||
|
.TP 23 |
||||
|
.B ARES_FLAG_NOSEARCH |
||||
|
Do not use the default search domains; only query hostnames as-is or |
||||
|
as aliases. |
||||
|
.TP 23 |
||||
|
.B ARES_FLAG_NOALIASES |
||||
|
Do not honor the HOSTALIASES environment variable, which normally |
||||
|
specifies a file of hostname translations. |
||||
|
.TP 23 |
||||
|
.B ARES_FLAG_NOCHECKRESP |
||||
|
Do not discard responses with the SERVFAIL, NOTIMP, or REFUSED |
||||
|
response code or responses whose questions don't match the questions |
||||
|
in the request. Primarily useful for writing clients which might be |
||||
|
used to test or debug name servers. |
||||
|
.SH RETURN VALUES |
||||
|
.I ares_init |
||||
|
or |
||||
|
.I ares_init_options |
||||
|
can return any of the following values: |
||||
|
.TP 14 |
||||
|
.B ARES_SUCCESS |
||||
|
Initialization succeeded. |
||||
|
.TP 14 |
||||
|
.B ARES_EFILE |
||||
|
A configuration file could not be read. |
||||
|
.TP 14 |
||||
|
.B ARES_ENOMEM |
||||
|
The process's available memory was exhausted. |
||||
|
.TP 14 |
||||
|
.B ARES_ENOTINITIALIZED |
||||
|
c-ares library initialization not yet performed. |
||||
|
.SH NOTES |
||||
|
When initializing from |
||||
|
.B /etc/resolv.conf, |
||||
|
.BR ares_init (3) |
||||
|
reads the |
||||
|
.I domain |
||||
|
and |
||||
|
.I search |
||||
|
directives to allow lookups of short names relative to the domains |
||||
|
specified. The |
||||
|
.I domain |
||||
|
and |
||||
|
.I search |
||||
|
directives override one another. If more that one instance of either |
||||
|
.I domain |
||||
|
or |
||||
|
.I search |
||||
|
directives is specified, the last occurence wins. For more information, |
||||
|
please see the |
||||
|
.BR resolv.conf (5) |
||||
|
manual page. |
||||
|
.SH SEE ALSO |
||||
|
.BR ares_destroy(3), |
||||
|
.BR ares_dup(3), |
||||
|
.BR ares_library_init(3), |
||||
|
.BR ares_set_servers(3) |
||||
|
.SH AUTHOR |
||||
|
Greg Hudson, MIT Information Systems |
||||
|
.br |
||||
|
Copyright 1998 by the Massachusetts Institute of Technology. |
||||
|
.br |
||||
|
Copyright (C) 2004-2010 by Daniel Stenberg. |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue