Browse Source

deps: upgrade to c-ares v1.12.0

Updated with manual config for Android
Updated with automatic for sunos, *bsd, darwin, linux, aix

PR-URL: https://github.com/nodejs/node/pull/15378
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
v9.x-staging
Rod Vagg 8 years ago
committed by Ruben Bridgewater
parent
commit
a9f125449e
No known key found for this signature in database GPG Key ID: F07496B3EB3C1762
  1. 15
      deps/cares/LICENSE.md
  2. 1
      deps/cares/cares.gyp
  3. 79
      deps/cares/config/aix/ares_config.h
  4. 88
      deps/cares/config/android/ares_config.h
  5. 78
      deps/cares/config/darwin/ares_config.h
  6. 84
      deps/cares/config/freebsd/ares_config.h
  7. 88
      deps/cares/config/linux/ares_config.h
  8. 82
      deps/cares/config/netbsd/ares_config.h
  9. 82
      deps/cares/config/openbsd/ares_config.h
  10. 78
      deps/cares/config/sunos/ares_config.h
  11. 26
      deps/cares/get_ver.awk
  12. 1
      deps/cares/include/ares.h
  13. 157
      deps/cares/include/ares_build.h
  14. 7
      deps/cares/include/ares_rules.h
  15. 8
      deps/cares/include/ares_version.h
  16. 24
      deps/cares/src/AUTHORS
  17. 18
      deps/cares/src/README.cares
  18. 59
      deps/cares/src/RELEASE-NOTES
  19. 1
      deps/cares/src/ares_getnameinfo.c
  20. 34
      deps/cares/src/ares_init.c
  21. 6
      deps/cares/src/ares_ipv6.h
  22. 3
      deps/cares/src/ares_library_init.c
  23. 36
      deps/cares/src/ares_nowarn.c
  24. 1
      deps/cares/src/ares_process.c
  25. 4
      deps/cares/src/ares_setup.h
  26. 18
      deps/cares/src/config-win32.h

15
deps/cares/LICENSE.md

@ -0,0 +1,15 @@
# c-ares license
Copyright (c) 2007 - 2016, Daniel Stenberg with many contributors, see AUTHORS
file.
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.

1
deps/cares/cares.gyp

@ -111,6 +111,7 @@
'defines': [ 'CARES_BUILDING_LIBRARY' ] 'defines': [ 'CARES_BUILDING_LIBRARY' ]
}], }],
[ 'OS=="win"', { [ 'OS=="win"', {
'defines': [ 'CARES_PULL_WS2TCPIP_H=1' ],
'include_dirs': [ 'config/win32' ], 'include_dirs': [ 'config/win32' ],
'sources': [ 'sources': [
'src/config-win32.h', 'src/config-win32.h',

79
deps/cares/config/aix/ares_config.h

@ -10,21 +10,24 @@
/* when building as static part of libcurl */ /* when building as static part of libcurl */
/* #undef BUILDING_LIBCURL */ /* #undef BUILDING_LIBCURL */
/* when building c-ares library */ /* Defined for build that exposes internal static functions for testing. */
/* #undef CARES_BUILDING_LIBRARY */ /* #undef CARES_EXPOSE_STATICS */
/* when not building a shared library */ /* Defined for build with symbol hiding. */
/* #undef CARES_STATICLIB */ /* #undef CARES_SYMBOL_HIDING */
/* Define to 1 to enable hiding of library internal symbols. */
#define CARES_SYMBOL_HIDING 1
/* Definition to make a library symbol externally visible. */ /* Definition to make a library symbol externally visible. */
#define CARES_SYMBOL_SCOPE_EXTERN __attribute__ ((visibility ("default"))) /* #undef CARES_SYMBOL_SCOPE_EXTERN */
/* Use resolver library to configure cares */
/* #undef CARES_USE_LIBRESOLV */
/* if a /etc/inet dir is being used */ /* if a /etc/inet dir is being used */
/* #undef ETC_INET */ /* #undef ETC_INET */
/* Define to the type of arg 2 for gethostname. */
#define GETHOSTNAME_TYPE_ARG2 size_t
/* Define to the type qualifier of arg 1 for getnameinfo. */ /* Define to the type qualifier of arg 1 for getnameinfo. */
#define GETNAMEINFO_QUAL_ARG1 const #define GETNAMEINFO_QUAL_ARG1 const
@ -79,6 +82,9 @@
/* Define to 1 if you have the connect function. */ /* Define to 1 if you have the connect function. */
#define HAVE_CONNECT 1 #define HAVE_CONNECT 1
/* define if the compiler supports basic C++11 syntax */
#define HAVE_CXX11 1
/* Define to 1 if you have the <dlfcn.h> header file. */ /* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1 #define HAVE_DLFCN_H 1
@ -103,6 +109,9 @@
/* Define to 1 if the getaddrinfo function is threadsafe. */ /* Define to 1 if the getaddrinfo function is threadsafe. */
#define HAVE_GETADDRINFO_THREADSAFE 1 #define HAVE_GETADDRINFO_THREADSAFE 1
/* Define to 1 if you have the getenv function. */
#define HAVE_GETENV 1
/* Define to 1 if you have the gethostbyaddr function. */ /* Define to 1 if you have the gethostbyaddr function. */
#define HAVE_GETHOSTBYADDR 1 #define HAVE_GETHOSTBYADDR 1
@ -124,11 +133,8 @@
/* Define to 1 if you have the `if_indextoname' function. */ /* Define to 1 if you have the `if_indextoname' function. */
#define HAVE_IF_INDEXTONAME 1 #define HAVE_IF_INDEXTONAME 1
/* Define to 1 if you have the `inet_net_pton' function. */ /* Define to 1 if you have a IPv6 capable working inet_net_pton function. */
#define HAVE_INET_NET_PTON 1 /* #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 to 1 if you have a IPv6 capable working inet_ntop function. */
#define HAVE_INET_NTOP 1 #define HAVE_INET_NTOP 1
@ -329,13 +335,9 @@
/* Define to 1 if you have the ws2tcpip.h header file. */ /* Define to 1 if you have the ws2tcpip.h header file. */
/* #undef HAVE_WS2TCPIP_H */ /* #undef HAVE_WS2TCPIP_H */
/* Define to the sub-directory in which libtool stores uninstalled libraries. /* Define to the sub-directory where libtool stores uninstalled libraries. */
*/
#define LT_OBJDIR ".libs/" #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 */ /* Define to 1 if you need the malloc.h header file even with stdlib.h */
/* #undef NEED_MALLOC_H */ /* #undef NEED_MALLOC_H */
@ -348,23 +350,20 @@
/* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */ /* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */
#define NEED_THREAD_SAFE 1 #define NEED_THREAD_SAFE 1
/* Define to 1 if your C compiler doesn't accept -c and -o together. */
/* #undef NO_MINUS_C_MINUS_O */
/* cpu-machine-OS */ /* cpu-machine-OS */
#define OS "rs6000-ibm-aix" #define OS "powerpc-ibm-aix6.1.9.0"
/* Name of package */ /* Name of package */
#define PACKAGE "c-ares" #define PACKAGE "c-ares"
/* Define to the address where bug reports for this package should be sent. */ /* 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 PACKAGE_BUGREPORT "c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares"
/* Define to the full name of this package. */ /* Define to the full name of this package. */
#define PACKAGE_NAME "c-ares" #define PACKAGE_NAME "c-ares"
/* Define to the full name and version of this package. */ /* Define to the full name and version of this package. */
#define PACKAGE_STRING "c-ares 1.7.1" #define PACKAGE_STRING "c-ares 1.12.0"
/* Define to the one symbol short name of this package. */ /* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "c-ares" #define PACKAGE_TARNAME "c-ares"
@ -373,11 +372,14 @@
#define PACKAGE_URL "" #define PACKAGE_URL ""
/* Define to the version of this package. */ /* Define to the version of this package. */
#define PACKAGE_VERSION "1.7.1" #define PACKAGE_VERSION "1.12.0"
/* a suitable file/device to read random data from */ /* a suitable file/device to read random data from */
#define RANDOM_FILE "/dev/urandom" #define RANDOM_FILE "/dev/urandom"
/* Define to the type qualifier pointed by arg 5 for recvfrom. */
#define RECVFROM_QUAL_ARG5
/* Define to the type of arg 1 for recvfrom. */ /* Define to the type of arg 1 for recvfrom. */
#define RECVFROM_TYPE_ARG1 int #define RECVFROM_TYPE_ARG1 int
@ -444,24 +446,6 @@
/* Define to the function return type for send. */ /* Define to the function return type for send. */
#define SEND_TYPE_RETV ssize_t #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 to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1 #define STDC_HEADERS 1
@ -472,7 +456,7 @@
/* #undef USE_BLOCKING_SOCKETS */ /* #undef USE_BLOCKING_SOCKETS */
/* Version number of package */ /* Version number of package */
#define VERSION "1.7.1" #define VERSION "1.12.0"
/* Define to avoid automatic inclusion of winsock.h */ /* Define to avoid automatic inclusion of winsock.h */
/* #undef WIN32_LEAN_AND_MEAN */ /* #undef WIN32_LEAN_AND_MEAN */
@ -494,6 +478,11 @@
# define _ALL_SOURCE 1 # define _ALL_SOURCE 1
#endif #endif
/* Enable large inode numbers on Mac OS X 10.5. */
#ifndef _DARWIN_USE_64_BIT_INODE
# define _DARWIN_USE_64_BIT_INODE 1
#endif
/* Number of bits in a file offset, on hosts where this is settable. */ /* Number of bits in a file offset, on hosts where this is settable. */
/* #undef _FILE_OFFSET_BITS */ /* #undef _FILE_OFFSET_BITS */
@ -511,5 +500,3 @@
/* the signed version of size_t */ /* the signed version of size_t */
/* #undef ssize_t */ /* #undef ssize_t */
#define HAVE_GETENV 1

88
deps/cares/config/android/ares_config.h

@ -10,21 +10,24 @@
/* when building as static part of libcurl */ /* when building as static part of libcurl */
/* #undef BUILDING_LIBCURL */ /* #undef BUILDING_LIBCURL */
/* when building c-ares library */ /* Defined for build that exposes internal static functions for testing. */
/* #undef CARES_BUILDING_LIBRARY */ /* #undef CARES_EXPOSE_STATICS */
/* when not building a shared library */ /* Defined for build with symbol hiding. */
/* #undef CARES_STATICLIB */
/* Define to 1 to enable hiding of library internal symbols. */
#define CARES_SYMBOL_HIDING 1 #define CARES_SYMBOL_HIDING 1
/* Definition to make a library symbol externally visible. */ /* Definition to make a library symbol externally visible. */
#define CARES_SYMBOL_SCOPE_EXTERN __attribute__ ((visibility ("default"))) #define CARES_SYMBOL_SCOPE_EXTERN __attribute__ ((__visibility__ ("default")))
/* Use resolver library to configure cares */
/* #undef CARES_USE_LIBRESOLV */
/* if a /etc/inet dir is being used */ /* if a /etc/inet dir is being used */
/* #undef ETC_INET */ /* #undef ETC_INET */
/* Define to the type of arg 2 for gethostname. */
#define GETHOSTNAME_TYPE_ARG2 size_t
/* Define to the type qualifier of arg 1 for getnameinfo. */ /* Define to the type qualifier of arg 1 for getnameinfo. */
#define GETNAMEINFO_QUAL_ARG1 const #define GETNAMEINFO_QUAL_ARG1 const
@ -35,10 +38,10 @@
#define GETNAMEINFO_TYPE_ARG2 socklen_t #define GETNAMEINFO_TYPE_ARG2 socklen_t
/* Define to the type of args 4 and 6 for getnameinfo. */ /* Define to the type of args 4 and 6 for getnameinfo. */
#define GETNAMEINFO_TYPE_ARG46 size_t #define GETNAMEINFO_TYPE_ARG46 socklen_t
/* Define to the type of arg 7 for getnameinfo. */ /* Define to the type of arg 7 for getnameinfo. */
#define GETNAMEINFO_TYPE_ARG7 unsigned int #define GETNAMEINFO_TYPE_ARG7 int
/* Specifies the number of arguments to getservbyport_r */ /* Specifies the number of arguments to getservbyport_r */
#define GETSERVBYPORT_R_ARGS 6 #define GETSERVBYPORT_R_ARGS 6
@ -79,6 +82,9 @@
/* Define to 1 if you have the connect function. */ /* Define to 1 if you have the connect function. */
#define HAVE_CONNECT 1 #define HAVE_CONNECT 1
/* define if the compiler supports basic C++11 syntax */
#define HAVE_CXX11 1
/* Define to 1 if you have the <dlfcn.h> header file. */ /* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1 #define HAVE_DLFCN_H 1
@ -103,6 +109,9 @@
/* Define to 1 if the getaddrinfo function is threadsafe. */ /* Define to 1 if the getaddrinfo function is threadsafe. */
#define HAVE_GETADDRINFO_THREADSAFE 1 #define HAVE_GETADDRINFO_THREADSAFE 1
/* Define to 1 if you have the getenv function. */
#define HAVE_GETENV 1
/* Define to 1 if you have the gethostbyaddr function. */ /* Define to 1 if you have the gethostbyaddr function. */
#define HAVE_GETHOSTBYADDR 1 #define HAVE_GETHOSTBYADDR 1
@ -124,12 +133,9 @@
/* Define to 1 if you have the `if_indextoname' function. */ /* Define to 1 if you have the `if_indextoname' function. */
#define HAVE_IF_INDEXTONAME 1 #define HAVE_IF_INDEXTONAME 1
/* Define to 1 if you have the `inet_net_pton' function. */ /* Define to 1 if you have a IPv6 capable working inet_net_pton function. */
/* #undef HAVE_INET_NET_PTON */ /* #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 to 1 if you have a IPv6 capable working inet_ntop function. */
#define HAVE_INET_NTOP 1 #define HAVE_INET_NTOP 1
@ -329,13 +335,9 @@
/* Define to 1 if you have the ws2tcpip.h header file. */ /* Define to 1 if you have the ws2tcpip.h header file. */
/* #undef HAVE_WS2TCPIP_H */ /* #undef HAVE_WS2TCPIP_H */
/* Define to the sub-directory in which libtool stores uninstalled libraries. /* Define to the sub-directory where libtool stores uninstalled libraries. */
*/
#define LT_OBJDIR ".libs/" #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 */ /* Define to 1 if you need the malloc.h header file even with stdlib.h */
/* #undef NEED_MALLOC_H */ /* #undef NEED_MALLOC_H */
@ -348,9 +350,6 @@
/* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */ /* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */
/* #undef NEED_THREAD_SAFE */ /* #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 */ /* cpu-machine-OS */
#define OS "i686-pc-linux-gnu" #define OS "i686-pc-linux-gnu"
@ -358,13 +357,13 @@
#define PACKAGE "c-ares" #define PACKAGE "c-ares"
/* Define to the address where bug reports for this package should be sent. */ /* 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 PACKAGE_BUGREPORT "c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares"
/* Define to the full name of this package. */ /* Define to the full name of this package. */
#define PACKAGE_NAME "c-ares" #define PACKAGE_NAME "c-ares"
/* Define to the full name and version of this package. */ /* Define to the full name and version of this package. */
#define PACKAGE_STRING "c-ares 1.7.1" #define PACKAGE_STRING "c-ares 1.12.0"
/* Define to the one symbol short name of this package. */ /* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "c-ares" #define PACKAGE_TARNAME "c-ares"
@ -373,11 +372,14 @@
#define PACKAGE_URL "" #define PACKAGE_URL ""
/* Define to the version of this package. */ /* Define to the version of this package. */
#define PACKAGE_VERSION "1.7.1" #define PACKAGE_VERSION "1.12.0"
/* a suitable file/device to read random data from */ /* a suitable file/device to read random data from */
#define RANDOM_FILE "/dev/urandom" #define RANDOM_FILE "/dev/urandom"
/* Define to the type qualifier pointed by arg 5 for recvfrom. */
#define RECVFROM_QUAL_ARG5
/* Define to the type of arg 1 for recvfrom. */ /* Define to the type of arg 1 for recvfrom. */
#define RECVFROM_TYPE_ARG1 int #define RECVFROM_TYPE_ARG1 int
@ -406,7 +408,7 @@
/* #undef RECVFROM_TYPE_ARG6_IS_VOID */ /* #undef RECVFROM_TYPE_ARG6_IS_VOID */
/* Define to the function return type for recvfrom. */ /* Define to the function return type for recvfrom. */
#define RECVFROM_TYPE_RETV int #define RECVFROM_TYPE_RETV ssize_t
/* Define to the type of arg 1 for recv. */ /* Define to the type of arg 1 for recv. */
#define RECV_TYPE_ARG1 int #define RECV_TYPE_ARG1 int
@ -421,7 +423,7 @@
#define RECV_TYPE_ARG4 int #define RECV_TYPE_ARG4 int
/* Define to the function return type for recv. */ /* Define to the function return type for recv. */
#define RECV_TYPE_RETV int #define RECV_TYPE_RETV ssize_t
/* Define as the return type of signal handlers (`int' or `void'). */ /* Define as the return type of signal handlers (`int' or `void'). */
#define RETSIGTYPE void #define RETSIGTYPE void
@ -442,25 +444,7 @@
#define SEND_TYPE_ARG4 int #define SEND_TYPE_ARG4 int
/* Define to the function return type for send. */ /* Define to the function return type for send. */
#define SEND_TYPE_RETV int #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 to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1 #define STDC_HEADERS 1
@ -472,7 +456,10 @@
/* #undef USE_BLOCKING_SOCKETS */ /* #undef USE_BLOCKING_SOCKETS */
/* Version number of package */ /* Version number of package */
#define VERSION "1.7.1" #define VERSION "1.12.0"
/* 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 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */ significant byte first (like Motorola and SPARC, unlike Intel). */
@ -491,8 +478,13 @@
/* # undef _ALL_SOURCE */ /* # undef _ALL_SOURCE */
#endif #endif
/* Enable large inode numbers on Mac OS X 10.5. */
#ifndef _DARWIN_USE_64_BIT_INODE
# define _DARWIN_USE_64_BIT_INODE 1
#endif
/* Number of bits in a file offset, on hosts where this is settable. */ /* Number of bits in a file offset, on hosts where this is settable. */
#define _FILE_OFFSET_BITS 64 /* #undef _FILE_OFFSET_BITS */
/* Define for large files, on AIX-style hosts. */ /* Define for large files, on AIX-style hosts. */
/* #undef _LARGE_FILES */ /* #undef _LARGE_FILES */
@ -508,5 +500,3 @@
/* the signed version of size_t */ /* the signed version of size_t */
/* #undef ssize_t */ /* #undef ssize_t */
#define HAVE_GETENV 1

78
deps/cares/config/darwin/ares_config.h

@ -10,21 +10,24 @@
/* when building as static part of libcurl */ /* when building as static part of libcurl */
/* #undef BUILDING_LIBCURL */ /* #undef BUILDING_LIBCURL */
/* when building c-ares library */ /* Defined for build that exposes internal static functions for testing. */
/* #undef CARES_BUILDING_LIBRARY */ /* #undef CARES_EXPOSE_STATICS */
/* when not building a shared library */ /* Defined for build with symbol hiding. */
/* #undef CARES_STATICLIB */
/* Define to 1 to enable hiding of library internal symbols. */
#define CARES_SYMBOL_HIDING 1 #define CARES_SYMBOL_HIDING 1
/* Definition to make a library symbol externally visible. */ /* Definition to make a library symbol externally visible. */
#define CARES_SYMBOL_SCOPE_EXTERN __attribute__ ((visibility ("default"))) #define CARES_SYMBOL_SCOPE_EXTERN __attribute__ ((__visibility__ ("default")))
/* Use resolver library to configure cares */
/* #undef CARES_USE_LIBRESOLV */
/* if a /etc/inet dir is being used */ /* if a /etc/inet dir is being used */
/* #undef ETC_INET */ /* #undef ETC_INET */
/* Define to the type of arg 2 for gethostname. */
#define GETHOSTNAME_TYPE_ARG2 size_t
/* Define to the type qualifier of arg 1 for getnameinfo. */ /* Define to the type qualifier of arg 1 for getnameinfo. */
#define GETNAMEINFO_QUAL_ARG1 const #define GETNAMEINFO_QUAL_ARG1 const
@ -79,6 +82,9 @@
/* Define to 1 if you have the connect function. */ /* Define to 1 if you have the connect function. */
#define HAVE_CONNECT 1 #define HAVE_CONNECT 1
/* define if the compiler supports basic C++11 syntax */
#define HAVE_CXX11 1
/* Define to 1 if you have the <dlfcn.h> header file. */ /* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1 #define HAVE_DLFCN_H 1
@ -103,6 +109,9 @@
/* Define to 1 if the getaddrinfo function is threadsafe. */ /* Define to 1 if the getaddrinfo function is threadsafe. */
#define HAVE_GETADDRINFO_THREADSAFE 1 #define HAVE_GETADDRINFO_THREADSAFE 1
/* Define to 1 if you have the getenv function. */
#define HAVE_GETENV 1
/* Define to 1 if you have the gethostbyaddr function. */ /* Define to 1 if you have the gethostbyaddr function. */
#define HAVE_GETHOSTBYADDR 1 #define HAVE_GETHOSTBYADDR 1
@ -124,12 +133,9 @@
/* Define to 1 if you have the `if_indextoname' function. */ /* Define to 1 if you have the `if_indextoname' function. */
#define HAVE_IF_INDEXTONAME 1 #define HAVE_IF_INDEXTONAME 1
/* Define to 1 if you have the `inet_net_pton' function. */ /* Define to 1 if you have a IPv6 capable working inet_net_pton function. */
#define HAVE_INET_NET_PTON 1 #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 to 1 if you have a IPv6 capable working inet_ntop function. */
#define HAVE_INET_NTOP 1 #define HAVE_INET_NTOP 1
@ -329,13 +335,9 @@
/* Define to 1 if you have the ws2tcpip.h header file. */ /* Define to 1 if you have the ws2tcpip.h header file. */
/* #undef HAVE_WS2TCPIP_H */ /* #undef HAVE_WS2TCPIP_H */
/* Define to the sub-directory in which libtool stores uninstalled libraries. /* Define to the sub-directory where libtool stores uninstalled libraries. */
*/
#define LT_OBJDIR ".libs/" #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 */ /* Define to 1 if you need the malloc.h header file even with stdlib.h */
/* #undef NEED_MALLOC_H */ /* #undef NEED_MALLOC_H */
@ -348,23 +350,20 @@
/* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */ /* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */
/* #undef NEED_THREAD_SAFE */ /* #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 */ /* cpu-machine-OS */
#define OS "i386-apple-darwin9.8.0" #define OS "x86_64-apple-darwin14.5.0"
/* Name of package */ /* Name of package */
#define PACKAGE "c-ares" #define PACKAGE "c-ares"
/* Define to the address where bug reports for this package should be sent. */ /* 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 PACKAGE_BUGREPORT "c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares"
/* Define to the full name of this package. */ /* Define to the full name of this package. */
#define PACKAGE_NAME "c-ares" #define PACKAGE_NAME "c-ares"
/* Define to the full name and version of this package. */ /* Define to the full name and version of this package. */
#define PACKAGE_STRING "c-ares 1.7.1" #define PACKAGE_STRING "c-ares 1.12.0"
/* Define to the one symbol short name of this package. */ /* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "c-ares" #define PACKAGE_TARNAME "c-ares"
@ -373,11 +372,14 @@
#define PACKAGE_URL "" #define PACKAGE_URL ""
/* Define to the version of this package. */ /* Define to the version of this package. */
#define PACKAGE_VERSION "1.7.1" #define PACKAGE_VERSION "1.12.0"
/* a suitable file/device to read random data from */ /* a suitable file/device to read random data from */
#define RANDOM_FILE "/dev/urandom" #define RANDOM_FILE "/dev/urandom"
/* Define to the type qualifier pointed by arg 5 for recvfrom. */
#define RECVFROM_QUAL_ARG5
/* Define to the type of arg 1 for recvfrom. */ /* Define to the type of arg 1 for recvfrom. */
#define RECVFROM_TYPE_ARG1 int #define RECVFROM_TYPE_ARG1 int
@ -444,24 +446,6 @@
/* Define to the function return type for send. */ /* Define to the function return type for send. */
#define SEND_TYPE_RETV ssize_t #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 to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1 #define STDC_HEADERS 1
@ -472,7 +456,10 @@
/* #undef USE_BLOCKING_SOCKETS */ /* #undef USE_BLOCKING_SOCKETS */
/* Version number of package */ /* Version number of package */
#define VERSION "1.7.1" #define VERSION "1.12.0"
/* 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 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */ significant byte first (like Motorola and SPARC, unlike Intel). */
@ -491,6 +478,11 @@
/* # undef _ALL_SOURCE */ /* # undef _ALL_SOURCE */
#endif #endif
/* Enable large inode numbers on Mac OS X 10.5. */
#ifndef _DARWIN_USE_64_BIT_INODE
# define _DARWIN_USE_64_BIT_INODE 1
#endif
/* Number of bits in a file offset, on hosts where this is settable. */ /* Number of bits in a file offset, on hosts where this is settable. */
/* #undef _FILE_OFFSET_BITS */ /* #undef _FILE_OFFSET_BITS */
@ -508,5 +500,3 @@
/* the signed version of size_t */ /* the signed version of size_t */
/* #undef ssize_t */ /* #undef ssize_t */
#define HAVE_GETENV 1

84
deps/cares/config/freebsd/ares_config.h

@ -10,21 +10,24 @@
/* when building as static part of libcurl */ /* when building as static part of libcurl */
/* #undef BUILDING_LIBCURL */ /* #undef BUILDING_LIBCURL */
/* when building c-ares library */ /* Defined for build that exposes internal static functions for testing. */
/* #undef CARES_BUILDING_LIBRARY */ /* #undef CARES_EXPOSE_STATICS */
/* when not building a shared library */ /* Defined for build with symbol hiding. */
/* #undef CARES_STATICLIB */
/* Define to 1 to enable hiding of library internal symbols. */
#define CARES_SYMBOL_HIDING 1 #define CARES_SYMBOL_HIDING 1
/* Definition to make a library symbol externally visible. */ /* Definition to make a library symbol externally visible. */
#define CARES_SYMBOL_SCOPE_EXTERN __attribute__ ((visibility ("default"))) #define CARES_SYMBOL_SCOPE_EXTERN __attribute__ ((__visibility__ ("default")))
/* Use resolver library to configure cares */
/* #undef CARES_USE_LIBRESOLV */
/* if a /etc/inet dir is being used */ /* if a /etc/inet dir is being used */
/* #undef ETC_INET */ /* #undef ETC_INET */
/* Define to the type of arg 2 for gethostname. */
#define GETHOSTNAME_TYPE_ARG2 size_t
/* Define to the type qualifier of arg 1 for getnameinfo. */ /* Define to the type qualifier of arg 1 for getnameinfo. */
#define GETNAMEINFO_QUAL_ARG1 const #define GETNAMEINFO_QUAL_ARG1 const
@ -79,6 +82,9 @@
/* Define to 1 if you have the connect function. */ /* Define to 1 if you have the connect function. */
#define HAVE_CONNECT 1 #define HAVE_CONNECT 1
/* define if the compiler supports basic C++11 syntax */
#define HAVE_CXX11 1
/* Define to 1 if you have the <dlfcn.h> header file. */ /* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1 #define HAVE_DLFCN_H 1
@ -103,6 +109,9 @@
/* Define to 1 if the getaddrinfo function is threadsafe. */ /* Define to 1 if the getaddrinfo function is threadsafe. */
#define HAVE_GETADDRINFO_THREADSAFE 1 #define HAVE_GETADDRINFO_THREADSAFE 1
/* Define to 1 if you have the getenv function. */
#define HAVE_GETENV 1
/* Define to 1 if you have the gethostbyaddr function. */ /* Define to 1 if you have the gethostbyaddr function. */
#define HAVE_GETHOSTBYADDR 1 #define HAVE_GETHOSTBYADDR 1
@ -124,12 +133,9 @@
/* Define to 1 if you have the `if_indextoname' function. */ /* Define to 1 if you have the `if_indextoname' function. */
#define HAVE_IF_INDEXTONAME 1 #define HAVE_IF_INDEXTONAME 1
/* Define to 1 if you have the `inet_net_pton' function. */ /* Define to 1 if you have a IPv6 capable working inet_net_pton function. */
#define HAVE_INET_NET_PTON 1 #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 to 1 if you have a IPv6 capable working inet_ntop function. */
#define HAVE_INET_NTOP 1 #define HAVE_INET_NTOP 1
@ -329,13 +335,9 @@
/* Define to 1 if you have the ws2tcpip.h header file. */ /* Define to 1 if you have the ws2tcpip.h header file. */
/* #undef HAVE_WS2TCPIP_H */ /* #undef HAVE_WS2TCPIP_H */
/* Define to the sub-directory in which libtool stores uninstalled libraries. /* Define to the sub-directory where libtool stores uninstalled libraries. */
*/
#define LT_OBJDIR ".libs/" #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 */ /* Define to 1 if you need the malloc.h header file even with stdlib.h */
/* #undef NEED_MALLOC_H */ /* #undef NEED_MALLOC_H */
@ -348,23 +350,20 @@
/* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */ /* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */
/* #undef NEED_THREAD_SAFE */ /* #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 */ /* cpu-machine-OS */
#define OS "i386-portbld-freebsd8.0" #define OS "x86_64-unknown-freebsd10.3"
/* Name of package */ /* Name of package */
#define PACKAGE "c-ares" #define PACKAGE "c-ares"
/* Define to the address where bug reports for this package should be sent. */ /* 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 PACKAGE_BUGREPORT "c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares"
/* Define to the full name of this package. */ /* Define to the full name of this package. */
#define PACKAGE_NAME "c-ares" #define PACKAGE_NAME "c-ares"
/* Define to the full name and version of this package. */ /* Define to the full name and version of this package. */
#define PACKAGE_STRING "c-ares 1.7.1" #define PACKAGE_STRING "c-ares 1.12.0"
/* Define to the one symbol short name of this package. */ /* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "c-ares" #define PACKAGE_TARNAME "c-ares"
@ -373,11 +372,14 @@
#define PACKAGE_URL "" #define PACKAGE_URL ""
/* Define to the version of this package. */ /* Define to the version of this package. */
#define PACKAGE_VERSION "1.7.1" #define PACKAGE_VERSION "1.12.0"
/* a suitable file/device to read random data from */ /* a suitable file/device to read random data from */
#define RANDOM_FILE "/dev/urandom" #define RANDOM_FILE "/dev/urandom"
/* Define to the type qualifier pointed by arg 5 for recvfrom. */
#define RECVFROM_QUAL_ARG5
/* Define to the type of arg 1 for recvfrom. */ /* Define to the type of arg 1 for recvfrom. */
#define RECVFROM_TYPE_ARG1 int #define RECVFROM_TYPE_ARG1 int
@ -406,7 +408,7 @@
/* #undef RECVFROM_TYPE_ARG6_IS_VOID */ /* #undef RECVFROM_TYPE_ARG6_IS_VOID */
/* Define to the function return type for recvfrom. */ /* Define to the function return type for recvfrom. */
#define RECVFROM_TYPE_RETV int #define RECVFROM_TYPE_RETV ssize_t
/* Define to the type of arg 1 for recv. */ /* Define to the type of arg 1 for recv. */
#define RECV_TYPE_ARG1 int #define RECV_TYPE_ARG1 int
@ -421,7 +423,7 @@
#define RECV_TYPE_ARG4 int #define RECV_TYPE_ARG4 int
/* Define to the function return type for recv. */ /* Define to the function return type for recv. */
#define RECV_TYPE_RETV int #define RECV_TYPE_RETV ssize_t
/* Define as the return type of signal handlers (`int' or `void'). */ /* Define as the return type of signal handlers (`int' or `void'). */
#define RETSIGTYPE void #define RETSIGTYPE void
@ -442,25 +444,7 @@
#define SEND_TYPE_ARG4 int #define SEND_TYPE_ARG4 int
/* Define to the function return type for send. */ /* Define to the function return type for send. */
#define SEND_TYPE_RETV int #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 to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1 #define STDC_HEADERS 1
@ -472,7 +456,10 @@
/* #undef USE_BLOCKING_SOCKETS */ /* #undef USE_BLOCKING_SOCKETS */
/* Version number of package */ /* Version number of package */
#define VERSION "1.7.1" #define VERSION "1.12.0"
/* 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 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */ significant byte first (like Motorola and SPARC, unlike Intel). */
@ -491,6 +478,11 @@
/* # undef _ALL_SOURCE */ /* # undef _ALL_SOURCE */
#endif #endif
/* Enable large inode numbers on Mac OS X 10.5. */
#ifndef _DARWIN_USE_64_BIT_INODE
# define _DARWIN_USE_64_BIT_INODE 1
#endif
/* Number of bits in a file offset, on hosts where this is settable. */ /* Number of bits in a file offset, on hosts where this is settable. */
/* #undef _FILE_OFFSET_BITS */ /* #undef _FILE_OFFSET_BITS */
@ -508,5 +500,3 @@
/* the signed version of size_t */ /* the signed version of size_t */
/* #undef ssize_t */ /* #undef ssize_t */
#define HAVE_GETENV 1

88
deps/cares/config/linux/ares_config.h

@ -10,21 +10,24 @@
/* when building as static part of libcurl */ /* when building as static part of libcurl */
/* #undef BUILDING_LIBCURL */ /* #undef BUILDING_LIBCURL */
/* when building c-ares library */ /* Defined for build that exposes internal static functions for testing. */
/* #undef CARES_BUILDING_LIBRARY */ /* #undef CARES_EXPOSE_STATICS */
/* when not building a shared library */ /* Defined for build with symbol hiding. */
/* #undef CARES_STATICLIB */
/* Define to 1 to enable hiding of library internal symbols. */
#define CARES_SYMBOL_HIDING 1 #define CARES_SYMBOL_HIDING 1
/* Definition to make a library symbol externally visible. */ /* Definition to make a library symbol externally visible. */
#define CARES_SYMBOL_SCOPE_EXTERN __attribute__ ((visibility ("default"))) #define CARES_SYMBOL_SCOPE_EXTERN __attribute__ ((__visibility__ ("default")))
/* Use resolver library to configure cares */
/* #undef CARES_USE_LIBRESOLV */
/* if a /etc/inet dir is being used */ /* if a /etc/inet dir is being used */
/* #undef ETC_INET */ /* #undef ETC_INET */
/* Define to the type of arg 2 for gethostname. */
#define GETHOSTNAME_TYPE_ARG2 size_t
/* Define to the type qualifier of arg 1 for getnameinfo. */ /* Define to the type qualifier of arg 1 for getnameinfo. */
#define GETNAMEINFO_QUAL_ARG1 const #define GETNAMEINFO_QUAL_ARG1 const
@ -35,10 +38,10 @@
#define GETNAMEINFO_TYPE_ARG2 socklen_t #define GETNAMEINFO_TYPE_ARG2 socklen_t
/* Define to the type of args 4 and 6 for getnameinfo. */ /* Define to the type of args 4 and 6 for getnameinfo. */
#define GETNAMEINFO_TYPE_ARG46 size_t #define GETNAMEINFO_TYPE_ARG46 socklen_t
/* Define to the type of arg 7 for getnameinfo. */ /* Define to the type of arg 7 for getnameinfo. */
#define GETNAMEINFO_TYPE_ARG7 unsigned int #define GETNAMEINFO_TYPE_ARG7 int
/* Specifies the number of arguments to getservbyport_r */ /* Specifies the number of arguments to getservbyport_r */
#define GETSERVBYPORT_R_ARGS 6 #define GETSERVBYPORT_R_ARGS 6
@ -79,6 +82,9 @@
/* Define to 1 if you have the connect function. */ /* Define to 1 if you have the connect function. */
#define HAVE_CONNECT 1 #define HAVE_CONNECT 1
/* define if the compiler supports basic C++11 syntax */
#define HAVE_CXX11 1
/* Define to 1 if you have the <dlfcn.h> header file. */ /* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1 #define HAVE_DLFCN_H 1
@ -103,6 +109,9 @@
/* Define to 1 if the getaddrinfo function is threadsafe. */ /* Define to 1 if the getaddrinfo function is threadsafe. */
#define HAVE_GETADDRINFO_THREADSAFE 1 #define HAVE_GETADDRINFO_THREADSAFE 1
/* Define to 1 if you have the getenv function. */
#define HAVE_GETENV 1
/* Define to 1 if you have the gethostbyaddr function. */ /* Define to 1 if you have the gethostbyaddr function. */
#define HAVE_GETHOSTBYADDR 1 #define HAVE_GETHOSTBYADDR 1
@ -124,12 +133,9 @@
/* Define to 1 if you have the `if_indextoname' function. */ /* Define to 1 if you have the `if_indextoname' function. */
#define HAVE_IF_INDEXTONAME 1 #define HAVE_IF_INDEXTONAME 1
/* Define to 1 if you have the `inet_net_pton' function. */ /* Define to 1 if you have a IPv6 capable working inet_net_pton function. */
/* #undef HAVE_INET_NET_PTON */ /* #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 to 1 if you have a IPv6 capable working inet_ntop function. */
#define HAVE_INET_NTOP 1 #define HAVE_INET_NTOP 1
@ -329,13 +335,9 @@
/* Define to 1 if you have the ws2tcpip.h header file. */ /* Define to 1 if you have the ws2tcpip.h header file. */
/* #undef HAVE_WS2TCPIP_H */ /* #undef HAVE_WS2TCPIP_H */
/* Define to the sub-directory in which libtool stores uninstalled libraries. /* Define to the sub-directory where libtool stores uninstalled libraries. */
*/
#define LT_OBJDIR ".libs/" #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 */ /* Define to 1 if you need the malloc.h header file even with stdlib.h */
/* #undef NEED_MALLOC_H */ /* #undef NEED_MALLOC_H */
@ -348,9 +350,6 @@
/* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */ /* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */
/* #undef NEED_THREAD_SAFE */ /* #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 */ /* cpu-machine-OS */
#define OS "i686-pc-linux-gnu" #define OS "i686-pc-linux-gnu"
@ -358,13 +357,13 @@
#define PACKAGE "c-ares" #define PACKAGE "c-ares"
/* Define to the address where bug reports for this package should be sent. */ /* 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 PACKAGE_BUGREPORT "c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares"
/* Define to the full name of this package. */ /* Define to the full name of this package. */
#define PACKAGE_NAME "c-ares" #define PACKAGE_NAME "c-ares"
/* Define to the full name and version of this package. */ /* Define to the full name and version of this package. */
#define PACKAGE_STRING "c-ares 1.7.1" #define PACKAGE_STRING "c-ares 1.12.0"
/* Define to the one symbol short name of this package. */ /* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "c-ares" #define PACKAGE_TARNAME "c-ares"
@ -373,11 +372,14 @@
#define PACKAGE_URL "" #define PACKAGE_URL ""
/* Define to the version of this package. */ /* Define to the version of this package. */
#define PACKAGE_VERSION "1.7.1" #define PACKAGE_VERSION "1.12.0"
/* a suitable file/device to read random data from */ /* a suitable file/device to read random data from */
#define RANDOM_FILE "/dev/urandom" #define RANDOM_FILE "/dev/urandom"
/* Define to the type qualifier pointed by arg 5 for recvfrom. */
#define RECVFROM_QUAL_ARG5
/* Define to the type of arg 1 for recvfrom. */ /* Define to the type of arg 1 for recvfrom. */
#define RECVFROM_TYPE_ARG1 int #define RECVFROM_TYPE_ARG1 int
@ -406,7 +408,7 @@
/* #undef RECVFROM_TYPE_ARG6_IS_VOID */ /* #undef RECVFROM_TYPE_ARG6_IS_VOID */
/* Define to the function return type for recvfrom. */ /* Define to the function return type for recvfrom. */
#define RECVFROM_TYPE_RETV int #define RECVFROM_TYPE_RETV ssize_t
/* Define to the type of arg 1 for recv. */ /* Define to the type of arg 1 for recv. */
#define RECV_TYPE_ARG1 int #define RECV_TYPE_ARG1 int
@ -421,7 +423,7 @@
#define RECV_TYPE_ARG4 int #define RECV_TYPE_ARG4 int
/* Define to the function return type for recv. */ /* Define to the function return type for recv. */
#define RECV_TYPE_RETV int #define RECV_TYPE_RETV ssize_t
/* Define as the return type of signal handlers (`int' or `void'). */ /* Define as the return type of signal handlers (`int' or `void'). */
#define RETSIGTYPE void #define RETSIGTYPE void
@ -442,25 +444,7 @@
#define SEND_TYPE_ARG4 int #define SEND_TYPE_ARG4 int
/* Define to the function return type for send. */ /* Define to the function return type for send. */
#define SEND_TYPE_RETV int #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 to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1 #define STDC_HEADERS 1
@ -472,7 +456,10 @@
/* #undef USE_BLOCKING_SOCKETS */ /* #undef USE_BLOCKING_SOCKETS */
/* Version number of package */ /* Version number of package */
#define VERSION "1.7.1" #define VERSION "1.12.0"
/* 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 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */ significant byte first (like Motorola and SPARC, unlike Intel). */
@ -491,8 +478,13 @@
/* # undef _ALL_SOURCE */ /* # undef _ALL_SOURCE */
#endif #endif
/* Enable large inode numbers on Mac OS X 10.5. */
#ifndef _DARWIN_USE_64_BIT_INODE
# define _DARWIN_USE_64_BIT_INODE 1
#endif
/* Number of bits in a file offset, on hosts where this is settable. */ /* Number of bits in a file offset, on hosts where this is settable. */
#define _FILE_OFFSET_BITS 64 /* #undef _FILE_OFFSET_BITS */
/* Define for large files, on AIX-style hosts. */ /* Define for large files, on AIX-style hosts. */
/* #undef _LARGE_FILES */ /* #undef _LARGE_FILES */
@ -508,5 +500,3 @@
/* the signed version of size_t */ /* the signed version of size_t */
/* #undef ssize_t */ /* #undef ssize_t */
#define HAVE_GETENV 1

82
deps/cares/config/netbsd/ares_config.h

@ -10,21 +10,24 @@
/* when building as static part of libcurl */ /* when building as static part of libcurl */
/* #undef BUILDING_LIBCURL */ /* #undef BUILDING_LIBCURL */
/* when building c-ares library */ /* Defined for build that exposes internal static functions for testing. */
/* #undef CARES_BUILDING_LIBRARY */ /* #undef CARES_EXPOSE_STATICS */
/* when not building a shared library */ /* Defined for build with symbol hiding. */
/* #undef CARES_STATICLIB */
/* Define to 1 to enable hiding of library internal symbols. */
/* #undef CARES_SYMBOL_HIDING */ /* #undef CARES_SYMBOL_HIDING */
/* Definition to make a library symbol externally visible. */ /* Definition to make a library symbol externally visible. */
/* #undef CARES_SYMBOL_SCOPE_EXTERN */ /* #undef CARES_SYMBOL_SCOPE_EXTERN */
/* Use resolver library to configure cares */
/* #undef CARES_USE_LIBRESOLV */
/* if a /etc/inet dir is being used */ /* if a /etc/inet dir is being used */
/* #undef ETC_INET */ /* #undef ETC_INET */
/* Define to the type of arg 2 for gethostname. */
#define GETHOSTNAME_TYPE_ARG2 size_t
/* Define to the type qualifier of arg 1 for getnameinfo. */ /* Define to the type qualifier of arg 1 for getnameinfo. */
#define GETNAMEINFO_QUAL_ARG1 const #define GETNAMEINFO_QUAL_ARG1 const
@ -79,6 +82,9 @@
/* Define to 1 if you have the connect function. */ /* Define to 1 if you have the connect function. */
#define HAVE_CONNECT 1 #define HAVE_CONNECT 1
/* define if the compiler supports basic C++11 syntax */
#define HAVE_CXX11 1
/* Define to 1 if you have the <dlfcn.h> header file. */ /* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1 #define HAVE_DLFCN_H 1
@ -103,6 +109,9 @@
/* Define to 1 if the getaddrinfo function is threadsafe. */ /* Define to 1 if the getaddrinfo function is threadsafe. */
/* #undef HAVE_GETADDRINFO_THREADSAFE */ /* #undef HAVE_GETADDRINFO_THREADSAFE */
/* Define to 1 if you have the getenv function. */
#define HAVE_GETENV 1
/* Define to 1 if you have the gethostbyaddr function. */ /* Define to 1 if you have the gethostbyaddr function. */
#define HAVE_GETHOSTBYADDR 1 #define HAVE_GETHOSTBYADDR 1
@ -124,12 +133,9 @@
/* Define to 1 if you have the `if_indextoname' function. */ /* Define to 1 if you have the `if_indextoname' function. */
#define HAVE_IF_INDEXTONAME 1 #define HAVE_IF_INDEXTONAME 1
/* Define to 1 if you have the `inet_net_pton' function. */ /* Define to 1 if you have a IPv6 capable working inet_net_pton function. */
#define HAVE_INET_NET_PTON 1 #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 to 1 if you have a IPv6 capable working inet_ntop function. */
#define HAVE_INET_NTOP 1 #define HAVE_INET_NTOP 1
@ -329,13 +335,9 @@
/* Define to 1 if you have the ws2tcpip.h header file. */ /* Define to 1 if you have the ws2tcpip.h header file. */
/* #undef HAVE_WS2TCPIP_H */ /* #undef HAVE_WS2TCPIP_H */
/* Define to the sub-directory in which libtool stores uninstalled libraries. /* Define to the sub-directory where libtool stores uninstalled libraries. */
*/
#define LT_OBJDIR ".libs/" #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 */ /* Define to 1 if you need the malloc.h header file even with stdlib.h */
/* #undef NEED_MALLOC_H */ /* #undef NEED_MALLOC_H */
@ -348,23 +350,20 @@
/* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */ /* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */
/* #undef NEED_THREAD_SAFE */ /* #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 */ /* cpu-machine-OS */
#define OS "i386-unknown-openbsd4.7" #define OS "x86_64-unknown-freebsd10.3"
/* Name of package */ /* Name of package */
#define PACKAGE "c-ares" #define PACKAGE "c-ares"
/* Define to the address where bug reports for this package should be sent. */ /* 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 PACKAGE_BUGREPORT "c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares"
/* Define to the full name of this package. */ /* Define to the full name of this package. */
#define PACKAGE_NAME "c-ares" #define PACKAGE_NAME "c-ares"
/* Define to the full name and version of this package. */ /* Define to the full name and version of this package. */
#define PACKAGE_STRING "c-ares 1.7.1" #define PACKAGE_STRING "c-ares 1.12.0"
/* Define to the one symbol short name of this package. */ /* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "c-ares" #define PACKAGE_TARNAME "c-ares"
@ -373,11 +372,14 @@
#define PACKAGE_URL "" #define PACKAGE_URL ""
/* Define to the version of this package. */ /* Define to the version of this package. */
#define PACKAGE_VERSION "1.7.1" #define PACKAGE_VERSION "1.12.0"
/* a suitable file/device to read random data from */ /* a suitable file/device to read random data from */
#define RANDOM_FILE "/dev/urandom" #define RANDOM_FILE "/dev/urandom"
/* Define to the type qualifier pointed by arg 5 for recvfrom. */
#define RECVFROM_QUAL_ARG5
/* Define to the type of arg 1 for recvfrom. */ /* Define to the type of arg 1 for recvfrom. */
#define RECVFROM_TYPE_ARG1 int #define RECVFROM_TYPE_ARG1 int
@ -406,7 +408,7 @@
/* #undef RECVFROM_TYPE_ARG6_IS_VOID */ /* #undef RECVFROM_TYPE_ARG6_IS_VOID */
/* Define to the function return type for recvfrom. */ /* Define to the function return type for recvfrom. */
#define RECVFROM_TYPE_RETV int #define RECVFROM_TYPE_RETV ssize_t
/* Define to the type of arg 1 for recv. */ /* Define to the type of arg 1 for recv. */
#define RECV_TYPE_ARG1 int #define RECV_TYPE_ARG1 int
@ -421,7 +423,7 @@
#define RECV_TYPE_ARG4 int #define RECV_TYPE_ARG4 int
/* Define to the function return type for recv. */ /* Define to the function return type for recv. */
#define RECV_TYPE_RETV int #define RECV_TYPE_RETV ssize_t
/* Define as the return type of signal handlers (`int' or `void'). */ /* Define as the return type of signal handlers (`int' or `void'). */
#define RETSIGTYPE void #define RETSIGTYPE void
@ -442,25 +444,7 @@
#define SEND_TYPE_ARG4 int #define SEND_TYPE_ARG4 int
/* Define to the function return type for send. */ /* Define to the function return type for send. */
#define SEND_TYPE_RETV int #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 to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1 #define STDC_HEADERS 1
@ -472,7 +456,10 @@
/* #undef USE_BLOCKING_SOCKETS */ /* #undef USE_BLOCKING_SOCKETS */
/* Version number of package */ /* Version number of package */
#define VERSION "1.7.1" #define VERSION "1.12.0"
/* 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 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */ significant byte first (like Motorola and SPARC, unlike Intel). */
@ -491,6 +478,11 @@
/* # undef _ALL_SOURCE */ /* # undef _ALL_SOURCE */
#endif #endif
/* Enable large inode numbers on Mac OS X 10.5. */
#ifndef _DARWIN_USE_64_BIT_INODE
# define _DARWIN_USE_64_BIT_INODE 1
#endif
/* Number of bits in a file offset, on hosts where this is settable. */ /* Number of bits in a file offset, on hosts where this is settable. */
/* #undef _FILE_OFFSET_BITS */ /* #undef _FILE_OFFSET_BITS */
@ -508,5 +500,3 @@
/* the signed version of size_t */ /* the signed version of size_t */
/* #undef ssize_t */ /* #undef ssize_t */
#define HAVE_GETENV 1

82
deps/cares/config/openbsd/ares_config.h

@ -10,21 +10,24 @@
/* when building as static part of libcurl */ /* when building as static part of libcurl */
/* #undef BUILDING_LIBCURL */ /* #undef BUILDING_LIBCURL */
/* when building c-ares library */ /* Defined for build that exposes internal static functions for testing. */
/* #undef CARES_BUILDING_LIBRARY */ /* #undef CARES_EXPOSE_STATICS */
/* when not building a shared library */ /* Defined for build with symbol hiding. */
/* #undef CARES_STATICLIB */
/* Define to 1 to enable hiding of library internal symbols. */
/* #undef CARES_SYMBOL_HIDING */ /* #undef CARES_SYMBOL_HIDING */
/* Definition to make a library symbol externally visible. */ /* Definition to make a library symbol externally visible. */
/* #undef CARES_SYMBOL_SCOPE_EXTERN */ /* #undef CARES_SYMBOL_SCOPE_EXTERN */
/* Use resolver library to configure cares */
/* #undef CARES_USE_LIBRESOLV */
/* if a /etc/inet dir is being used */ /* if a /etc/inet dir is being used */
/* #undef ETC_INET */ /* #undef ETC_INET */
/* Define to the type of arg 2 for gethostname. */
#define GETHOSTNAME_TYPE_ARG2 size_t
/* Define to the type qualifier of arg 1 for getnameinfo. */ /* Define to the type qualifier of arg 1 for getnameinfo. */
#define GETNAMEINFO_QUAL_ARG1 const #define GETNAMEINFO_QUAL_ARG1 const
@ -79,6 +82,9 @@
/* Define to 1 if you have the connect function. */ /* Define to 1 if you have the connect function. */
#define HAVE_CONNECT 1 #define HAVE_CONNECT 1
/* define if the compiler supports basic C++11 syntax */
#define HAVE_CXX11 1
/* Define to 1 if you have the <dlfcn.h> header file. */ /* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1 #define HAVE_DLFCN_H 1
@ -103,6 +109,9 @@
/* Define to 1 if the getaddrinfo function is threadsafe. */ /* Define to 1 if the getaddrinfo function is threadsafe. */
/* #undef HAVE_GETADDRINFO_THREADSAFE */ /* #undef HAVE_GETADDRINFO_THREADSAFE */
/* Define to 1 if you have the getenv function. */
#define HAVE_GETENV 1
/* Define to 1 if you have the gethostbyaddr function. */ /* Define to 1 if you have the gethostbyaddr function. */
#define HAVE_GETHOSTBYADDR 1 #define HAVE_GETHOSTBYADDR 1
@ -124,12 +133,9 @@
/* Define to 1 if you have the `if_indextoname' function. */ /* Define to 1 if you have the `if_indextoname' function. */
#define HAVE_IF_INDEXTONAME 1 #define HAVE_IF_INDEXTONAME 1
/* Define to 1 if you have the `inet_net_pton' function. */ /* Define to 1 if you have a IPv6 capable working inet_net_pton function. */
#define HAVE_INET_NET_PTON 1 #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 to 1 if you have a IPv6 capable working inet_ntop function. */
#define HAVE_INET_NTOP 1 #define HAVE_INET_NTOP 1
@ -329,13 +335,9 @@
/* Define to 1 if you have the ws2tcpip.h header file. */ /* Define to 1 if you have the ws2tcpip.h header file. */
/* #undef HAVE_WS2TCPIP_H */ /* #undef HAVE_WS2TCPIP_H */
/* Define to the sub-directory in which libtool stores uninstalled libraries. /* Define to the sub-directory where libtool stores uninstalled libraries. */
*/
#define LT_OBJDIR ".libs/" #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 */ /* Define to 1 if you need the malloc.h header file even with stdlib.h */
/* #undef NEED_MALLOC_H */ /* #undef NEED_MALLOC_H */
@ -348,23 +350,20 @@
/* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */ /* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */
/* #undef NEED_THREAD_SAFE */ /* #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 */ /* cpu-machine-OS */
#define OS "i386-unknown-openbsd4.7" #define OS "x86_64-unknown-freebsd10.3"
/* Name of package */ /* Name of package */
#define PACKAGE "c-ares" #define PACKAGE "c-ares"
/* Define to the address where bug reports for this package should be sent. */ /* 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 PACKAGE_BUGREPORT "c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares"
/* Define to the full name of this package. */ /* Define to the full name of this package. */
#define PACKAGE_NAME "c-ares" #define PACKAGE_NAME "c-ares"
/* Define to the full name and version of this package. */ /* Define to the full name and version of this package. */
#define PACKAGE_STRING "c-ares 1.7.1" #define PACKAGE_STRING "c-ares 1.12.0"
/* Define to the one symbol short name of this package. */ /* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "c-ares" #define PACKAGE_TARNAME "c-ares"
@ -373,11 +372,14 @@
#define PACKAGE_URL "" #define PACKAGE_URL ""
/* Define to the version of this package. */ /* Define to the version of this package. */
#define PACKAGE_VERSION "1.7.1" #define PACKAGE_VERSION "1.12.0"
/* a suitable file/device to read random data from */ /* a suitable file/device to read random data from */
#define RANDOM_FILE "/dev/urandom" #define RANDOM_FILE "/dev/urandom"
/* Define to the type qualifier pointed by arg 5 for recvfrom. */
#define RECVFROM_QUAL_ARG5
/* Define to the type of arg 1 for recvfrom. */ /* Define to the type of arg 1 for recvfrom. */
#define RECVFROM_TYPE_ARG1 int #define RECVFROM_TYPE_ARG1 int
@ -406,7 +408,7 @@
/* #undef RECVFROM_TYPE_ARG6_IS_VOID */ /* #undef RECVFROM_TYPE_ARG6_IS_VOID */
/* Define to the function return type for recvfrom. */ /* Define to the function return type for recvfrom. */
#define RECVFROM_TYPE_RETV int #define RECVFROM_TYPE_RETV ssize_t
/* Define to the type of arg 1 for recv. */ /* Define to the type of arg 1 for recv. */
#define RECV_TYPE_ARG1 int #define RECV_TYPE_ARG1 int
@ -421,7 +423,7 @@
#define RECV_TYPE_ARG4 int #define RECV_TYPE_ARG4 int
/* Define to the function return type for recv. */ /* Define to the function return type for recv. */
#define RECV_TYPE_RETV int #define RECV_TYPE_RETV ssize_t
/* Define as the return type of signal handlers (`int' or `void'). */ /* Define as the return type of signal handlers (`int' or `void'). */
#define RETSIGTYPE void #define RETSIGTYPE void
@ -442,25 +444,7 @@
#define SEND_TYPE_ARG4 int #define SEND_TYPE_ARG4 int
/* Define to the function return type for send. */ /* Define to the function return type for send. */
#define SEND_TYPE_RETV int #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 to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1 #define STDC_HEADERS 1
@ -472,7 +456,10 @@
/* #undef USE_BLOCKING_SOCKETS */ /* #undef USE_BLOCKING_SOCKETS */
/* Version number of package */ /* Version number of package */
#define VERSION "1.7.1" #define VERSION "1.12.0"
/* 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 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */ significant byte first (like Motorola and SPARC, unlike Intel). */
@ -491,6 +478,11 @@
/* # undef _ALL_SOURCE */ /* # undef _ALL_SOURCE */
#endif #endif
/* Enable large inode numbers on Mac OS X 10.5. */
#ifndef _DARWIN_USE_64_BIT_INODE
# define _DARWIN_USE_64_BIT_INODE 1
#endif
/* Number of bits in a file offset, on hosts where this is settable. */ /* Number of bits in a file offset, on hosts where this is settable. */
/* #undef _FILE_OFFSET_BITS */ /* #undef _FILE_OFFSET_BITS */
@ -508,5 +500,3 @@
/* the signed version of size_t */ /* the signed version of size_t */
/* #undef ssize_t */ /* #undef ssize_t */
#define HAVE_GETENV 1

78
deps/cares/config/sunos/ares_config.h

@ -10,21 +10,24 @@
/* when building as static part of libcurl */ /* when building as static part of libcurl */
/* #undef BUILDING_LIBCURL */ /* #undef BUILDING_LIBCURL */
/* when building c-ares library */ /* Defined for build that exposes internal static functions for testing. */
/* #undef CARES_BUILDING_LIBRARY */ /* #undef CARES_EXPOSE_STATICS */
/* when not building a shared library */ /* Defined for build with symbol hiding. */
/* #undef CARES_STATICLIB */ #define CARES_SYMBOL_HIDING 1
/* Define to 1 to enable hiding of library internal symbols. */
/* #undef CARES_SYMBOL_HIDING */
/* Definition to make a library symbol externally visible. */ /* Definition to make a library symbol externally visible. */
/* #undef CARES_SYMBOL_SCOPE_EXTERN */ #define CARES_SYMBOL_SCOPE_EXTERN __attribute__ ((__visibility__ ("default")))
/* Use resolver library to configure cares */
/* #undef CARES_USE_LIBRESOLV */
/* if a /etc/inet dir is being used */ /* if a /etc/inet dir is being used */
#define ETC_INET 1 #define ETC_INET 1
/* Define to the type of arg 2 for gethostname. */
#define GETHOSTNAME_TYPE_ARG2 int
/* Define to the type qualifier of arg 1 for getnameinfo. */ /* Define to the type qualifier of arg 1 for getnameinfo. */
#define GETNAMEINFO_QUAL_ARG1 const #define GETNAMEINFO_QUAL_ARG1 const
@ -79,6 +82,9 @@
/* Define to 1 if you have the connect function. */ /* Define to 1 if you have the connect function. */
#define HAVE_CONNECT 1 #define HAVE_CONNECT 1
/* define if the compiler supports basic C++11 syntax */
#define HAVE_CXX11 1
/* Define to 1 if you have the <dlfcn.h> header file. */ /* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1 #define HAVE_DLFCN_H 1
@ -103,6 +109,9 @@
/* Define to 1 if the getaddrinfo function is threadsafe. */ /* Define to 1 if the getaddrinfo function is threadsafe. */
#define HAVE_GETADDRINFO_THREADSAFE 1 #define HAVE_GETADDRINFO_THREADSAFE 1
/* Define to 1 if you have the getenv function. */
#define HAVE_GETENV 1
/* Define to 1 if you have the gethostbyaddr function. */ /* Define to 1 if you have the gethostbyaddr function. */
#define HAVE_GETHOSTBYADDR 1 #define HAVE_GETHOSTBYADDR 1
@ -124,12 +133,9 @@
/* Define to 1 if you have the `if_indextoname' function. */ /* Define to 1 if you have the `if_indextoname' function. */
#define HAVE_IF_INDEXTONAME 1 #define HAVE_IF_INDEXTONAME 1
/* Define to 1 if you have the `inet_net_pton' function. */ /* Define to 1 if you have a IPv6 capable working inet_net_pton function. */
/* #undef HAVE_INET_NET_PTON */ /* #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 to 1 if you have a IPv6 capable working inet_ntop function. */
#define HAVE_INET_NTOP 1 #define HAVE_INET_NTOP 1
@ -329,13 +335,9 @@
/* Define to 1 if you have the ws2tcpip.h header file. */ /* Define to 1 if you have the ws2tcpip.h header file. */
/* #undef HAVE_WS2TCPIP_H */ /* #undef HAVE_WS2TCPIP_H */
/* Define to the sub-directory in which libtool stores uninstalled libraries. /* Define to the sub-directory where libtool stores uninstalled libraries. */
*/
#define LT_OBJDIR ".libs/" #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 */ /* Define to 1 if you need the malloc.h header file even with stdlib.h */
/* #undef NEED_MALLOC_H */ /* #undef NEED_MALLOC_H */
@ -348,9 +350,6 @@
/* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */ /* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */
/* #undef NEED_THREAD_SAFE */ /* #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 */ /* cpu-machine-OS */
#define OS "i386-pc-solaris2.11" #define OS "i386-pc-solaris2.11"
@ -358,13 +357,13 @@
#define PACKAGE "c-ares" #define PACKAGE "c-ares"
/* Define to the address where bug reports for this package should be sent. */ /* 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 PACKAGE_BUGREPORT "c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares"
/* Define to the full name of this package. */ /* Define to the full name of this package. */
#define PACKAGE_NAME "c-ares" #define PACKAGE_NAME "c-ares"
/* Define to the full name and version of this package. */ /* Define to the full name and version of this package. */
#define PACKAGE_STRING "c-ares 1.7.1" #define PACKAGE_STRING "c-ares 1.12.0"
/* Define to the one symbol short name of this package. */ /* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "c-ares" #define PACKAGE_TARNAME "c-ares"
@ -373,11 +372,14 @@
#define PACKAGE_URL "" #define PACKAGE_URL ""
/* Define to the version of this package. */ /* Define to the version of this package. */
#define PACKAGE_VERSION "1.7.1" #define PACKAGE_VERSION "1.12.0"
/* a suitable file/device to read random data from */ /* a suitable file/device to read random data from */
#define RANDOM_FILE "/dev/urandom" #define RANDOM_FILE "/dev/urandom"
/* Define to the type qualifier pointed by arg 5 for recvfrom. */
#define RECVFROM_QUAL_ARG5
/* Define to the type of arg 1 for recvfrom. */ /* Define to the type of arg 1 for recvfrom. */
#define RECVFROM_TYPE_ARG1 int #define RECVFROM_TYPE_ARG1 int
@ -444,24 +446,6 @@
/* Define to the function return type for send. */ /* Define to the function return type for send. */
#define SEND_TYPE_RETV int #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 to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1 #define STDC_HEADERS 1
@ -472,7 +456,10 @@
/* #undef USE_BLOCKING_SOCKETS */ /* #undef USE_BLOCKING_SOCKETS */
/* Version number of package */ /* Version number of package */
#define VERSION "1.7.1" #define VERSION "1.12.0"
/* 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 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */ significant byte first (like Motorola and SPARC, unlike Intel). */
@ -491,6 +478,11 @@
/* # undef _ALL_SOURCE */ /* # undef _ALL_SOURCE */
#endif #endif
/* Enable large inode numbers on Mac OS X 10.5. */
#ifndef _DARWIN_USE_64_BIT_INODE
# define _DARWIN_USE_64_BIT_INODE 1
#endif
/* Number of bits in a file offset, on hosts where this is settable. */ /* Number of bits in a file offset, on hosts where this is settable. */
#define _FILE_OFFSET_BITS 64 #define _FILE_OFFSET_BITS 64
@ -508,5 +500,3 @@
/* the signed version of size_t */ /* the signed version of size_t */
/* #undef ssize_t */ /* #undef ssize_t */
#define HAVE_GETENV 1

26
deps/cares/get_ver.awk

@ -0,0 +1,26 @@
# ***************************************************************************
# * Project: c-ares
# *
# ***************************************************************************
# awk script which fetches c-ares version number and string from input
# file and writes them to STDOUT. Here you can get an awk version for Win32:
# http://www.gknw.net/development/prgtools/awk-20100523.zip
#
BEGIN {
while ((getline < ARGV[1]) > 0) {
sub("\r", "") # make MSYS gawk work with CRLF header input.
if (match ($0, /^#define ARES_COPYRIGHT "[^"]+"$/))
copyright_string = substr($0, 25, length($0)-25)
else if (match ($0, /^#define ARES_VERSION_STR "[^"]+"$/))
version_string = substr($3, 2, length($3)-2)
else if (match ($0, /^#define ARES_VERSION_MAJOR [0-9]+$/))
version_major = $3
else if (match ($0, /^#define ARES_VERSION_MINOR [0-9]+$/))
version_minor = $3
else if (match ($0, /^#define ARES_VERSION_PATCH [0-9]+$/))
version_patch = $3
}
print "LIBCARES_VERSION = " version_major "," version_minor "," version_patch
print "LIBCARES_VERSION_STR = " version_string
print "LIBCARES_COPYRIGHT_STR = " copyright_string
}

1
deps/cares/include/ares.h

@ -158,6 +158,7 @@ extern "C" {
#define ARES_OPT_TIMEOUTMS (1 << 13) #define ARES_OPT_TIMEOUTMS (1 << 13)
#define ARES_OPT_ROTATE (1 << 14) #define ARES_OPT_ROTATE (1 << 14)
#define ARES_OPT_EDNSPSZ (1 << 15) #define ARES_OPT_EDNSPSZ (1 << 15)
#define ARES_OPT_NOROTATE (1 << 16)
/* Nameinfo flag values */ /* Nameinfo flag values */
#define ARES_NI_NOFQDN (1 << 0) #define ARES_NI_NOFQDN (1 << 0)

157
deps/cares/include/ares_build.h

@ -1,9 +1,8 @@
/* ares_build.h. Generated from ares_build.h.in by configure. */
#ifndef __CARES_BUILD_H #ifndef __CARES_BUILD_H
#define __CARES_BUILD_H #define __CARES_BUILD_H
/* Copyright (C) 2009 by Daniel Stenberg et al /* Copyright (C) 2009 - 2013 by Daniel Stenberg et al
* *
* Permission to use, copy, modify, and distribute this software and its * Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted, provided * documentation for any purpose and without fee is hereby granted, provided
@ -20,6 +19,20 @@
/* NOTES FOR CONFIGURE CAPABLE SYSTEMS */ /* 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: * NOTE 1:
* ------- * -------
@ -31,87 +44,151 @@
* or fixed in this file, then, report it on the c-ares development * or fixed in this file, then, report it on the c-ares development
* mailing list: http://cool.haxx.se/mailman/listinfo/c-ares/ * 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' * This header file shall only export symbols which are 'cares' or 'CARES'
* prefixed, otherwise public name space would be polluted. * prefixed, otherwise public name space would be polluted.
* *
* NOTE 2: * NOTE 2:
* ------- * -------
* *
* Right now you might be staring at file ares_build.h.in or ares_build.h, * Right now you might be staring at file ares_build.h.dist or ares_build.h,
* this is due to the following reason: * 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 * On systems capable of running the configure script, the configure process
* will overwrite the distributed ares_build.h file with one that is suitable * 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 * and specific to the library being configured and built, which is generated
* from the ares_build.h.in template file. * 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 */ /* 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 #ifdef CARES_TYPEOF_ARES_SOCKLEN_T
# error "CARES_TYPEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h" # 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 Error Compilation_aborted_CARES_TYPEOF_ARES_SOCKLEN_T_already_defined
#endif #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 */ /* EXTERNAL INTERFACE SETTINGS FOR NON-CONFIGURE SYSTEMS ONLY */
/* ================================================================ */ /* ================================================================ */
/* Configure process defines this to 1 when it finds out that system */ #if defined(__DJGPP__) || defined(__GO32__)
/* header file ws2tcpip.h must be included by the external interface. */ # define CARES_TYPEOF_ARES_SOCKLEN_T int
#ifdef WIN32 #elif defined(__SALFORDC__)
# define CARES_PULL_WS2TCPIP_H 1 # define CARES_TYPEOF_ARES_SOCKLEN_T int
#else
#elif defined(__BORLANDC__)
# define CARES_TYPEOF_ARES_SOCKLEN_T int
#elif defined(__TURBOC__)
# define CARES_TYPEOF_ARES_SOCKLEN_T int
#elif defined(__WATCOMC__)
# define CARES_TYPEOF_ARES_SOCKLEN_T int
#elif defined(__POCC__)
# define CARES_TYPEOF_ARES_SOCKLEN_T int
#elif defined(__LCC__)
# define CARES_TYPEOF_ARES_SOCKLEN_T int
#elif defined(__SYMBIAN32__)
# define CARES_TYPEOF_ARES_SOCKLEN_T unsigned int
#elif defined(__MWERKS__)
# define CARES_TYPEOF_ARES_SOCKLEN_T int
#elif defined(_WIN32_WCE)
# define CARES_TYPEOF_ARES_SOCKLEN_T int
#elif defined(__MINGW32__)
# define CARES_TYPEOF_ARES_SOCKLEN_T int
#elif defined(__VMS)
# define CARES_TYPEOF_ARES_SOCKLEN_T unsigned int
#elif defined(__OS400__)
# if defined(__ILEC400__)
# define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t
# define CARES_PULL_SYS_TYPES_H 1
# define CARES_PULL_SYS_SOCKET_H 1
# endif
#elif defined(__MVS__)
# if defined(__IBMC__) || defined(__IBMCPP__)
# define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t
# define CARES_PULL_SYS_TYPES_H 1 # define CARES_PULL_SYS_TYPES_H 1
# define CARES_PULL_SYS_SOCKET_H 1 # define CARES_PULL_SYS_SOCKET_H 1
# endif # endif
/* #undef CARES_PULL_WS2TCPIP_H */ #elif defined(__370__)
#ifdef CARES_PULL_WS2TCPIP_H # if defined(__IBMC__) || defined(__IBMCPP__)
# ifndef WIN32_LEAN_AND_MEAN # define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t
# define WIN32_LEAN_AND_MEAN # define CARES_PULL_SYS_TYPES_H 1
# define CARES_PULL_SYS_SOCKET_H 1
# endif # endif
# include <windows.h>
# include <winsock2.h> #elif defined(TPF)
# include <ws2tcpip.h> # define CARES_TYPEOF_ARES_SOCKLEN_T int
/* ===================================== */
/* KEEP MSVC THE PENULTIMATE ENTRY */
/* ===================================== */
#elif defined(_MSC_VER)
# define CARES_TYPEOF_ARES_SOCKLEN_T int
/* ===================================== */
/* KEEP GENERIC GCC THE LAST ENTRY */
/* ===================================== */
#elif defined(__GNUC__)
# define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t
# 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 #endif
/* Configure process defines this to 1 when it finds out that system */ /* CARES_PULL_SYS_TYPES_H is defined above when inclusion of header file */
/* header file sys/types.h must be included by the external interface. */ /* sys/types.h is required here to properly make type definitions below. */
#ifdef CARES_PULL_SYS_TYPES_H #ifdef CARES_PULL_SYS_TYPES_H
# include <sys/types.h> # include <sys/types.h>
#endif #endif
/* Configure process defines this to 1 when it finds out that system */ /* CARES_PULL_SYS_SOCKET_H is defined above when inclusion of header file */
/* header file sys/socket.h must be included by the external interface. */ /* sys/socket.h is required here to properly make type definitions below. */
#ifdef CARES_PULL_SYS_SOCKET_H #ifdef CARES_PULL_SYS_SOCKET_H
# include <sys/socket.h> # include <sys/socket.h>
#endif #endif
/* The size of `long', as computed by sizeof. */
/* #undef CARES_SIZEOF_LONG */
/* 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. */ /* Data type definition of ares_socklen_t. */
#ifdef CARES_TYPEOF_ARES_SOCKLEN_T
typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t; typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t;
#endif
#endif /* __CARES_BUILD_H */ #endif /* __CARES_BUILD_H */

7
deps/cares/include/ares_rules.h

@ -73,11 +73,6 @@
Error Compilation_aborted_CARES_TYPEOF_ARES_SOCKLEN_T_is_missing Error Compilation_aborted_CARES_TYPEOF_ARES_SOCKLEN_T_is_missing
#endif #endif
#ifndef CARES_SIZEOF_ARES_SOCKLEN_T
# error "CARES_SIZEOF_ARES_SOCKLEN_T definition is missing!"
Error Compilation_aborted_CARES_SIZEOF_ARES_SOCKLEN_T_is_missing
#endif
/* /*
* Macros private to this header file. * Macros private to this header file.
*/ */
@ -94,7 +89,7 @@
typedef char typedef char
__cares_rule_02__ __cares_rule_02__
[CareschkszEQ(ares_socklen_t, CARES_SIZEOF_ARES_SOCKLEN_T)]; [CareschkszEQ(ares_socklen_t, sizeof(CARES_TYPEOF_ARES_SOCKLEN_T))];
/* /*
* Verify at compile time that the size of ares_socklen_t as reported * Verify at compile time that the size of ares_socklen_t as reported

8
deps/cares/include/ares_version.h

@ -3,15 +3,15 @@
#define ARES__VERSION_H #define ARES__VERSION_H
/* This is the global package copyright */ /* This is the global package copyright */
#define ARES_COPYRIGHT "2004 - 2013 Daniel Stenberg, <daniel@haxx.se>." #define ARES_COPYRIGHT "2004 - 2016 Daniel Stenberg, <daniel@haxx.se>."
#define ARES_VERSION_MAJOR 1 #define ARES_VERSION_MAJOR 1
#define ARES_VERSION_MINOR 10 #define ARES_VERSION_MINOR 12
#define ARES_VERSION_PATCH 1 #define ARES_VERSION_PATCH 0
#define ARES_VERSION ((ARES_VERSION_MAJOR<<16)|\ #define ARES_VERSION ((ARES_VERSION_MAJOR<<16)|\
(ARES_VERSION_MINOR<<8)|\ (ARES_VERSION_MINOR<<8)|\
(ARES_VERSION_PATCH)) (ARES_VERSION_PATCH))
#define ARES_VERSION_STR "1.10.1-DEV" #define ARES_VERSION_STR "1.12.0"
#if (ARES_VERSION >= 0x010700) #if (ARES_VERSION >= 0x010700)
# define CARES_HAVE_ARES_LIBRARY_INIT 1 # define CARES_HAVE_ARES_LIBRARY_INIT 1

24
deps/cares/src/AUTHORS

@ -2,9 +2,13 @@ c-ares is based on ares, and these are the people that have worked on it since
the fork was made: the fork was made:
Albert Chin Albert Chin
Alex Loukissas
Alexander Klauer
Alexander Lazic Alexander Lazic
Alexey Simak Alexey Simak
Andreas Rieke Andreas Rieke
Andrew Andkjar
Andrew Ayer
Andrew C. Morrow Andrew C. Morrow
Ashish Sharma Ashish Sharma
Ben Greear Ben Greear
@ -13,20 +17,27 @@ BogDan Vatra
Brad House Brad House
Brad Spencer Brad Spencer
Bram Matthys Bram Matthys
Chris Araman
Dan Fandrich Dan Fandrich
Daniel Johnson Daniel Johnson
Daniel Stenberg Daniel Stenberg
David Drysdale
David Stuart David Stuart
Denis Bilenko Denis Bilenko
Dima Tisnek Dima Tisnek
Dirk Manske Dirk Manske
Dominick Meglio Dominick Meglio
Doug Goldstein Doug Goldstein
Doug Kwan
Duncan Wilcox Duncan Wilcox
Eino Tuominen Eino Tuominen
Erik Kline Erik Kline
Fedor Indutny
Frederic Germain
Geert Uytterhoeven
George Neill George Neill
Gisle Vanem Gisle Vanem
Gregor Jasny
Guenter Knauf Guenter Knauf
Guilherme Balena Versiani Guilherme Balena Versiani
Gunter Knauf Gunter Knauf
@ -34,25 +45,38 @@ Henrik Stoerner
Jakub Hrozek Jakub Hrozek
James Bursa James Bursa
Jérémy Lal Jérémy Lal
Keith Shaw
Lei Shi
Marko Kreen Marko Kreen
Michael Wallner Michael Wallner
Mike Crowe Mike Crowe
Nick Alcock Nick Alcock
Nick Mathewson Nick Mathewson
Nicolas "Pixel" Noble
Ning Dong
Oleg Pudeyev
Patrick Valsecchi
Patrik Thunstrom Patrik Thunstrom
Paul Saab
Peter Pentchev Peter Pentchev
Phil Blundell Phil Blundell
Poul Thomas Lomholt Poul Thomas Lomholt
Ravi Pratap Ravi Pratap
Robin Cornelius Robin Cornelius
Saúl Ibarra Corretgé
Sebastian at basti79.de Sebastian at basti79.de
Shmulik Regev Shmulik Regev
Stefan Bühler Stefan Bühler
Steinar H. Gunderson Steinar H. Gunderson
Svante Karlsson
Tofu Linden Tofu Linden
Tom Hughes Tom Hughes
Tor Arntsen Tor Arntsen
Viktor Szakats
Vlad Dinulescu Vlad Dinulescu
William Ahern William Ahern
Yang Tse Yang Tse
hpopescu at ixiacom.com
liren at vivisimo.com liren at vivisimo.com
nordsturm
saghul

18
deps/cares/src/README.cares

@ -1,13 +1,15 @@
c-ares c-ares
====== ======
This package is based on ares 1.1.1 (written by Greg Hudson). I decided to This package is based on ares 1.1.1 (written by Greg Hudson). Daniel Stenberg
fork and release a separate project since the ares author didn't want the decided to fork and release a separate project since the original ares author
improvements that were vital for our use of it. didn't want the improvements that were vital for our use of it.
This package is dubbed 'c-ares' since I (Daniel Stenberg) wanted this for use This package is dubbed 'c-ares' since Daniel wanted this for use within the
within the curl project (hence the letter C) and it makes a nice pun. Also, curl project (hence the letter C) and it makes a nice pun. c-ares is not API
c-ares is not API compatible with ares: a new name makes that more obvious to compatible with ares: a new name makes that more obvious to the public.
the public.
The original libares was distributed at athena-dist.mit.edu:pub/ATHENA/ares. The original libares was distributed at
ftp://athena-dist.mit.edu:pub/ATHENA/ares (which seems to not be alive
anymore). A local copy of the original ares package is kept here:
https://c-ares.haxx.se/download/ares-1.1.1.tar.gz

59
deps/cares/src/RELEASE-NOTES

@ -1,35 +1,46 @@
c-ares version 1.10.0 c-ares version 1.12.0
Changes: Changes:
o Added ares_create_query(), to be used instead of ares_mkquery() o api: add ARES_OPT_NOROTATE optmask value
o ares_inet_ntop() and ares_inet_pton() are now recognized c-ares functions
Bug fixes: Bug fixes:
o include the ares_parse_soa_reply.* files in the tarball o CVE-2016-5180: ares_create_query single byte out of buffer write [4]
o read_udp_packets: bail out loop on bad sockets o configure: acknowledge --disable-tests [1]
o get_DNS_AdaptersAddresses: fix IPv6 parsing o man pages: fix typos detected by Lintian
o adig: perror() doesn't work for socket errors on windows o test: add missing #includes for dns-proto.cc
o ares_parse_aaaa_reply: fix memory leak o test: avoid in6addr_* constants
o setup_once.h: HP-UX <sys/socket.h> issue workaround o test: Build with MinGW on AppVeyor
o configure: several fixes o Makefile.m32: add support for extra flags
o config-dos.h: define strerror() to strerror_s_() for High-C o Makefile.m32: add support for CROSSPREFIX
o config-dos.h: define HAVE_CLOSE_S for MSDOS/Watt-32 o configure: check if tests can get built before enabled
o ares_build.h.dist: enhance non-configure GCC ABI detection logic o ares_library_cleanup: reset ares_realloc too
o ares.h: stricter CARES_EXTERN linkage decorations logic o ahost.c: add cast to fix C++ compile
o ares_cancel(): cancel requests safely o test: Only pass unused args to GoogleTest
o protocol parsing: check input data stricter o build: commonize MSVC version detection
o library init: be recursive, reference count inits/cleanups o msvc_ver.inc: support Visual Studio 2015 Update 1, 2, 3
o ares_parse_txt_reply: return a ares_txt_reply node for each sub-string o test: for AF_UNSPEC, return CNAME only for AAAA, but valid A record
o ares_set_servers_csv: fixed IPv6 address parsing o ares_getnameinfo: explicitly clear struct servent before use
o build: fix build on msvc11 o test: Update fuzzing function prototype
o init: fix nsort initialization
o test: add fuzzing check script to tests
o web: http => https
o read_tcp_data: remove superfluous NULL check
o LICENSE.md: add a stand-alone license file
o SECURITY.md: suggested "security process" for the project
o ares_init_options: only propagate init failures from options [2]
o headers: remove checks for and defines of variable sizes
o test: fix gMock to work with gcc >= 6.x [3]
Thanks go to these friendly people for their efforts and contributions: Thanks go to these friendly people for their efforts and contributions:
Eugeny Gladkih, Yang Tse, Gisle Vanem, Guenter Knauf, Horatiu Popescu, Alexander Drachevskiy, Brad House, Chris Araman, Daniel Stenberg,
Alexander Klauer, Patrick Valsecchi, Paul Saab, Keith Shaw, David Drysdale, Gregor Jasny, Svante Karlsson, Viktor Szakats
Alex Loukissas
References to bug reports and discussions on issues:
Have fun! [1] = https://github.com/c-ares/c-ares/issues/44
[2] = https://github.com/c-ares/c-ares/issues/60
[3] = https://github.com/google/googletest/issues/705#issuecomment-235067917
[4] = https://c-ares.haxx.se/adv_20160929.html

1
deps/cares/src/ares_getnameinfo.c

@ -299,6 +299,7 @@ static char *lookup_service(unsigned short port, int flags,
else else
proto = "tcp"; proto = "tcp";
#ifdef HAVE_GETSERVBYPORT_R #ifdef HAVE_GETSERVBYPORT_R
memset(&se, 0, sizeof(se));
sep = &se; sep = &se;
memset(tmpbuf, 0, sizeof(tmpbuf)); memset(tmpbuf, 0, sizeof(tmpbuf));
#if GETSERVBYPORT_R_ARGS == 6 #if GETSERVBYPORT_R_ARGS == 6

34
deps/cares/src/ares_init.c

@ -112,7 +112,6 @@ int ares_init_options(ares_channel *channelptr, struct ares_options *options,
ares_channel channel; ares_channel channel;
int i; int i;
int status = ARES_SUCCESS; int status = ARES_SUCCESS;
int status2;
struct timeval now; struct timeval now;
#ifdef CURLDEBUG #ifdef CURLDEBUG
@ -190,18 +189,17 @@ int ares_init_options(ares_channel *channelptr, struct ares_options *options,
* precedence to lowest. * precedence to lowest.
*/ */
if (status == ARES_SUCCESS) {
status = init_by_options(channel, options, optmask); status = init_by_options(channel, options, optmask);
if (status != ARES_SUCCESS) if (status != ARES_SUCCESS) {
DEBUGF(fprintf(stderr, "Error: init_by_options failed: %s\n", DEBUGF(fprintf(stderr, "Error: init_by_options failed: %s\n",
ares_strerror(status))); ares_strerror(status)));
/* If we fail to apply user-specified options, fail the whole init process */
goto done;
} }
if (status == ARES_SUCCESS) {
status = init_by_environment(channel); status = init_by_environment(channel);
if (status != ARES_SUCCESS) if (status != ARES_SUCCESS)
DEBUGF(fprintf(stderr, "Error: init_by_environment failed: %s\n", DEBUGF(fprintf(stderr, "Error: init_by_environment failed: %s\n",
ares_strerror(status))); ares_strerror(status)));
}
if (status == ARES_SUCCESS) { if (status == ARES_SUCCESS) {
status = init_by_resolv_conf(channel); status = init_by_resolv_conf(channel);
if (status != ARES_SUCCESS) if (status != ARES_SUCCESS)
@ -213,13 +211,10 @@ int ares_init_options(ares_channel *channelptr, struct ares_options *options,
* No matter what failed or succeeded, seed defaults to provide * No matter what failed or succeeded, seed defaults to provide
* useful behavior for things that we missed. * useful behavior for things that we missed.
*/ */
status2 = init_by_defaults(channel); status = init_by_defaults(channel);
if (status2 != ARES_SUCCESS) { if (status != ARES_SUCCESS)
DEBUGF(fprintf(stderr, "Error: init_by_defaults failed: %s\n", DEBUGF(fprintf(stderr, "Error: init_by_defaults failed: %s\n",
ares_strerror(status))); ares_strerror(status)));
if (status == ARES_SUCCESS)
status = status2;
}
/* Generate random key */ /* Generate random key */
@ -232,6 +227,7 @@ int ares_init_options(ares_channel *channelptr, struct ares_options *options,
ares_strerror(status))); ares_strerror(status)));
} }
done:
if (status != ARES_SUCCESS) if (status != ARES_SUCCESS)
{ {
/* Something failed; clean up memory we may have allocated. */ /* Something failed; clean up memory we may have allocated. */
@ -350,8 +346,8 @@ int ares_save_options(ares_channel channel, struct ares_options *options,
(*optmask) = (ARES_OPT_FLAGS|ARES_OPT_TRIES|ARES_OPT_NDOTS| (*optmask) = (ARES_OPT_FLAGS|ARES_OPT_TRIES|ARES_OPT_NDOTS|
ARES_OPT_UDP_PORT|ARES_OPT_TCP_PORT|ARES_OPT_SOCK_STATE_CB| ARES_OPT_UDP_PORT|ARES_OPT_TCP_PORT|ARES_OPT_SOCK_STATE_CB|
ARES_OPT_SERVERS|ARES_OPT_DOMAINS|ARES_OPT_LOOKUPS| ARES_OPT_SERVERS|ARES_OPT_DOMAINS|ARES_OPT_LOOKUPS|
ARES_OPT_SORTLIST|ARES_OPT_TIMEOUTMS) | ARES_OPT_SORTLIST|ARES_OPT_TIMEOUTMS);
(channel->optmask & ARES_OPT_ROTATE); (*optmask) |= (channel->rotate ? ARES_OPT_ROTATE : ARES_OPT_NOROTATE);
/* Copy easy stuff */ /* Copy easy stuff */
options->flags = channel->flags; options->flags = channel->flags;
@ -447,6 +443,8 @@ static int init_by_options(ares_channel channel,
channel->ndots = options->ndots; channel->ndots = options->ndots;
if ((optmask & ARES_OPT_ROTATE) && channel->rotate == -1) if ((optmask & ARES_OPT_ROTATE) && channel->rotate == -1)
channel->rotate = 1; channel->rotate = 1;
if ((optmask & ARES_OPT_NOROTATE) && channel->rotate == -1)
channel->rotate = 0;
if ((optmask & ARES_OPT_UDP_PORT) && channel->udp_port == -1) if ((optmask & ARES_OPT_UDP_PORT) && channel->udp_port == -1)
channel->udp_port = htons(options->udp_port); channel->udp_port = htons(options->udp_port);
if ((optmask & ARES_OPT_TCP_PORT) && channel->tcp_port == -1) if ((optmask & ARES_OPT_TCP_PORT) && channel->tcp_port == -1)
@ -520,13 +518,14 @@ static int init_by_options(ares_channel channel,
} }
/* copy sortlist */ /* copy sortlist */
if ((optmask & ARES_OPT_SORTLIST) && (channel->nsort == -1) && if ((optmask & ARES_OPT_SORTLIST) && (channel->nsort == -1)) {
(options->nsort>0)) { if (options->nsort > 0) {
channel->sortlist = ares_malloc(options->nsort * sizeof(struct apattern)); channel->sortlist = ares_malloc(options->nsort * sizeof(struct apattern));
if (!channel->sortlist) if (!channel->sortlist)
return ARES_ENOMEM; return ARES_ENOMEM;
for (i = 0; i < options->nsort; i++) for (i = 0; i < options->nsort; i++)
channel->sortlist[i] = options->sortlist[i]; channel->sortlist[i] = options->sortlist[i];
}
channel->nsort = options->nsort; channel->nsort = options->nsort;
} }
@ -1030,11 +1029,6 @@ static int get_DNS_AdaptersAddresses(char **outptr)
} }
else if (namesrvr.sa->sa_family == AF_INET6) else if (namesrvr.sa->sa_family == AF_INET6)
{ {
/* Windows apparently always reports some IPv6 DNS servers that
* prefixed with fec0:0:0:ffff. These ususally do not point to
* working DNS servers, so we ignore them. */
if (strncmp(txtaddr, "fec0:0:0:ffff:", 14) == 0)
continue;
if (memcmp(&namesrvr.sa6->sin6_addr, &ares_in6addr_any, if (memcmp(&namesrvr.sa6->sin6_addr, &ares_in6addr_any,
sizeof(namesrvr.sa6->sin6_addr)) == 0) sizeof(namesrvr.sa6->sin6_addr)) == 0)
continue; continue;
@ -1628,7 +1622,7 @@ static int config_lookup(ares_channel channel, const char *str,
channel->lookups = ares_strdup(lookups); channel->lookups = ares_strdup(lookups);
return (channel->lookups) ? ARES_SUCCESS : ARES_ENOMEM; return (channel->lookups) ? ARES_SUCCESS : ARES_ENOMEM;
} }
#endif /* !WIN32 & !WATT32 & !ANDROID & !__ANDROID__ */ #endif /* !WIN32 & !WATT32 & !ANDROID & !__ANDROID__ & !CARES_USE_LIBRESOLV */
#ifndef WATT32 #ifndef WATT32
static int config_nameserver(struct server_state **servers, int *nservers, static int config_nameserver(struct server_state **servers, int *nservers,

6
deps/cares/src/ares_ipv6.h

@ -47,16 +47,16 @@ struct addrinfo
#endif #endif
#ifndef NS_IN6ADDRSZ #ifndef NS_IN6ADDRSZ
#if SIZEOF_STRUCT_IN6_ADDR == 0 #ifndef HAVE_STRUCT_IN6_ADDR
/* We cannot have it set to zero, so we pick a fixed value here */ /* We cannot have it set to zero, so we pick a fixed value here */
#define NS_IN6ADDRSZ 16 #define NS_IN6ADDRSZ 16
#else #else
#define NS_IN6ADDRSZ SIZEOF_STRUCT_IN6_ADDR #define NS_IN6ADDRSZ sizeof(struct in6_addr)
#endif #endif
#endif #endif
#ifndef NS_INADDRSZ #ifndef NS_INADDRSZ
#define NS_INADDRSZ SIZEOF_STRUCT_IN_ADDR #define NS_INADDRSZ sizeof(struct in_addr)
#endif #endif
#ifndef NS_INT16SZ #ifndef NS_INT16SZ

3
deps/cares/src/ares_library_init.c

@ -152,6 +152,7 @@ void ares_library_cleanup(void)
ares_init_flags = ARES_LIB_INIT_NONE; ares_init_flags = ARES_LIB_INIT_NONE;
ares_malloc = malloc; ares_malloc = malloc;
ares_realloc = realloc;
ares_free = free; ares_free = free;
} }
@ -164,5 +165,3 @@ int ares_library_initialized(void)
#endif #endif
return ARES_SUCCESS; return ARES_SUCCESS;
} }

36
deps/cares/src/ares_nowarn.c

@ -40,42 +40,22 @@
#include "ares_nowarn.h" #include "ares_nowarn.h"
#if (SIZEOF_SHORT == 2) #ifndef HAVE_LIMITS_H
/* systems without <limits.h> we guess have 16 bit shorts, 32bit ints and
32bit longs */
# define CARES_MASK_SSHORT 0x7FFF # define CARES_MASK_SSHORT 0x7FFF
# define CARES_MASK_USHORT 0xFFFF # define CARES_MASK_USHORT 0xFFFF
#elif (SIZEOF_SHORT == 4)
# define CARES_MASK_SSHORT 0x7FFFFFFF
# define CARES_MASK_USHORT 0xFFFFFFFF
#elif (SIZEOF_SHORT == 8)
# define CARES_MASK_SSHORT 0x7FFFFFFFFFFFFFFF
# define CARES_MASK_USHORT 0xFFFFFFFFFFFFFFFF
#else
# error "SIZEOF_SHORT not defined"
#endif
#if (SIZEOF_INT == 2)
# define CARES_MASK_SINT 0x7FFF
# define CARES_MASK_UINT 0xFFFF
#elif (SIZEOF_INT == 4)
# define CARES_MASK_SINT 0x7FFFFFFF # define CARES_MASK_SINT 0x7FFFFFFF
# define CARES_MASK_UINT 0xFFFFFFFF # define CARES_MASK_UINT 0xFFFFFFFF
#elif (SIZEOF_INT == 8)
# define CARES_MASK_SINT 0x7FFFFFFFFFFFFFFF
# define CARES_MASK_UINT 0xFFFFFFFFFFFFFFFF
#elif (SIZEOF_INT == 16)
# define CARES_MASK_SINT 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
# define CARES_MASK_UINT 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
#else
# error "SIZEOF_INT not defined"
#endif
#ifndef HAVE_LIMITS_H
/* systems without <limits.h> we guess have 32 bit longs */
# define CARES_MASK_SLONG 0x7FFFFFFFL # define CARES_MASK_SLONG 0x7FFFFFFFL
# define CARES_MASK_ULONG 0xFFFFFFFFUL # define CARES_MASK_ULONG 0xFFFFFFFFUL
#else #else
#define CARES_MASK_ULONG ULONG_MAX # define CARES_MASK_SSHORT SHRT_MAX
# define CARES_MASK_USHORT USHRT_MAX
# define CARES_MASK_SINT INT_MAX
# define CARES_MASK_UINT UINT_MAX
# define CARES_MASK_SLONG LONG_MAX # define CARES_MASK_SLONG LONG_MAX
# define CARES_MASK_ULONG ULONG_MAX
#endif #endif
/* /*

1
deps/cares/src/ares_process.c

@ -391,7 +391,6 @@ static void read_tcp_data(ares_channel channel, fd_set *read_fds,
*/ */
process_answer(channel, server->tcp_buffer, server->tcp_length, process_answer(channel, server->tcp_buffer, server->tcp_length,
i, 1, now); i, 1, now);
if (server->tcp_buffer)
ares_free(server->tcp_buffer); ares_free(server->tcp_buffer);
server->tcp_buffer = NULL; server->tcp_buffer = NULL;
server->tcp_lenbuf_pos = 0; server->tcp_lenbuf_pos = 0;

4
deps/cares/src/ares_setup.h

@ -75,9 +75,6 @@
/* please, do it beyond the point further indicated in this file. */ /* please, do it beyond the point further indicated in this file. */
/* ================================================================ */ /* ================================================================ */
#if 1
# define SIZEOF_SHORT 2
#else /* Disabled for the gyp-ified build. */
/* /*
* c-ares external interface definitions are also used internally, * c-ares external interface definitions are also used internally,
* and might also include required system header files to define them. * and might also include required system header files to define them.
@ -90,7 +87,6 @@
*/ */
#include <ares_rules.h> #include <ares_rules.h>
#endif
/* ================================================================= */ /* ================================================================= */
/* No system header file shall be included in this file before this */ /* No system header file shall be included in this file before this */

18
deps/cares/src/config-win32.h

@ -211,6 +211,11 @@
/* Define to the return type of signal handlers (int or void). */ /* Define to the return type of signal handlers (int or void). */
#define RETSIGTYPE void #define RETSIGTYPE void
#ifdef __cplusplus
/* Compiling headers in C++ mode means bool is available */
#define HAVE_BOOL_T
#endif
/* Define if ssize_t is not an available 'typedefed' type. */ /* Define if ssize_t is not an available 'typedefed' type. */
#ifndef _SSIZE_T_DEFINED #ifndef _SSIZE_T_DEFINED
# if (defined(__WATCOMC__) && (__WATCOMC__ >= 1240)) || \ # if (defined(__WATCOMC__) && (__WATCOMC__ >= 1240)) || \
@ -229,19 +234,6 @@
/* TYPE SIZES */ /* TYPE SIZES */
/* ---------------------------------------------------------------- */ /* ---------------------------------------------------------------- */
/* Define to the size of `int', as computed by sizeof. */
#define SIZEOF_INT 4
/* Define to the size of `short', as computed by sizeof. */
#define SIZEOF_SHORT 2
/* Define to the size of `size_t', as computed by sizeof. */
#if defined(_WIN64)
# define SIZEOF_SIZE_T 8
#else
# define SIZEOF_SIZE_T 4
#endif
/* ---------------------------------------------------------------- */ /* ---------------------------------------------------------------- */
/* STRUCT RELATED */ /* STRUCT RELATED */
/* ---------------------------------------------------------------- */ /* ---------------------------------------------------------------- */

Loading…
Cancel
Save