Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-06-11 23:45:17 +0400
committerRyan Dahl <ry@tinyclouds.org>2010-06-11 23:48:58 +0400
commit9c85357846fddebcd755df90ec37b8aa37c0a535 (patch)
treef89188ef14b481b928badb5cb6887c97088fdbf6
parentd127d15d1b4730629c8ab914bc07f405e5e0c737 (diff)
Upgrade C-Ares to 1.7.3
-rw-r--r--deps/c-ares/CHANGES25
-rw-r--r--deps/c-ares/README2
-rw-r--r--deps/c-ares/README.msvc1
-rw-r--r--deps/c-ares/README.node2
-rw-r--r--deps/c-ares/RELEASE-NOTES14
-rw-r--r--deps/c-ares/ares.h1
-rw-r--r--deps/c-ares/ares__close_sockets.c1
-rw-r--r--deps/c-ares/ares__get_hostent.c1
-rw-r--r--deps/c-ares/ares__read_line.c1
-rw-r--r--deps/c-ares/ares__timeval.c1
-rw-r--r--deps/c-ares/ares_cancel.c1
-rw-r--r--deps/c-ares/ares_data.c1
-rw-r--r--deps/c-ares/ares_data.h1
-rw-r--r--deps/c-ares/ares_destroy.c1
-rw-r--r--deps/c-ares/ares_dns.h1
-rw-r--r--deps/c-ares/ares_expand_name.c1
-rw-r--r--deps/c-ares/ares_expand_string.c1
-rw-r--r--deps/c-ares/ares_fds.c1
-rw-r--r--deps/c-ares/ares_free_hostent.c1
-rw-r--r--deps/c-ares/ares_free_string.c1
-rw-r--r--deps/c-ares/ares_gethostbyaddr.c11
-rw-r--r--deps/c-ares/ares_gethostbyname.c36
-rw-r--r--deps/c-ares/ares_getnameinfo.c35
-rw-r--r--deps/c-ares/ares_getopt.c1
-rw-r--r--deps/c-ares/ares_getsock.c1
-rw-r--r--deps/c-ares/ares_init.c15
-rw-r--r--deps/c-ares/ares_ipv6.h1
-rw-r--r--deps/c-ares/ares_library_init.c1
-rw-r--r--deps/c-ares/ares_library_init.h1
-rw-r--r--deps/c-ares/ares_llist.c1
-rw-r--r--deps/c-ares/ares_llist.h1
-rw-r--r--deps/c-ares/ares_mkquery.c1
-rw-r--r--deps/c-ares/ares_nowarn.c1
-rw-r--r--deps/c-ares/ares_nowarn.h1
-rw-r--r--deps/c-ares/ares_options.c1
-rw-r--r--deps/c-ares/ares_parse_a_reply.c1
-rw-r--r--deps/c-ares/ares_parse_aaaa_reply.c1
-rw-r--r--deps/c-ares/ares_parse_ptr_reply.c1
-rw-r--r--deps/c-ares/ares_parse_srv_reply.c1
-rw-r--r--deps/c-ares/ares_parse_txt_reply.c1
-rw-r--r--deps/c-ares/ares_private.h1
-rw-r--r--deps/c-ares/ares_process.c3
-rw-r--r--deps/c-ares/ares_query.c1
-rw-r--r--deps/c-ares/ares_rules.h1
-rw-r--r--deps/c-ares/ares_search.c1
-rw-r--r--deps/c-ares/ares_send.c1
-rw-r--r--deps/c-ares/ares_strcasecmp.c1
-rw-r--r--deps/c-ares/ares_strcasecmp.h1
-rw-r--r--deps/c-ares/ares_strdup.c1
-rw-r--r--deps/c-ares/ares_strdup.h1
-rw-r--r--deps/c-ares/ares_strerror.c1
-rw-r--r--deps/c-ares/ares_timeout.c1
-rw-r--r--deps/c-ares/ares_version.c1
-rw-r--r--deps/c-ares/ares_version.h5
-rw-r--r--deps/c-ares/ares_writev.c1
-rw-r--r--deps/c-ares/ares_writev.h1
-rw-r--r--deps/c-ares/bitncmp.c1
-rw-r--r--deps/c-ares/bitncmp.h1
-rw-r--r--deps/c-ares/config-win32.h353
-rw-r--r--deps/c-ares/get_ver.awk1
-rw-r--r--deps/c-ares/inet_net_pton.c1
-rw-r--r--deps/c-ares/inet_net_pton.h1
-rw-r--r--deps/c-ares/inet_ntop.c1
-rw-r--r--deps/c-ares/inet_ntop.h1
-rw-r--r--deps/c-ares/nameser.h1
-rw-r--r--deps/c-ares/setup_once.h58
-rw-r--r--deps/c-ares/windows_port.c1
67 files changed, 495 insertions, 119 deletions
diff --git a/deps/c-ares/CHANGES b/deps/c-ares/CHANGES
index b6c608da248..166de80def6 100644
--- a/deps/c-ares/CHANGES
+++ b/deps/c-ares/CHANGES
@@ -1,7 +1,30 @@
Changelog for the c-ares project
+Version 1.7.3 (June 11, 2010)
+
+Fixed:
+
+ o builds on Android
+ o now includes all files necessary to build it (1.7.2 lacked a file)
+
+Version 1.7.2 (June 10, 2010)
+
+Changed:
+
+ o Added ares_parse_mx_reply()
+
+Fixed:
+
+ o ares_init: Last, not first instance of domain or search should win
+ o improve alternative definition of bool
+ o fix VS2010 compiler warnings
+
+
Version 1.7.1 (Mar 23, 2010)
+* May 31, 2010 (Jakub Hrozek)
+- Use the last instance of domain/search, not the first one
+
* March 23, 2010 (Daniel Stenberg)
- We switched from CVS to git. See http://github.com/bagder/c-ares
@@ -27,7 +50,7 @@ Version 1.7.1 (Mar 23, 2010)
functions do not support IPv6 name servers. This implies that if the user
is capable of defining or providing an IPv6 name server, and the app is
using ares_init_options() or ares_save_options() at some point to handle
- the name servers, the app will likely loose IPv6 name servers.
+ the name servers, the app will likely lose IPv6 name servers.
* January 28, 2010 (Daniel Stenberg)
- Tommie Gannert pointed out a silly bug in ares_process_fd() since it didn't
diff --git a/deps/c-ares/README b/deps/c-ares/README
index aae99cdf78d..56a43c53a74 100644
--- a/deps/c-ares/README
+++ b/deps/c-ares/README
@@ -44,7 +44,7 @@ The following notes apply to c-ares version 1.7.0 and later.
* If you intend to distribute an already compiled c-ares library you _MUST_
also distribute along with it the generated ares_build.h which has been
used to compile it. Otherwise the library will be of no use for the users of
- the library that you have built. It is _your_ responsability to provide this
+ the library that you have built. It is _your_ responsibility to provide this
file. No one at the c-ares project can know how you have built the library.
* File ares_build.h includes platform and configuration dependent info,
diff --git a/deps/c-ares/README.msvc b/deps/c-ares/README.msvc
index 2c63085a0bb..9c1163ac5f1 100644
--- a/deps/c-ares/README.msvc
+++ b/deps/c-ares/README.msvc
@@ -1,4 +1,3 @@
- $Id$
___ __ _ _ __ ___ ___
diff --git a/deps/c-ares/README.node b/deps/c-ares/README.node
index e37a153acb6..17503096fdd 100644
--- a/deps/c-ares/README.node
+++ b/deps/c-ares/README.node
@@ -1,6 +1,6 @@
Library: c-ares, DNS resolver
-Version: 1.7.1 (23 march, 2010)
+Version: 1.7.3 (11 June, 2010)
Authors: Greg Hudson, Daniel Stenberg
diff --git a/deps/c-ares/RELEASE-NOTES b/deps/c-ares/RELEASE-NOTES
index 0e1fefb4c8b..d7ac79063cf 100644
--- a/deps/c-ares/RELEASE-NOTES
+++ b/deps/c-ares/RELEASE-NOTES
@@ -1,18 +1,12 @@
-This is what's new and changed in the c-ares 1.7.1 release:
-
-Changed:
-
- o added IPv6 name servers support
+c-ares version 1.7.3
Fixed:
- o closing of sockets on Windows systems
- o MSVC deprecated compiler options warnings
- o ares_process_fd() didn't check broken connections
+ o builds on Android
+ o now includes all files necessary to build it (1.7.2 lacked a file)
Thanks go to these friendly people for their efforts and contributions:
- Ingmar Runge, Laszlo Tamas Szabo, Yang Tse, Tommie Gannert, Gregor Jasny,
- Phil Blundell, Cedric Bail, Jakub Hrozek
+ Yang Tse, Bogdan Vatra
Have fun!
diff --git a/deps/c-ares/ares.h b/deps/c-ares/ares.h
index b156c9932e1..368c73a46b4 100644
--- a/deps/c-ares/ares.h
+++ b/deps/c-ares/ares.h
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright 1998, 2009 by the Massachusetts Institute of Technology.
* Copyright (C) 2007-2010 by Daniel Stenberg
diff --git a/deps/c-ares/ares__close_sockets.c b/deps/c-ares/ares__close_sockets.c
index d2476fdbb95..5d391a9ef2e 100644
--- a/deps/c-ares/ares__close_sockets.c
+++ b/deps/c-ares/ares__close_sockets.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
diff --git a/deps/c-ares/ares__get_hostent.c b/deps/c-ares/ares__get_hostent.c
index caa7f795bb0..298df09182a 100644
--- a/deps/c-ares/ares__get_hostent.c
+++ b/deps/c-ares/ares__get_hostent.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright 1998, 2010 by the Massachusetts Institute of Technology.
*
diff --git a/deps/c-ares/ares__read_line.c b/deps/c-ares/ares__read_line.c
index 2e94945dc89..ca018035ec3 100644
--- a/deps/c-ares/ares__read_line.c
+++ b/deps/c-ares/ares__read_line.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
diff --git a/deps/c-ares/ares__timeval.c b/deps/c-ares/ares__timeval.c
index 8cf37e91c09..f7aa7883f93 100644
--- a/deps/c-ares/ares__timeval.c
+++ b/deps/c-ares/ares__timeval.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright (C) 2008 by Daniel Stenberg et al
*
diff --git a/deps/c-ares/ares_cancel.c b/deps/c-ares/ares_cancel.c
index a730a651ee3..eb790ae00d0 100644
--- a/deps/c-ares/ares_cancel.c
+++ b/deps/c-ares/ares_cancel.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright (C) 2004 by Daniel Stenberg et al
*
diff --git a/deps/c-ares/ares_data.c b/deps/c-ares/ares_data.c
index 10f3d799cc9..6b6fae8b945 100644
--- a/deps/c-ares/ares_data.c
+++ b/deps/c-ares/ares_data.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright (C) 2009-2010 by Daniel Stenberg
*
diff --git a/deps/c-ares/ares_data.h b/deps/c-ares/ares_data.h
index 52ee4f5c7e5..de1608be5b8 100644
--- a/deps/c-ares/ares_data.h
+++ b/deps/c-ares/ares_data.h
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright (C) 2009-2010 by Daniel Stenberg
*
diff --git a/deps/c-ares/ares_destroy.c b/deps/c-ares/ares_destroy.c
index d9216668fc4..5e274daeef5 100644
--- a/deps/c-ares/ares_destroy.c
+++ b/deps/c-ares/ares_destroy.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
* Copyright (C) 2004-2010 by Daniel Stenberg
diff --git a/deps/c-ares/ares_dns.h b/deps/c-ares/ares_dns.h
index 2187da6e3f3..6893c024c89 100644
--- a/deps/c-ares/ares_dns.h
+++ b/deps/c-ares/ares_dns.h
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
diff --git a/deps/c-ares/ares_expand_name.c b/deps/c-ares/ares_expand_name.c
index fd3220d690d..2af6b2ac40b 100644
--- a/deps/c-ares/ares_expand_name.c
+++ b/deps/c-ares/ares_expand_name.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
diff --git a/deps/c-ares/ares_expand_string.c b/deps/c-ares/ares_expand_string.c
index 3b7b34138eb..f24cccf6470 100644
--- a/deps/c-ares/ares_expand_string.c
+++ b/deps/c-ares/ares_expand_string.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
diff --git a/deps/c-ares/ares_fds.c b/deps/c-ares/ares_fds.c
index bbf5c454ab5..b57be9287bb 100644
--- a/deps/c-ares/ares_fds.c
+++ b/deps/c-ares/ares_fds.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
diff --git a/deps/c-ares/ares_free_hostent.c b/deps/c-ares/ares_free_hostent.c
index f07fd7c15ba..b124560d86a 100644
--- a/deps/c-ares/ares_free_hostent.c
+++ b/deps/c-ares/ares_free_hostent.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
diff --git a/deps/c-ares/ares_free_string.c b/deps/c-ares/ares_free_string.c
index dc27f5b340d..e0545c1d1af 100644
--- a/deps/c-ares/ares_free_string.c
+++ b/deps/c-ares/ares_free_string.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright 2000 by the Massachusetts Institute of Technology.
*
diff --git a/deps/c-ares/ares_gethostbyaddr.c b/deps/c-ares/ares_gethostbyaddr.c
index a2c3a90769f..28152f4f379 100644
--- a/deps/c-ares/ares_gethostbyaddr.c
+++ b/deps/c-ares/ares_gethostbyaddr.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
@@ -191,8 +190,8 @@ static int file_lookup(struct ares_addr *addr, struct hostent **host)
char tmp[MAX_PATH];
HKEY hkeyHosts;
- if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, WIN_NS_NT_KEY, 0, KEY_READ, &hkeyHosts)
- == ERROR_SUCCESS)
+ if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, WIN_NS_NT_KEY, 0, KEY_READ,
+ &hkeyHosts) == ERROR_SUCCESS)
{
DWORD dwLength = MAX_PATH;
RegQueryValueEx(hkeyHosts, DATABASEPATH, NULL, NULL, (LPBYTE)tmp,
@@ -241,12 +240,14 @@ static int file_lookup(struct ares_addr *addr, struct hostent **host)
}
if (addr->family == AF_INET)
{
- if (memcmp((*host)->h_addr, &addr->addrV4, sizeof(addr->addrV4)) == 0)
+ if (memcmp((*host)->h_addr, &addr->addrV4,
+ sizeof(addr->addrV4)) == 0)
break;
}
else if (addr->family == AF_INET6)
{
- if (memcmp((*host)->h_addr, &addr->addrV6, sizeof(addr->addrV6)) == 0)
+ if (memcmp((*host)->h_addr, &addr->addrV6,
+ sizeof(addr->addrV6)) == 0)
break;
}
ares_free_hostent(*host);
diff --git a/deps/c-ares/ares_gethostbyname.c b/deps/c-ares/ares_gethostbyname.c
index ebad6707510..4469ffee233 100644
--- a/deps/c-ares/ares_gethostbyname.c
+++ b/deps/c-ares/ares_gethostbyname.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
@@ -151,8 +150,8 @@ static void next_lookup(struct host_query *hquery, int status_code)
}
else {
hquery->sent_family = AF_INET;
- ares_search(hquery->channel, hquery->name, C_IN, T_A, host_callback,
- hquery);
+ ares_search(hquery->channel, hquery->name, C_IN, T_A,
+ host_callback, hquery);
}
return;
@@ -195,9 +194,10 @@ static void host_callback(void *arg, int status, int timeouts,
{
status = ares_parse_aaaa_reply(abuf, alen, &host, NULL, NULL);
if (status == ARES_ENODATA || status == ARES_EBADRESP) {
- /* The query returned something but either there were no AAAA records (e.g. just CNAME)
- or the response was malformed. Try looking up A instead.
- We should possibly limit this attempt-next logic to AF_UNSPEC lookups only. */
+ /* The query returned something but either there were no AAAA
+ records (e.g. just CNAME) or the response was malformed. Try
+ looking up A instead. We should possibly limit this
+ attempt-next logic to AF_UNSPEC lookups only. */
hquery->sent_family = AF_INET;
ares_search(hquery->channel, hquery->name, C_IN, T_A,
host_callback, hquery);
@@ -208,10 +208,12 @@ static void host_callback(void *arg, int status, int timeouts,
}
end_hquery(hquery, status, host);
}
- else if ((status == ARES_ENODATA || status == ARES_EBADRESP || status == ARES_ETIMEOUT) && hquery->sent_family == AF_INET6)
+ else if ((status == ARES_ENODATA || status == ARES_EBADRESP ||
+ status == ARES_ETIMEOUT) && hquery->sent_family == AF_INET6)
{
- /* The AAAA query yielded no useful result. Now look up an A instead.
- We should possibly limit this attempt-next logic to AF_UNSPEC lookups only. */
+ /* The AAAA query yielded no useful result. Now look up an A instead.
+ We should possibly limit this attempt-next logic to AF_UNSPEC lookups
+ only. */
hquery->sent_family = AF_INET;
ares_search(hquery->channel, hquery->name, C_IN, T_A, host_callback,
hquery);
@@ -235,8 +237,8 @@ static void end_hquery(struct host_query *hquery, int status,
/* If the name looks like an IP address, fake up a host entry, end the
* query immediately, and return true. Otherwise return false.
*/
-static int fake_hostent(const char *name, int family, ares_host_callback callback,
- void *arg)
+static int fake_hostent(const char *name, int family,
+ ares_host_callback callback, void *arg)
{
struct hostent hostent;
char *aliases[1] = { NULL };
@@ -346,8 +348,8 @@ static int file_lookup(const char *name, int family, struct hostent **host)
char tmp[MAX_PATH];
HKEY hkeyHosts;
- if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, WIN_NS_NT_KEY, 0, KEY_READ, &hkeyHosts)
- == ERROR_SUCCESS)
+ if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, WIN_NS_NT_KEY, 0, KEY_READ,
+ &hkeyHosts) == ERROR_SUCCESS)
{
DWORD dwLength = MAX_PATH;
RegQueryValueEx(hkeyHosts, DATABASEPATH, NULL, NULL, (LPBYTE)tmp,
@@ -408,8 +410,8 @@ static int file_lookup(const char *name, int family, struct hostent **host)
return status;
}
-static void sort_addresses(struct hostent *host, const struct apattern *sortlist,
- int nsort)
+static void sort_addresses(struct hostent *host,
+ const struct apattern *sortlist, int nsort)
{
struct in_addr a1, a2;
int i1, i2, ind1, ind2;
@@ -464,8 +466,8 @@ static int get_address_index(const struct in_addr *addr,
return i;
}
-static void sort6_addresses(struct hostent *host, const struct apattern *sortlist,
- int nsort)
+static void sort6_addresses(struct hostent *host,
+ const struct apattern *sortlist, int nsort)
{
struct ares_in6_addr a1, a2;
int i1, i2, ind1, ind2;
diff --git a/deps/c-ares/ares_getnameinfo.c b/deps/c-ares/ares_getnameinfo.c
index 77752df0258..fc4b7faddfc 100644
--- a/deps/c-ares/ares_getnameinfo.c
+++ b/deps/c-ares/ares_getnameinfo.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright 2005 by Dominick Meglio
*
@@ -81,7 +80,8 @@ struct nameinfo_query {
(sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255"))
#endif
-static void nameinfo_callback(void *arg, int status, int timeouts, struct hostent *host);
+static void nameinfo_callback(void *arg, int status, int timeouts,
+ struct hostent *host);
static char *lookup_service(unsigned short port, int flags,
char *buf, size_t buflen);
#ifdef HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID
@@ -202,7 +202,8 @@ void ares_getnameinfo(ares_channel channel, const struct sockaddr *sa,
}
}
-static void nameinfo_callback(void *arg, int status, int timeouts, struct hostent *host)
+static void nameinfo_callback(void *arg, int status, int timeouts,
+ struct hostent *host)
{
struct nameinfo_query *niquery = (struct nameinfo_query *) arg;
char srvbuf[33];
@@ -221,8 +222,8 @@ static void nameinfo_callback(void *arg, int status, int timeouts, struct hosten
service = lookup_service(niquery->addr.addr6.sin6_port,
niquery->flags, srvbuf, sizeof(srvbuf));
}
- /* NOFQDN means we have to strip off the domain name portion.
- We do this by determining our own domain name, then searching the string
+ /* NOFQDN means we have to strip off the domain name portion. We do
+ this by determining our own domain name, then searching the string
for this domain name and removing it.
*/
#ifdef HAVE_GETHOSTNAME
@@ -239,7 +240,8 @@ static void nameinfo_callback(void *arg, int status, int timeouts, struct hosten
}
}
#endif
- niquery->callback(niquery->arg, ARES_SUCCESS, niquery->timeouts, (char *)(host->h_name),
+ niquery->callback(niquery->arg, ARES_SUCCESS, niquery->timeouts,
+ (char *)(host->h_name),
service);
return;
}
@@ -248,12 +250,15 @@ static void nameinfo_callback(void *arg, int status, int timeouts, struct hosten
{
char ipbuf[IPBUFSIZ];
if (niquery->family == AF_INET)
- ares_inet_ntop(AF_INET, &niquery->addr.addr4.sin_addr, ipbuf, IPBUFSIZ);
+ ares_inet_ntop(AF_INET, &niquery->addr.addr4.sin_addr, ipbuf,
+ IPBUFSIZ);
else
{
- ares_inet_ntop(AF_INET6, &niquery->addr.addr6.sin6_addr, ipbuf, IPBUFSIZ);
+ ares_inet_ntop(AF_INET6, &niquery->addr.addr6.sin6_addr, ipbuf,
+ IPBUFSIZ);
#ifdef HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID
- append_scopeid(&niquery->addr.addr6, niquery->flags, ipbuf, sizeof(ipbuf));
+ append_scopeid(&niquery->addr.addr6, niquery->flags, ipbuf,
+ sizeof(ipbuf));
#endif
}
/* They want a service too */
@@ -266,7 +271,8 @@ static void nameinfo_callback(void *arg, int status, int timeouts, struct hosten
service = lookup_service(niquery->addr.addr6.sin6_port,
niquery->flags, srvbuf, sizeof(srvbuf));
}
- niquery->callback(niquery->arg, ARES_SUCCESS, niquery->timeouts, ipbuf, service);
+ niquery->callback(niquery->arg, ARES_SUCCESS, niquery->timeouts, ipbuf,
+ service);
return;
}
niquery->callback(niquery->arg, status, niquery->timeouts, NULL, NULL);
@@ -301,10 +307,12 @@ static char *lookup_service(unsigned short port, int flags,
sep = &se;
memset(tmpbuf, 0, sizeof(tmpbuf));
#if GETSERVBYPORT_R_ARGS == 6
- if (getservbyport_r(port, proto, &se, (void *)tmpbuf, sizeof(tmpbuf), &sep) != 0)
+ if (getservbyport_r(port, proto, &se, (void *)tmpbuf,
+ sizeof(tmpbuf), &sep) != 0)
sep = NULL;
#elif GETSERVBYPORT_R_ARGS == 5
- sep = getservbyport_r(port, proto, &se, (void *)tmpbuf, sizeof(tmpbuf));
+ sep = getservbyport_r(port, proto, &se, (void *)tmpbuf,
+ sizeof(tmpbuf));
#elif GETSERVBYPORT_R_ARGS == 4
if (getservbyport_r(port, proto, &se, (void *)tmpbuf) != 0)
sep = NULL;
@@ -350,7 +358,8 @@ static void append_scopeid(struct sockaddr_in6 *addr6, unsigned int flags,
char fmt_lu[] = "%lu";
char tmpbuf[IF_NAMESIZE + 2];
size_t bufl;
- char *fmt = (sizeof(addr6->sin6_scope_id) > sizeof(unsigned int))?fmt_lu:fmt_u;
+ char *fmt = (sizeof(addr6->sin6_scope_id) > sizeof(unsigned int))?
+ fmt_lu:fmt_u;
tmpbuf[0] = '%';
diff --git a/deps/c-ares/ares_getopt.c b/deps/c-ares/ares_getopt.c
index b3cbb012d1d..1e02d086866 100644
--- a/deps/c-ares/ares_getopt.c
+++ b/deps/c-ares/ares_getopt.c
@@ -3,7 +3,6 @@
* on 2007-04-11. Lifted from version 5.2 of the 'Open Mash' project with
* the modified BSD license, BSD license without the advertising clause.
*
- * $Id$
*/
/*
diff --git a/deps/c-ares/ares_getsock.c b/deps/c-ares/ares_getsock.c
index 52aaecd0bca..72e467f2e63 100644
--- a/deps/c-ares/ares_getsock.c
+++ b/deps/c-ares/ares_getsock.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright (C) 2005 - 2010, Daniel Stenberg
*
diff --git a/deps/c-ares/ares_init.c b/deps/c-ares/ares_init.c
index 0a481e156ee..a812b2d7181 100644
--- a/deps/c-ares/ares_init.c
+++ b/deps/c-ares/ares_init.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
* Copyright (C) 2007-2010 by Daniel Stenberg
@@ -70,6 +69,10 @@
#include "ares_library_init.h"
#include "ares_private.h"
+#ifdef ANDROID
+#include <sys/system_properties.h>
+#endif
+
#ifdef WATT32
#undef WIN32 /* Redefined in MingW/MSVC headers */
#endif
@@ -825,6 +828,12 @@ DhcpNameServer
servers[i].addr.addrV4.s_addr = htonl(def_nameservers[i]);
status = ARES_EOF;
+#elif defined(ANDROID)
+ char value[PROP_VALUE_MAX]="";
+ __system_property_get("net.dns1", value);
+ status = config_nameserver(&servers, &nservers, value);
+ if (status == ARES_SUCCESS)
+ status = ARES_EOF;
#else
{
char *p;
@@ -840,11 +849,11 @@ DhcpNameServer
if (fp) {
while ((status = ares__read_line(fp, &line, &linesize)) == ARES_SUCCESS)
{
- if ((p = try_config(line, "domain")) && channel->ndomains == -1)
+ if ((p = try_config(line, "domain")))
status = config_domain(channel, p);
else if ((p = try_config(line, "lookup")) && !channel->lookups)
status = config_lookup(channel, p, "bind", "file");
- else if ((p = try_config(line, "search")) && channel->ndomains == -1)
+ else if ((p = try_config(line, "search")))
status = set_search(channel, p);
else if ((p = try_config(line, "nameserver")) && channel->nservers == -1)
status = config_nameserver(&servers, &nservers, p);
diff --git a/deps/c-ares/ares_ipv6.h b/deps/c-ares/ares_ipv6.h
index 4a97199c3b2..c0365c4bc81 100644
--- a/deps/c-ares/ares_ipv6.h
+++ b/deps/c-ares/ares_ipv6.h
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright (C) 2005 by Dominick Meglio
*
diff --git a/deps/c-ares/ares_library_init.c b/deps/c-ares/ares_library_init.c
index aac34eaf48c..1a875da1504 100644
--- a/deps/c-ares/ares_library_init.c
+++ b/deps/c-ares/ares_library_init.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
* Copyright (C) 2004-2009 by Daniel Stenberg
diff --git a/deps/c-ares/ares_library_init.h b/deps/c-ares/ares_library_init.h
index 515c17d82f9..29d5c9e73ff 100644
--- a/deps/c-ares/ares_library_init.h
+++ b/deps/c-ares/ares_library_init.h
@@ -1,7 +1,6 @@
#ifndef HEADER_CARES_LIBRARY_INIT_H
#define HEADER_CARES_LIBRARY_INIT_H
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
* Copyright (C) 2004-2009 by Daniel Stenberg
diff --git a/deps/c-ares/ares_llist.c b/deps/c-ares/ares_llist.c
index f261dc73b3d..c0acd90a8e8 100644
--- a/deps/c-ares/ares_llist.c
+++ b/deps/c-ares/ares_llist.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
diff --git a/deps/c-ares/ares_llist.h b/deps/c-ares/ares_llist.h
index d20af7e150f..b09f0de6d71 100644
--- a/deps/c-ares/ares_llist.h
+++ b/deps/c-ares/ares_llist.h
@@ -1,7 +1,6 @@
#ifndef __ARES_LLIST_H
#define __ARES_LLIST_H
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
diff --git a/deps/c-ares/ares_mkquery.c b/deps/c-ares/ares_mkquery.c
index 56571885cb6..e33f13ff223 100644
--- a/deps/c-ares/ares_mkquery.c
+++ b/deps/c-ares/ares_mkquery.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
diff --git a/deps/c-ares/ares_nowarn.c b/deps/c-ares/ares_nowarn.c
index 91d0a5f205c..4eee25fde90 100644
--- a/deps/c-ares/ares_nowarn.c
+++ b/deps/c-ares/ares_nowarn.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright (C) 2010 by Daniel Stenberg
*
diff --git a/deps/c-ares/ares_nowarn.h b/deps/c-ares/ares_nowarn.h
index 0b7181bd469..2b407de29b0 100644
--- a/deps/c-ares/ares_nowarn.h
+++ b/deps/c-ares/ares_nowarn.h
@@ -1,7 +1,6 @@
#ifndef HEADER_CARES_NOWARN_H
#define HEADER_CARES_NOWARN_H
-/* $Id$ */
/* Copyright (C) 2010 by Daniel Stenberg
*
diff --git a/deps/c-ares/ares_options.c b/deps/c-ares/ares_options.c
index 0c879740b2a..d00368afeb7 100644
--- a/deps/c-ares/ares_options.c
+++ b/deps/c-ares/ares_options.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
* Copyright (C) 2008-2010 by Daniel Stenberg
diff --git a/deps/c-ares/ares_parse_a_reply.c b/deps/c-ares/ares_parse_a_reply.c
index a6ed7dd2f05..86112d75be9 100644
--- a/deps/c-ares/ares_parse_a_reply.c
+++ b/deps/c-ares/ares_parse_a_reply.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
diff --git a/deps/c-ares/ares_parse_aaaa_reply.c b/deps/c-ares/ares_parse_aaaa_reply.c
index 8c2843f472e..a0f524daa5f 100644
--- a/deps/c-ares/ares_parse_aaaa_reply.c
+++ b/deps/c-ares/ares_parse_aaaa_reply.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
* Copyright 2005 Dominick Meglio
diff --git a/deps/c-ares/ares_parse_ptr_reply.c b/deps/c-ares/ares_parse_ptr_reply.c
index 9923a9da0e4..ccd68a26da1 100644
--- a/deps/c-ares/ares_parse_ptr_reply.c
+++ b/deps/c-ares/ares_parse_ptr_reply.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
diff --git a/deps/c-ares/ares_parse_srv_reply.c b/deps/c-ares/ares_parse_srv_reply.c
index de723f393a9..7d443b38ed3 100644
--- a/deps/c-ares/ares_parse_srv_reply.c
+++ b/deps/c-ares/ares_parse_srv_reply.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
* Copyright (C) 2009 by Jakub Hrozek <jhrozek@redhat.com>
diff --git a/deps/c-ares/ares_parse_txt_reply.c b/deps/c-ares/ares_parse_txt_reply.c
index 8e24e63b78d..51653328eb0 100644
--- a/deps/c-ares/ares_parse_txt_reply.c
+++ b/deps/c-ares/ares_parse_txt_reply.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
* Copyright (C) 2009 by Jakub Hrozek <jhrozek@redhat.com>
diff --git a/deps/c-ares/ares_private.h b/deps/c-ares/ares_private.h
index 2766d191646..0df5cb7563a 100644
--- a/deps/c-ares/ares_private.h
+++ b/deps/c-ares/ares_private.h
@@ -1,7 +1,6 @@
#ifndef __ARES_PRIVATE_H
#define __ARES_PRIVATE_H
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
* Copyright (C) 2004-2010 by Daniel Stenberg
diff --git a/deps/c-ares/ares_process.c b/deps/c-ares/ares_process.c
index ab0b79dc689..3ef1ddb3bff 100644
--- a/deps/c-ares/ares_process.c
+++ b/deps/c-ares/ares_process.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
* Copyright (C) 2004-2010 by Daniel Stenberg
@@ -948,7 +947,7 @@ static int open_tcp_socket(ares_channel channel, struct server_state *server)
* Disable the Nagle algorithm (only relevant for TCP sockets, and thus not
* in configure_socket). In general, in DNS lookups we're pretty much
* interested in firing off a single request and then waiting for a reply,
- * so batching isn't very interesting in general.
+ * so batching isn't very interesting.
*/
opt = 1;
if (setsockopt(s, IPPROTO_TCP, TCP_NODELAY,
diff --git a/deps/c-ares/ares_query.c b/deps/c-ares/ares_query.c
index 2a717fb3c60..63652e229d2 100644
--- a/deps/c-ares/ares_query.c
+++ b/deps/c-ares/ares_query.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
diff --git a/deps/c-ares/ares_rules.h b/deps/c-ares/ares_rules.h
index cdacf4a1439..f94c5b59165 100644
--- a/deps/c-ares/ares_rules.h
+++ b/deps/c-ares/ares_rules.h
@@ -1,7 +1,6 @@
#ifndef __CARES_RULES_H
#define __CARES_RULES_H
-/* $Id$ */
/* Copyright (C) 2009 by Daniel Stenberg et al
*
diff --git a/deps/c-ares/ares_search.c b/deps/c-ares/ares_search.c
index 8673c289f96..aa233ddf864 100644
--- a/deps/c-ares/ares_search.c
+++ b/deps/c-ares/ares_search.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
diff --git a/deps/c-ares/ares_send.c b/deps/c-ares/ares_send.c
index c2b006537fd..9f24d339a8a 100644
--- a/deps/c-ares/ares_send.c
+++ b/deps/c-ares/ares_send.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
diff --git a/deps/c-ares/ares_strcasecmp.c b/deps/c-ares/ares_strcasecmp.c
index 30d64b91162..f9c85e20966 100644
--- a/deps/c-ares/ares_strcasecmp.c
+++ b/deps/c-ares/ares_strcasecmp.c
@@ -1,5 +1,4 @@
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
diff --git a/deps/c-ares/ares_strcasecmp.h b/deps/c-ares/ares_strcasecmp.h
index 28164d74b8c..57d86f96342 100644
--- a/deps/c-ares/ares_strcasecmp.h
+++ b/deps/c-ares/ares_strcasecmp.h
@@ -1,7 +1,6 @@
#ifndef HEADER_CARES_STRCASECMP_H
#define HEADER_CARES_STRCASECMP_H
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
diff --git a/deps/c-ares/ares_strdup.c b/deps/c-ares/ares_strdup.c
index 6742c6f6b5f..18043274e99 100644
--- a/deps/c-ares/ares_strdup.c
+++ b/deps/c-ares/ares_strdup.c
@@ -1,5 +1,4 @@
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
diff --git a/deps/c-ares/ares_strdup.h b/deps/c-ares/ares_strdup.h
index 980da526397..c413a941c51 100644
--- a/deps/c-ares/ares_strdup.h
+++ b/deps/c-ares/ares_strdup.h
@@ -1,7 +1,6 @@
#ifndef HEADER_CARES_STRDUP_H
#define HEADER_CARES_STRDUP_H
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
diff --git a/deps/c-ares/ares_strerror.c b/deps/c-ares/ares_strerror.c
index 70af5b68daa..c3ecbd7b43c 100644
--- a/deps/c-ares/ares_strerror.c
+++ b/deps/c-ares/ares_strerror.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
diff --git a/deps/c-ares/ares_timeout.c b/deps/c-ares/ares_timeout.c
index 72ea0dc3fc3..2da4f5f4a18 100644
--- a/deps/c-ares/ares_timeout.c
+++ b/deps/c-ares/ares_timeout.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
diff --git a/deps/c-ares/ares_version.c b/deps/c-ares/ares_version.c
index 0f7d0371055..4f8c42f2c9a 100644
--- a/deps/c-ares/ares_version.c
+++ b/deps/c-ares/ares_version.c
@@ -1,4 +1,3 @@
-/* $Id$ */
#include "ares_setup.h"
#include "ares.h"
diff --git a/deps/c-ares/ares_version.h b/deps/c-ares/ares_version.h
index 59dbeb21645..0eca0bef84d 100644
--- a/deps/c-ares/ares_version.h
+++ b/deps/c-ares/ares_version.h
@@ -1,15 +1,14 @@
-/* $Id$ */
#ifndef ARES__VERSION_H
#define ARES__VERSION_H
#define ARES_VERSION_MAJOR 1
#define ARES_VERSION_MINOR 7
-#define ARES_VERSION_PATCH 1
+#define ARES_VERSION_PATCH 3
#define ARES_VERSION ((ARES_VERSION_MAJOR<<16)|\
(ARES_VERSION_MINOR<<8)|\
(ARES_VERSION_PATCH))
-#define ARES_VERSION_STR "1.7.1"
+#define ARES_VERSION_STR "1.7.3"
#if (ARES_VERSION >= 0x010700)
# define CARES_HAVE_ARES_LIBRARY_INIT 1
diff --git a/deps/c-ares/ares_writev.c b/deps/c-ares/ares_writev.c
index 4c12942d791..9e8e2d65741 100644
--- a/deps/c-ares/ares_writev.c
+++ b/deps/c-ares/ares_writev.c
@@ -1,5 +1,4 @@
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
diff --git a/deps/c-ares/ares_writev.h b/deps/c-ares/ares_writev.h
index 860b2943ff2..1a23a0f3d10 100644
--- a/deps/c-ares/ares_writev.h
+++ b/deps/c-ares/ares_writev.h
@@ -1,7 +1,6 @@
#ifndef HEADER_CARES_WRITEV_H
#define HEADER_CARES_WRITEV_H
-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
diff --git a/deps/c-ares/bitncmp.c b/deps/c-ares/bitncmp.c
index 2ec8dc58bbe..5c89506b33f 100644
--- a/deps/c-ares/bitncmp.c
+++ b/deps/c-ares/bitncmp.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/*
* Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
diff --git a/deps/c-ares/bitncmp.h b/deps/c-ares/bitncmp.h
index acdd45f0fc2..b0a5c812b42 100644
--- a/deps/c-ares/bitncmp.h
+++ b/deps/c-ares/bitncmp.h
@@ -1,7 +1,6 @@
#ifndef __ARES_BITNCMP_H
#define __ARES_BITNCMP_H
-/* $Id$ */
/* Copyright (C) 2005 by Dominick Meglio
*
diff --git a/deps/c-ares/config-win32.h b/deps/c-ares/config-win32.h
new file mode 100644
index 00000000000..af9a6a8ba52
--- /dev/null
+++ b/deps/c-ares/config-win32.h
@@ -0,0 +1,353 @@
+#ifndef __ARES_CONFIG_WIN32_H
+#define __ARES_CONFIG_WIN32_H
+
+
+/* Copyright (C) 2004 - 2008 by Daniel Stenberg et al
+ *
+ * Permission to use, copy, modify, and distribute this software and its
+ * documentation for any purpose and without fee is hereby granted, provided
+ * that the above copyright notice appear in all copies and that both that
+ * copyright notice and this permission notice appear in supporting
+ * documentation, and that the name of M.I.T. not be used in advertising or
+ * publicity pertaining to distribution of the software without specific,
+ * written prior permission. M.I.T. makes no representations about the
+ * suitability of this software for any purpose. It is provided "as is"
+ * without express or implied warranty.
+ */
+
+/* ================================================================ */
+/* ares/config-win32.h - Hand crafted config file for Windows */
+/* ================================================================ */
+
+/* ---------------------------------------------------------------- */
+/* HEADER FILES */
+/* ---------------------------------------------------------------- */
+
+/* Define if you have the <getopt.h> header file. */
+#if defined(__MINGW32__) || defined(__POCC__)
+#define HAVE_GETOPT_H 1
+#endif
+
+/* Define if you have the <limits.h> header file. */
+#define HAVE_LIMITS_H 1
+
+/* Define if you have the <process.h> header file. */
+#ifndef __SALFORDC__
+#define HAVE_PROCESS_H 1
+#endif
+
+/* Define if you have the <signal.h> header file. */
+#define HAVE_SIGNAL_H 1
+
+/* Define if you have the <sys/time.h> header file */
+/* #define HAVE_SYS_TIME_H 1 */
+
+/* Define if you have the <time.h> header file. */
+#define HAVE_TIME_H 1
+
+/* Define if you have the <unistd.h> header file. */
+#if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__LCC__) || \
+ defined(__POCC__)
+#define HAVE_UNISTD_H 1
+#endif
+
+/* Define if you have the <windows.h> header file. */
+#define HAVE_WINDOWS_H 1
+
+/* Define if you have the <winsock.h> header file. */
+#define HAVE_WINSOCK_H 1
+
+/* Define if you have the <winsock2.h> header file. */
+#ifndef __SALFORDC__
+#define HAVE_WINSOCK2_H 1
+#endif
+
+/* Define if you have the <ws2tcpip.h> header file. */
+#ifndef __SALFORDC__
+#define HAVE_WS2TCPIP_H 1
+#endif
+
+/* ---------------------------------------------------------------- */
+/* OTHER HEADER INFO */
+/* ---------------------------------------------------------------- */
+
+/* Define if sig_atomic_t is an available typedef. */
+#define HAVE_SIG_ATOMIC_T 1
+
+/* Define if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Define if you can safely include both <sys/time.h> and <time.h>. */
+/* #define TIME_WITH_SYS_TIME 1 */
+
+/* ---------------------------------------------------------------- */
+/* FUNCTIONS */
+/* ---------------------------------------------------------------- */
+
+/* Define if you have the closesocket function. */
+#define HAVE_CLOSESOCKET 1
+
+/* Define if you have the gethostname function. */
+#define HAVE_GETHOSTNAME 1
+
+/* Define if you have the ioctlsocket function. */
+#define HAVE_IOCTLSOCKET 1
+
+/* Define if you have a working ioctlsocket FIONBIO function. */
+#define HAVE_IOCTLSOCKET_FIONBIO 1
+
+/* Define if you have the strcasecmp function. */
+/* #define HAVE_STRCASECMP 1 */
+
+/* Define if you have the strdup function. */
+#define HAVE_STRDUP 1
+
+/* Define if you have the stricmp function. */
+#define HAVE_STRICMP 1
+
+/* Define if you have the strncasecmp function. */
+/* #define HAVE_STRNCASECMP 1 */
+
+/* Define if you have the strnicmp function. */
+#define HAVE_STRNICMP 1
+
+/* Define if you have the recv function. */
+#define HAVE_RECV 1
+
+/* Define to the type of arg 1 for recv. */
+#define RECV_TYPE_ARG1 SOCKET
+
+/* Define to the type of arg 2 for recv. */
+#define RECV_TYPE_ARG2 char *
+
+/* Define to the type of arg 3 for recv. */
+#define RECV_TYPE_ARG3 int
+
+/* Define to the type of arg 4 for recv. */
+#define RECV_TYPE_ARG4 int
+
+/* Define to the function return type for recv. */
+#define RECV_TYPE_RETV int
+
+/* Define if you have the recvfrom function. */
+#define HAVE_RECVFROM 1
+
+/* Define to the type of arg 1 for recvfrom. */
+#define RECVFROM_TYPE_ARG1 SOCKET
+
+/* Define to the type pointed by arg 2 for recvfrom. */
+#define RECVFROM_TYPE_ARG2 char
+
+/* Define to the type of arg 3 for recvfrom. */
+#define RECVFROM_TYPE_ARG3 int
+
+/* Define to the type of arg 4 for recvfrom. */
+#define RECVFROM_TYPE_ARG4 int
+
+/* Define to the type pointed by arg 5 for recvfrom. */
+#define RECVFROM_TYPE_ARG5 struct sockaddr
+
+/* Define to the type pointed by arg 6 for recvfrom. */
+#define RECVFROM_TYPE_ARG6 int
+
+/* Define to the function return type for recvfrom. */
+#define RECVFROM_TYPE_RETV int
+
+/* Define if you have the send function. */
+#define HAVE_SEND 1
+
+/* Define to the type of arg 1 for send. */
+#define SEND_TYPE_ARG1 SOCKET
+
+/* Define to the type qualifier of arg 2 for send. */
+#define SEND_QUAL_ARG2 const
+
+/* Define to the type of arg 2 for send. */
+#define SEND_TYPE_ARG2 char *
+
+/* Define to the type of arg 3 for send. */
+#define SEND_TYPE_ARG3 int
+
+/* Define to the type of arg 4 for send. */
+#define SEND_TYPE_ARG4 int
+
+/* Define to the function return type for send. */
+#define SEND_TYPE_RETV int
+
+/* Specifics for the Watt-32 tcp/ip stack */
+#ifdef WATT32
+ #define SOCKET int
+ #define NS_INADDRSZ 4
+ #define HAVE_ARPA_NAMESER_H 1
+ #define HAVE_ARPA_INET_H 1
+ #define HAVE_NETDB_H 1
+ #define HAVE_NETINET_IN_H 1
+ #define HAVE_SYS_SOCKET_H 1
+ #define HAVE_NETINET_TCP_H 1
+ #define HAVE_AF_INET6 1
+ #define HAVE_PF_INET6 1
+ #define HAVE_STRUCT_IN6_ADDR 1
+ #define HAVE_STRUCT_SOCKADDR_IN6 1
+ #undef HAVE_WINSOCK_H
+ #undef HAVE_WINSOCK2_H
+ #undef HAVE_WS2TCPIP_H
+#endif
+
+/* ---------------------------------------------------------------- */
+/* TYPEDEF REPLACEMENTS */
+/* ---------------------------------------------------------------- */
+
+/* Define this if in_addr_t is not an available 'typedefed' type */
+#define in_addr_t unsigned long
+
+/* Define as the return type of signal handlers (int or void). */
+#define RETSIGTYPE void
+
+/* Define ssize_t if it is not an available 'typedefed' type */
+#ifndef _SSIZE_T_DEFINED
+# if (defined(__WATCOMC__) && (__WATCOMC__ >= 1240)) || \
+ defined(__POCC__) || \
+ defined(__MINGW32__)
+# elif defined(_WIN64)
+# define _SSIZE_T_DEFINED
+# define ssize_t __int64
+# else
+# define _SSIZE_T_DEFINED
+# define ssize_t int
+# endif
+#endif
+
+/* ---------------------------------------------------------------- */
+/* TYPE SIZES */
+/* ---------------------------------------------------------------- */
+
+/* The size of `int', as computed by sizeof. */
+#define SIZEOF_INT 4
+
+/* The size of `short', as computed by sizeof. */
+#define SIZEOF_SHORT 2
+
+/* ---------------------------------------------------------------- */
+/* STRUCT RELATED */
+/* ---------------------------------------------------------------- */
+
+/* Define this if you have struct addrinfo */
+#define HAVE_STRUCT_ADDRINFO 1
+
+/* Define this if you have struct sockaddr_storage */
+#ifndef __SALFORDC__
+#define HAVE_STRUCT_SOCKADDR_STORAGE 1
+#endif
+
+/* Define this if you have struct timeval */
+#define HAVE_STRUCT_TIMEVAL 1
+
+/* ---------------------------------------------------------------- */
+/* COMPILER SPECIFIC */
+/* ---------------------------------------------------------------- */
+
+/* Define to avoid VS2005 complaining about portable C functions */
+#if defined(_MSC_VER) && (_MSC_VER >= 1400)
+#define _CRT_SECURE_NO_DEPRECATE 1
+#define _CRT_NONSTDC_NO_DEPRECATE 1
+#endif
+
+/* Officially, Microsoft's Windows SDK versions 6.X do not support Windows
+ 2000 as a supported build target. VS2008 default installations provide an
+ embedded Windows SDK v6.0A along with the claim that Windows 2000 is a
+ valid build target for VS2008. Popular belief is that binaries built using
+ Windows SDK versions 6.X and Windows 2000 as a build target are functional */
+#if defined(_MSC_VER) && (_MSC_VER >= 1500)
+# define VS2008_MINIMUM_TARGET 0x0500
+#endif
+
+/* When no build target is specified VS2008 default build target is Windows
+ Vista, which leaves out even Winsows XP. If no build target has been given
+ for VS2008 we will target the minimum Officially supported build target,
+ which happens to be Windows XP. */
+#if defined(_MSC_VER) && (_MSC_VER >= 1500)
+# define VS2008_DEFAULT_TARGET 0x0501
+#endif
+
+/* VS2008 default target settings and minimum build target check */
+#if defined(_MSC_VER) && (_MSC_VER >= 1500)
+# ifndef _WIN32_WINNT
+# define _WIN32_WINNT VS2008_DEFAULT_TARGET
+# endif
+# ifndef WINVER
+# define WINVER VS2008_DEFAULT_TARGET
+# endif
+# if (_WIN32_WINNT < VS2008_MINIMUM_TARGET) || (WINVER < VS2008_MINIMUM_TARGET)
+# error VS2008 does not support Windows build targets prior to Windows 2000
+# endif
+#endif
+
+/* When no build target is specified Pelles C 5.00 and later default build
+ target is Windows Vista. We override default target to be Windows 2000. */
+#if defined(__POCC__) && (__POCC__ >= 500)
+# ifndef _WIN32_WINNT
+# define _WIN32_WINNT 0x0500
+# endif
+# ifndef WINVER
+# define WINVER 0x0500
+# endif
+#endif
+
+/* Availability of freeaddrinfo, getaddrinfo and getnameinfo functions is
+ quite convoluted, compiler dependent and even build target dependent. */
+#if defined(HAVE_WS2TCPIP_H)
+# if defined(__POCC__)
+# define HAVE_FREEADDRINFO 1
+# define HAVE_GETADDRINFO 1
+# define HAVE_GETNAMEINFO 1
+# elif defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0501)
+# define HAVE_FREEADDRINFO 1
+# define HAVE_GETADDRINFO 1
+# define HAVE_GETNAMEINFO 1
+# elif defined(_MSC_VER) && (_MSC_VER >= 1200)
+# define HAVE_FREEADDRINFO 1
+# define HAVE_GETADDRINFO 1
+# define HAVE_GETNAMEINFO 1
+# endif
+#endif
+
+#if defined(__POCC__)
+# ifndef _MSC_VER
+# error Microsoft extensions /Ze compiler option is required
+# endif
+# ifndef __POCC__OLDNAMES
+# error Compatibility names /Go compiler option is required
+# endif
+#endif
+
+/* ---------------------------------------------------------------- */
+/* IPV6 COMPATIBILITY */
+/* ---------------------------------------------------------------- */
+
+/* Define this if you have address family AF_INET6 */
+#ifdef HAVE_WINSOCK2_H
+#define HAVE_AF_INET6 1
+#endif
+
+/* Define this if you have protocol family PF_INET6 */
+#ifdef HAVE_WINSOCK2_H
+#define HAVE_PF_INET6 1
+#endif
+
+/* Define this if you have struct in6_addr */
+#ifdef HAVE_WS2TCPIP_H
+#define HAVE_STRUCT_IN6_ADDR 1
+#endif
+
+/* Define this if you have struct sockaddr_in6 */
+#ifdef HAVE_WS2TCPIP_H
+#define HAVE_STRUCT_SOCKADDR_IN6 1
+#endif
+
+/* Define this if you have sockaddr_in6 with scopeid */
+#ifdef HAVE_WS2TCPIP_H
+#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
+#endif
+
+
+#endif /* __ARES_CONFIG_WIN32_H */
diff --git a/deps/c-ares/get_ver.awk b/deps/c-ares/get_ver.awk
index 322f280c07f..a63c729a9dc 100644
--- a/deps/c-ares/get_ver.awk
+++ b/deps/c-ares/get_ver.awk
@@ -1,7 +1,6 @@
# ***************************************************************************
# * Project: c-ares
# *
-# * $Id$
# ***************************************************************************
# 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:
diff --git a/deps/c-ares/inet_net_pton.c b/deps/c-ares/inet_net_pton.c
index 9c4717ab1aa..eabf63b81b0 100644
--- a/deps/c-ares/inet_net_pton.c
+++ b/deps/c-ares/inet_net_pton.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/*
* Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
diff --git a/deps/c-ares/inet_net_pton.h b/deps/c-ares/inet_net_pton.h
index f5642a505e5..e04bc11b165 100644
--- a/deps/c-ares/inet_net_pton.h
+++ b/deps/c-ares/inet_net_pton.h
@@ -1,7 +1,6 @@
#ifndef __ARES_INET_NET_PTON_H
#define __ARES_INET_NET_PTON_H
-/* $Id$ */
/* Copyright (C) 2005 by Daniel Stenberg
*
diff --git a/deps/c-ares/inet_ntop.c b/deps/c-ares/inet_ntop.c
index 3b35397804f..71385cc8c9a 100644
--- a/deps/c-ares/inet_ntop.c
+++ b/deps/c-ares/inet_ntop.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/* Copyright (c) 1996 by Internet Software Consortium.
*
diff --git a/deps/c-ares/inet_ntop.h b/deps/c-ares/inet_ntop.h
index ab9735e8099..c583488f75e 100644
--- a/deps/c-ares/inet_ntop.h
+++ b/deps/c-ares/inet_ntop.h
@@ -1,7 +1,6 @@
#ifndef __ARES_INET_NTOP_H
#define __ARES_INET_NTOP_H
-/* $Id$ */
/* Copyright (C) 2005 by Dominick Meglio
*
diff --git a/deps/c-ares/nameser.h b/deps/c-ares/nameser.h
index 3d800964778..b5be424cf74 100644
--- a/deps/c-ares/nameser.h
+++ b/deps/c-ares/nameser.h
@@ -1,4 +1,3 @@
-/* $Id$ */
#ifndef ARES_NAMESER_H
#define ARES_NAMESER_H
diff --git a/deps/c-ares/setup_once.h b/deps/c-ares/setup_once.h
index 95722b2b733..17ef226bec1 100644
--- a/deps/c-ares/setup_once.h
+++ b/deps/c-ares/setup_once.h
@@ -1,9 +1,8 @@
#ifndef __SETUP_ONCE_H
#define __SETUP_ONCE_H
-/* $Id$ */
-/* Copyright (C) 2004 - 2009 by Daniel Stenberg et al
+/* Copyright (C) 2004 - 2010 by Daniel Stenberg et al
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted, provided
@@ -255,24 +254,42 @@ struct timeval {
/*
- * Typedef to 'unsigned char' if bool is not an available 'typedefed' type.
+ * 'bool' exists on platforms with <stdbool.h>, i.e. C99 platforms.
+ * On non-C99 platforms there's no bool, so define an enum for that.
+ * On C99 platforms 'false' and 'true' also exist. Enum uses a
+ * global namespace though, so use bool_false and bool_true.
*/
#ifndef HAVE_BOOL_T
-typedef unsigned char bool;
-#define HAVE_BOOL_T
+ typedef enum {
+ bool_false = 0,
+ bool_true = 1
+ } bool;
+
+/*
+ * Use a define to let 'true' and 'false' use those enums. There
+ * are currently no use of true and false in libcurl proper, but
+ * there are some in the examples. This will cater for any later
+ * code happening to use true and false.
+ */
+# define false bool_false
+# define true bool_true
+# define HAVE_BOOL_T
#endif
/*
- * Default definition of uppercase TRUE and FALSE.
+ * Redefine TRUE and FALSE too, to catch current use. With this
+ * change, 'bool found = 1' will give a warning on MIPSPro, but
+ * 'bool found = TRUE' will not. Change tested on IRIX/MIPSPro,
+ * AIX 5.1/Xlc, Tru64 5.1/cc, w/make test too.
*/
#ifndef TRUE
-#define TRUE 1
+#define TRUE true
#endif
#ifndef FALSE
-#define FALSE 0
+#define FALSE false
#endif
@@ -367,38 +384,63 @@ typedef int sig_atomic_t;
#define EINTR WSAEINTR
#undef EINVAL /* override definition in errno.h */
#define EINVAL WSAEINVAL
+#undef EWOULDBLOCK /* override definition in errno.h */
#define EWOULDBLOCK WSAEWOULDBLOCK
+#undef EINPROGRESS /* override definition in errno.h */
#define EINPROGRESS WSAEINPROGRESS
+#undef EALREADY /* override definition in errno.h */
#define EALREADY WSAEALREADY
+#undef ENOTSOCK /* override definition in errno.h */
#define ENOTSOCK WSAENOTSOCK
+#undef EDESTADDRREQ /* override definition in errno.h */
#define EDESTADDRREQ WSAEDESTADDRREQ
+#undef EMSGSIZE /* override definition in errno.h */
#define EMSGSIZE WSAEMSGSIZE
+#undef EPROTOTYPE /* override definition in errno.h */
#define EPROTOTYPE WSAEPROTOTYPE
+#undef ENOPROTOOPT /* override definition in errno.h */
#define ENOPROTOOPT WSAENOPROTOOPT
+#undef EPROTONOSUPPORT /* override definition in errno.h */
#define EPROTONOSUPPORT WSAEPROTONOSUPPORT
#define ESOCKTNOSUPPORT WSAESOCKTNOSUPPORT
+#undef EOPNOTSUPP /* override definition in errno.h */
#define EOPNOTSUPP WSAEOPNOTSUPP
#define EPFNOSUPPORT WSAEPFNOSUPPORT
+#undef EAFNOSUPPORT /* override definition in errno.h */
#define EAFNOSUPPORT WSAEAFNOSUPPORT
+#undef EADDRINUSE /* override definition in errno.h */
#define EADDRINUSE WSAEADDRINUSE
+#undef EADDRNOTAVAIL /* override definition in errno.h */
#define EADDRNOTAVAIL WSAEADDRNOTAVAIL
+#undef ENETDOWN /* override definition in errno.h */
#define ENETDOWN WSAENETDOWN
+#undef ENETUNREACH /* override definition in errno.h */
#define ENETUNREACH WSAENETUNREACH
+#undef ENETRESET /* override definition in errno.h */
#define ENETRESET WSAENETRESET
+#undef ECONNABORTED /* override definition in errno.h */
#define ECONNABORTED WSAECONNABORTED
+#undef ECONNRESET /* override definition in errno.h */
#define ECONNRESET WSAECONNRESET
+#undef ENOBUFS /* override definition in errno.h */
#define ENOBUFS WSAENOBUFS
+#undef EISCONN /* override definition in errno.h */
#define EISCONN WSAEISCONN
+#undef ENOTCONN /* override definition in errno.h */
#define ENOTCONN WSAENOTCONN
#define ESHUTDOWN WSAESHUTDOWN
#define ETOOMANYREFS WSAETOOMANYREFS
+#undef ETIMEDOUT /* override definition in errno.h */
#define ETIMEDOUT WSAETIMEDOUT
+#undef ECONNREFUSED /* override definition in errno.h */
#define ECONNREFUSED WSAECONNREFUSED
+#undef ELOOP /* override definition in errno.h */
#define ELOOP WSAELOOP
#ifndef ENAMETOOLONG /* possible previous definition in errno.h */
#define ENAMETOOLONG WSAENAMETOOLONG
#endif
#define EHOSTDOWN WSAEHOSTDOWN
+#undef EHOSTUNREACH /* override definition in errno.h */
#define EHOSTUNREACH WSAEHOSTUNREACH
#ifndef ENOTEMPTY /* possible previous definition in errno.h */
#define ENOTEMPTY WSAENOTEMPTY
diff --git a/deps/c-ares/windows_port.c b/deps/c-ares/windows_port.c
index 64096a5be02..03acd1c1e2b 100644
--- a/deps/c-ares/windows_port.c
+++ b/deps/c-ares/windows_port.c
@@ -1,6 +1,5 @@
#include "ares_setup.h"
-/* $Id$ */
/* only do the following on windows
*/