1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-11-22 08:20:27 +00:00
Commit Graph

47 Commits

Author SHA1 Message Date
b214c21cf6 cares-functions.m4: improve gethostname arg 2 data type check 2012-12-17 16:32:24 +01:00
9da14a847f cares-functions.m4: add gethostname arg 2 data type check and definition 2012-12-15 17:46:49 +01:00
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.
2012-12-15 17:36:09 +01:00
f2ea96b1b7 cares-functions.m4 serial # bump 2011-07-29 20:31:56 +02:00
2039e81e45 Revert "configure: additional flag checks for fcntl() and socket()"
This reverts commit 5f2a3b0e48.
2011-07-29 20:20:44 +02:00
5f2a3b0e48 configure: additional flag checks for fcntl() and socket() 2011-07-29 18:25:34 +02:00
822fd0f877 build: use getenv() replacement function for systems which lack it 2011-03-23 13:44:42 +01:00
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.
2010-12-15 02:22:04 +01:00
c4ee4a5d21 Fix three var names 2009-11-16 01:56:16 +00:00
afa62136a5 getaddrinfo is fully thread safe on solaris versions which
implement the function even when h_errno is not a macro.

The h_errno macro test now only done on systems for which there
is no hard coded knowledge about getaddrinfo's thread safeness.
2009-11-15 13:43:15 +00:00
ccabe949dd Assume that getaddrinfo is thread safe, unless hard coded
knowledge says the contrary or h_errno is not defined.
2009-11-13 20:03:45 +00:00
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.
2009-11-13 05:01:51 +00:00
f5b37120f3 AIX 5.2 and newer have threadsafe getaddrinfo.
Add some comments to better understand what the regex's pretend to achieve.
2009-11-12 22:48:40 +00:00
f084328b48 HP-UX 11.11 and later have threadsafe getaddrinfo 2009-11-12 20:29:28 +00:00
109c17b680 Check if getaddrinfo is threadsafe when function check allows it to be used 2009-11-12 18:31:33 +00:00
cdcc3aca8c Refactor how libraries are checked for connect() function,
and check for connect() as it is done for other functions.
2009-06-20 17:24:43 +00:00
0757cbf7f4 add CloseSocket camel case function check 2009-06-18 12:36:10 +00:00
d960739133 check for socket() and closesocket() as it is done for other functions 2009-06-17 12:52:46 +00:00
486802e3a9 Added CARES_INCLUDES_SYS_TYPES 2009-04-28 10:40:02 +00:00
61ac74c684 Initial step towards a configure time curl_socklen_t definition 2009-04-26 18:51:03 +00:00
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.
2008-11-20 07:59:26 +00:00
d3609a98e5 check for gethostbyaddr and gethostbyname as it is done for other functions 2008-11-18 01:57:29 +00:00
b0b6a7c8aa Make configure script check if ioctl with the SIOCGIFADDR command can be
used, and define HAVE_IOCTL_SIOCGIFADDR if appropriate.
2008-11-17 13:13:15 +00:00
bad9ff8817 fix leftover from previous commit 2008-11-17 10:05:35 +00:00
68bb7a43e4 fix inet_pton() runtime configure check 2008-11-17 03:54:05 +00:00
f75e379dae fix typo affecting inclusion of <arpa/inet.h> in configure
checks for inet_ntoa_r() inet_ntop() and inet_pton()
2008-11-14 15:26:27 +00:00
564c958725 #include <string.h> in the getaddrinfo() runtime check for the memset() prototype 2008-11-14 14:47:53 +00:00
72cd52972b fix symbol definition check for fcntl.h inclusion 2008-11-14 05:18:08 +00:00
65cafbe109 Refactor configure script detection of functions used to set sockets into
non-blocking mode, and decouple function detection from function capability.
2008-11-13 18:56:56 +00:00
c0711bdca9 check for freeaddrinfo() at configuration phase 2008-10-30 17:45:47 +00:00
0e4d0eda3d update aclocal file serial number 2008-10-30 13:50:15 +00:00
d013d47281 remove verification of the freeability of the addrinfo struct pointer members 2008-10-30 12:41:07 +00:00
d389bcaf1c fix comment 2008-10-29 01:50:56 +00:00
40d3121cd4 make CHECK_FUNC_GETADDRINFO_UNFREEABLE_AI_ADDR
and CHECK_FUNC_GETADDRINFO_UNFREEABLE_AI_CANONNAME
internal to CHECK_FUNC_GETADDRINFO
2008-10-29 01:45:07 +00:00
a9f68690a5 fix leftover 2008-10-28 20:07:40 +00:00
dfd9ac3c26 Initial attempt to detect at configuration time if the getaddrinfo()
function returns an addrinfo with an unfreeable ai_canonname member ptr.
2008-10-28 20:03:22 +00:00
ad60c2d0c3 Initial attempt to detect at configuration time if the getaddrinfo()
function returns an addrinfo with an unfreeable ai_addr member ptr.
2008-10-28 19:13:25 +00:00
49268447c8 #include <stdlib.h> for exit() prototype 2008-10-23 00:38:23 +00:00
5ca18d6d80 HAVE_INET_PTON will only be defined when an IPv6 capable working
inet_pton function is available.
2008-09-24 19:13:01 +00:00
a08ee8a0be HAVE_INET_NTOP will only be defined when an IPv6 capable working
inet_ntop function is available.
2008-09-24 16:43:12 +00:00
a36da12985 attempt to make work the gethostname function
check for winsock build target configurations
2008-09-22 00:44:10 +00:00
feb2043b43 fix netdb.h prerequisite inclusion 2008-09-18 02:23:33 +00:00
898e10bd60 improve detection of getservbyport_r() 2008-09-17 11:31:37 +00:00
fe11cb41ec improve detection of gethostname() 2008-09-17 08:14:00 +00:00
1a9795b401 rearrange to allow internal/private use of ares_writev to any system
that lacks the writev function.
2008-09-16 16:42:48 +00:00
b6e5b752fe improve detection of:
strcasecmp()
  strcmpi()
  stricmp()
  strncasecmp()
  strncmpi()
  strnicmp()
2008-09-15 00:31:42 +00:00
797372b0f4 strdup() clone for systems/configurations which lack it 2008-09-11 04:02:49 +00:00