Andrew Selivanov
7d3591ee8a
getaddrinfo enhancements ( #257 )
...
* Service support has been added to getaddrinfo.
* ares_parse_a/aaaa_record now share code with the addrinfo parser.
* Private ares_addrinfo structure with useful extensions such as ttls (including cname ttls),
as well as the ability to list multiple cnames in chain of lookups
Work By: Andrew Selivanov @ki11roy
6 years ago
Yang Tse
b214c21cf6
cares-functions.m4: improve gethostname arg 2 data type check
12 years ago
Yang Tse
9da14a847f
cares-functions.m4: add gethostname arg 2 data type check and definition
12 years ago
Yang Tse
a28e44c344
cares-functions.m4: update thread-safeness detection of getaddrinfo()
...
Take in account that POSIX standard Issue 7 drops h_errno support. Now, we also
consider getaddrinfo() to be thread-safe when (_POSIX_C_SOURCE >= 200809L) or
(_XOPEN_SOURCE >= 700) independently of whether h_errno exists or not.
Take in account that h_errno might be a modifiable lvalue not defined as
a C preprocessor macro.
12 years ago
Yang Tse
f2ea96b1b7
cares-functions.m4 serial # bump
14 years ago
Yang Tse
2039e81e45
Revert "configure: additional flag checks for fcntl() and socket()"
...
This reverts commit 5f2a3b0e48
.
14 years ago
Yang Tse
5f2a3b0e48
configure: additional flag checks for fcntl() and socket()
14 years ago
Yang Tse
822fd0f877
build: use getenv() replacement function for systems which lack it
14 years ago
Yang Tse
623f3cb531
configure: inet_net_pton function check adjustments
...
Define HAVE_INET_NET_PTON only when system's inet_net_pton function is IPv6
capable and is not affected by the WLB-2008080064 advisory.
HAVE_INET_NET_PTON_IPV6 is no longer defined nor used.
14 years ago
Yang Tse
c4ee4a5d21
Fix three var names
15 years ago
Yang Tse
afa62136a5
getaddrinfo is fully thread safe on solaris versions which
...
15 years ago
Yang Tse
ccabe949dd
Assume that getaddrinfo is thread safe, unless hard coded
...
knowledge says the contrary or h_errno is not defined.
15 years ago
Yang Tse
3d2e078f2b
Related with the threadsafe capability of getaddrinfo:
...
- Constantine Sapuntzakis reported that Darwin 6.0 a.k.a. MAC OS X 10.2
and newer have a threadsafe getaddrinfo.
- Fix Dragonfly BSD triplet detection.
- In case the hard-coded knowledge says that getaddrinfo is threadsafe,
an additional check is done to verify that h_errno is also defined.
If h_errno isn't defined, we finally assume that it isn't threadsafe.
Jamie Lokier provided the inspiration for this extra check.
15 years ago
Yang Tse
f5b37120f3
AIX 5.2 and newer have threadsafe getaddrinfo.
...
Add some comments to better understand what the regex's pretend to achieve.
15 years ago
Yang Tse
f084328b48
HP-UX 11.11 and later have threadsafe getaddrinfo
15 years ago
Yang Tse
109c17b680
Check if getaddrinfo is threadsafe when function check allows it to be used
15 years ago
Yang Tse
cdcc3aca8c
Refactor how libraries are checked for connect() function,
...
16 years ago
Yang Tse
0757cbf7f4
add CloseSocket camel case function check
16 years ago
Yang Tse
d960739133
check for socket() and closesocket() as it is done for other functions
16 years ago
Yang Tse
486802e3a9
Added CARES_INCLUDES_SYS_TYPES
16 years ago
Yang Tse
61ac74c684
Initial step towards a configure time curl_socklen_t definition
16 years ago
Dan Fandrich
e3d86772c4
Make checking for struct ifreq a prerequisite for setting
...
HAVE_IOCTL_SIOCGIFADDR since it's needed to use SIOCGIFADDR and Watcom C
doesn't currently define it.
16 years ago
Yang Tse
d3609a98e5
check for gethostbyaddr and gethostbyname as it is done for other functions
16 years ago
Yang Tse
b0b6a7c8aa
Make configure script check if ioctl with the SIOCGIFADDR command can be
...
used, and define HAVE_IOCTL_SIOCGIFADDR if appropriate.
16 years ago
Yang Tse
bad9ff8817
fix leftover from previous commit
16 years ago
Yang Tse
68bb7a43e4
fix inet_pton() runtime configure check
16 years ago
Yang Tse
f75e379dae
fix typo affecting inclusion of <arpa/inet.h> in configure
...
checks for inet_ntoa_r() inet_ntop() and inet_pton()
16 years ago
Yang Tse
564c958725
#include <string.h> in the getaddrinfo() runtime check for the memset() prototype
16 years ago
Yang Tse
72cd52972b
fix symbol definition check for fcntl.h inclusion
16 years ago
Yang Tse
65cafbe109
Refactor configure script detection of functions used to set sockets into
...
non-blocking mode, and decouple function detection from function capability.
16 years ago
Yang Tse
c0711bdca9
check for freeaddrinfo() at configuration phase
16 years ago
Yang Tse
0e4d0eda3d
update aclocal file serial number
16 years ago
Yang Tse
d013d47281
remove verification of the freeability of the addrinfo struct pointer members
16 years ago
Yang Tse
d389bcaf1c
fix comment
16 years ago
Yang Tse
40d3121cd4
make CHECK_FUNC_GETADDRINFO_UNFREEABLE_AI_ADDR
...
and CHECK_FUNC_GETADDRINFO_UNFREEABLE_AI_CANONNAME
internal to CHECK_FUNC_GETADDRINFO
16 years ago
Yang Tse
a9f68690a5
fix leftover
16 years ago
Yang Tse
dfd9ac3c26
Initial attempt to detect at configuration time if the getaddrinfo()
...
function returns an addrinfo with an unfreeable ai_canonname member ptr.
16 years ago
Yang Tse
ad60c2d0c3
Initial attempt to detect at configuration time if the getaddrinfo()
...
function returns an addrinfo with an unfreeable ai_addr member ptr.
16 years ago
Yang Tse
49268447c8
#include <stdlib.h> for exit() prototype
16 years ago
Yang Tse
5ca18d6d80
HAVE_INET_PTON will only be defined when an IPv6 capable working
...
inet_pton function is available.
16 years ago
Yang Tse
a08ee8a0be
HAVE_INET_NTOP will only be defined when an IPv6 capable working
...
inet_ntop function is available.
16 years ago
Yang Tse
a36da12985
attempt to make work the gethostname function
...
check for winsock build target configurations
16 years ago
Yang Tse
feb2043b43
fix netdb.h prerequisite inclusion
16 years ago
Yang Tse
898e10bd60
improve detection of getservbyport_r()
16 years ago
Yang Tse
fe11cb41ec
improve detection of gethostname()
16 years ago
Yang Tse
1a9795b401
rearrange to allow internal/private use of ares_writev to any system
...
that lacks the writev function.
16 years ago
Yang Tse
b6e5b752fe
improve detection of:
...
strcasecmp()
strcmpi()
stricmp()
strncasecmp()
strncmpi()
strnicmp()
16 years ago
Yang Tse
797372b0f4
strdup() clone for systems/configurations which lack it
16 years ago