platform/upstream/c-ares.git
15 years agoUndefine 'optarg', 'optind' and 'opterr' when using Watt-32
Gisle Vanem [Mon, 8 Dec 2008 16:11:16 +0000 (16:11 +0000)]
Undefine 'optarg', 'optind' and 'opterr' when using Watt-32
(to get correct linkage on Windows).

15 years agoares_writev() shall not be exported when using Watt-32 (has writev).
Gisle Vanem [Mon, 8 Dec 2008 16:09:21 +0000 (16:09 +0000)]
ares_writev() shall not be exported when using Watt-32 (has writev).
Added _USE_32BIT_TIME_T to avoid runtime warning. Applies to
VC-2008+ only.

15 years agoRemoved unneeded defines HAVE_SIGNAL_H, HAVE_SIG_ATOMIC_T,
Gisle Vanem [Mon, 8 Dec 2008 14:58:56 +0000 (14:58 +0000)]
Removed unneeded defines HAVE_SIGNAL_H, HAVE_SIG_ATOMIC_T,
RETSIGTYPE and HAVE_PROCESS_H.

15 years agothe initial version of the ares_set_socket_callback man page
Daniel Stenberg [Thu, 4 Dec 2008 12:54:43 +0000 (12:54 +0000)]
the initial version of the ares_set_socket_callback man page

15 years agoGregor Jasny provided the patch that introduces ares_set_socket_callback(),
Daniel Stenberg [Thu, 4 Dec 2008 12:53:03 +0000 (12:53 +0000)]
Gregor Jasny provided the patch that introduces ares_set_socket_callback(),
and I edited it to also get duped by ares_dup().

15 years agoBring the sys/include.h include test in line with curl's.
Dan Fandrich [Thu, 4 Dec 2008 07:18:13 +0000 (07:18 +0000)]
Bring the sys/include.h include test in line with curl's.

15 years agoLet's not call ares_save_options() deprecated just yet
Daniel Stenberg [Wed, 3 Dec 2008 10:03:07 +0000 (10:03 +0000)]
Let's not call ares_save_options() deprecated just yet

15 years agoIntroduce ares_dup(3) and new thoughts about API/ABI and how to move forwards.
Daniel Stenberg [Wed, 3 Dec 2008 09:59:50 +0000 (09:59 +0000)]
Introduce ares_dup(3) and new thoughts about API/ABI and how to move forwards.
Also discussed on the ml.

15 years agoMake sure sys/socket.h is included before netinet/in.h (required by
Dan Fandrich [Tue, 2 Dec 2008 02:58:04 +0000 (02:58 +0000)]
Make sure sys/socket.h is included before netinet/in.h (required by
OpenWatcom C, and condoned by SUS)

15 years agominor indent fix
Daniel Stenberg [Mon, 1 Dec 2008 22:36:39 +0000 (22:36 +0000)]
minor indent fix

15 years agoConvert the public config struct to the same binary size/construct as in the
Daniel Stenberg [Mon, 1 Dec 2008 19:06:24 +0000 (19:06 +0000)]
Convert the public config struct to the same binary size/construct as in the
latest releases to remain ABI compatible.

15 years agoAdded '-DHAVE_GETHOSTNAME'.
Gisle Vanem [Sat, 29 Nov 2008 15:19:46 +0000 (15:19 +0000)]
Added '-DHAVE_GETHOSTNAME'.

15 years agoMake sure sys/socket.h is included before netinet/in.h (required by
Dan Fandrich [Sat, 29 Nov 2008 00:26:07 +0000 (00:26 +0000)]
Make sure sys/socket.h is included before netinet/in.h (required by
OpenWatcom C)

15 years agoNetware has gethostname()
Dan Fandrich [Fri, 28 Nov 2008 23:34:39 +0000 (23:34 +0000)]
Netware has gethostname()

15 years agoFixed a couple of typos
Dan Fandrich [Fri, 28 Nov 2008 23:24:06 +0000 (23:24 +0000)]
Fixed a couple of typos

15 years agoDon't tweak the HAVE_* macros when using autoconf
Dan Fandrich [Fri, 28 Nov 2008 23:12:11 +0000 (23:12 +0000)]
Don't tweak the HAVE_* macros when using autoconf

15 years agoMake use of gethostname() conditional on it being available
Dan Fandrich [Fri, 28 Nov 2008 22:41:14 +0000 (22:41 +0000)]
Make use of gethostname() conditional on it being available

15 years agoOnly set TCP_NODELAY when it exists
Dan Fandrich [Fri, 28 Nov 2008 22:07:40 +0000 (22:07 +0000)]
Only set TCP_NODELAY when it exists

15 years agoupdated with changes, preparing for a release soon
Daniel Stenberg [Fri, 28 Nov 2008 15:44:01 +0000 (15:44 +0000)]
updated with changes, preparing for a release soon

15 years agoGerald Combs fixed a bug in ares_parse_ptr_reply() which would cause a
Yang Tse [Wed, 26 Nov 2008 17:04:35 +0000 (17:04 +0000)]
Gerald Combs fixed a bug in ares_parse_ptr_reply() which would cause a
buffer to shrink instead of expand if a reply contained 8 or more records.

15 years agoBrad Spencer provided changes to allow buildconf to work on OS X.
Yang Tse [Wed, 26 Nov 2008 16:51:51 +0000 (16:51 +0000)]
Brad Spencer provided changes to allow buildconf to work on OS X.

15 years agoIn preparation for the upcomming IPv6 nameservers patch, the internal
Yang Tse [Tue, 25 Nov 2008 16:26:58 +0000 (16:26 +0000)]
In preparation for the upcomming IPv6 nameservers patch, the internal
ares_addr union is now changed into an internal struct which also holds
the address family.

15 years agoMake checking for struct ifreq a prerequisite for setting
Dan Fandrich [Thu, 20 Nov 2008 07:59:26 +0000 (07:59 +0000)]
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.

15 years agouse unsigned short better intead of mixing with ints to prevent compiler
Daniel Stenberg [Thu, 20 Nov 2008 07:50:48 +0000 (07:50 +0000)]
use unsigned short better intead of mixing with ints to prevent compiler
warnings

15 years agoplease the picky compilers by staying with short as the data we get is short
Daniel Stenberg [Thu, 20 Nov 2008 07:41:26 +0000 (07:41 +0000)]
please the picky compilers by staying with short as the data we get is short
only

15 years ago- Brad Spencer brought the new function ares_gethostbyname_file() which simply
Daniel Stenberg [Wed, 19 Nov 2008 15:16:16 +0000 (15:16 +0000)]
- Brad Spencer brought the new function ares_gethostbyname_file() which simply
  resolves a host name from the given file, using the regular hosts syntax.

15 years agouser provided PATH_SEPARATOR always overrides auto-detected one
Yang Tse [Wed, 19 Nov 2008 01:57:27 +0000 (01:57 +0000)]
user provided PATH_SEPARATOR always overrides auto-detected one

15 years agoattempting to keep lines below 80 chars
Yang Tse [Tue, 18 Nov 2008 20:13:55 +0000 (20:13 +0000)]
attempting to keep lines below 80 chars

15 years agoprovide a common PATH_SEPARATOR check method which is required by
Yang Tse [Tue, 18 Nov 2008 19:29:31 +0000 (19:29 +0000)]
provide a common PATH_SEPARATOR check method which is required by
upcomming work to support the broadest range of Autoconf versions

16 years agocheck for gethostbyaddr and gethostbyname as it is done for other functions
Yang Tse [Tue, 18 Nov 2008 01:57:29 +0000 (01:57 +0000)]
check for gethostbyaddr and gethostbyname as it is done for other functions

16 years agoMake configure script check if ioctl with the SIOCGIFADDR command can be
Yang Tse [Mon, 17 Nov 2008 13:13:15 +0000 (13:13 +0000)]
Make configure script check if ioctl with the SIOCGIFADDR command can be
used, and define HAVE_IOCTL_SIOCGIFADDR if appropriate.

16 years agofix leftover from previous commit
Yang Tse [Mon, 17 Nov 2008 10:05:35 +0000 (10:05 +0000)]
fix leftover from previous commit

16 years agofix inet_pton() runtime configure check
Yang Tse [Mon, 17 Nov 2008 03:54:05 +0000 (03:54 +0000)]
fix inet_pton() runtime configure check

16 years agotrim down configure script size
Yang Tse [Sun, 16 Nov 2008 02:23:18 +0000 (02:23 +0000)]
trim down configure script size

16 years agoFixed an OOM condition reported by Jim Meyering
Daniel Stenberg [Sat, 15 Nov 2008 23:07:35 +0000 (23:07 +0000)]
Fixed an OOM condition reported by Jim Meyering

16 years agofix typo affecting inclusion of <arpa/inet.h> in configure
Yang Tse [Fri, 14 Nov 2008 15:26:27 +0000 (15:26 +0000)]
fix typo affecting inclusion of <arpa/inet.h> in configure
checks for inet_ntoa_r() inet_ntop() and inet_pton()

16 years ago#include <string.h> in the getaddrinfo() runtime check for the memset() prototype
Yang Tse [Fri, 14 Nov 2008 14:47:53 +0000 (14:47 +0000)]
#include <string.h> in the getaddrinfo() runtime check for the memset() prototype

16 years agofix symbol definition check for fcntl.h inclusion
Yang Tse [Fri, 14 Nov 2008 05:18:08 +0000 (05:18 +0000)]
fix symbol definition check for fcntl.h inclusion

16 years agoRefactor configure script detection of functions used to set sockets into
Yang Tse [Thu, 13 Nov 2008 18:56:56 +0000 (18:56 +0000)]
Refactor configure script detection of functions used to set sockets into
non-blocking mode, and decouple function detection from function capability.

16 years agoAdded a TODO file to list things we want changed, added or fixed.
Daniel Stenberg [Sat, 1 Nov 2008 23:39:07 +0000 (23:39 +0000)]
Added a TODO file to list things we want changed, added or fixed.

16 years ago- Carlo Contavalli added support for the glibc "rotate" option, as documented
Daniel Stenberg [Sat, 1 Nov 2008 18:35:19 +0000 (18:35 +0000)]
- Carlo Contavalli added support for the glibc "rotate" option, as documented
  in man resolv.conf:

  causes round robin selection of nameservers from among those listed.  This
  has the effect of spreading the query load among all listed servers, rather
  than having all clients try the first listed server first every time.

  You can enable it with ARES_OPT_ROTATE

16 years agoAdjust WIN32 freeaddrinfo, getaddrinfo and getnameinfo availability
Yang Tse [Sat, 1 Nov 2008 17:13:10 +0000 (17:13 +0000)]
Adjust WIN32 freeaddrinfo, getaddrinfo and getnameinfo availability

16 years agoWIN32 availability of freeaddrinfo, getaddrinfo and getnameinfo functions is quite
Yang Tse [Sat, 1 Nov 2008 16:52:57 +0000 (16:52 +0000)]
WIN32 availability of freeaddrinfo, getaddrinfo and getnameinfo functions is quite
convoluted, compiler dependant and in some cases even build target dependat.

16 years agocheck for freeaddrinfo() at configuration phase
Yang Tse [Thu, 30 Oct 2008 17:45:47 +0000 (17:45 +0000)]
check for freeaddrinfo() at configuration phase

16 years agoupdate aclocal file serial number
Yang Tse [Thu, 30 Oct 2008 13:50:15 +0000 (13:50 +0000)]
update aclocal file serial number

16 years agoremove verification of the freeability of the addrinfo struct pointer members
Yang Tse [Thu, 30 Oct 2008 12:41:07 +0000 (12:41 +0000)]
remove verification of the freeability of the addrinfo struct pointer members

16 years agofix comment
Yang Tse [Wed, 29 Oct 2008 01:50:56 +0000 (01:50 +0000)]
fix comment

16 years agomake CHECK_FUNC_GETADDRINFO_UNFREEABLE_AI_ADDR
Yang Tse [Wed, 29 Oct 2008 01:45:07 +0000 (01:45 +0000)]
make CHECK_FUNC_GETADDRINFO_UNFREEABLE_AI_ADDR
 and CHECK_FUNC_GETADDRINFO_UNFREEABLE_AI_CANONNAME
internal to CHECK_FUNC_GETADDRINFO

16 years agofix leftover
Yang Tse [Tue, 28 Oct 2008 20:07:40 +0000 (20:07 +0000)]
fix leftover

16 years agoInitial attempt to detect at configuration time if the getaddrinfo()
Yang Tse [Tue, 28 Oct 2008 20:03:22 +0000 (20:03 +0000)]
Initial attempt to detect at configuration time if the getaddrinfo()
function returns an addrinfo with an unfreeable ai_canonname member ptr.

16 years agoInitial attempt to detect at configuration time if the getaddrinfo()
Yang Tse [Tue, 28 Oct 2008 19:13:25 +0000 (19:13 +0000)]
Initial attempt to detect at configuration time if the getaddrinfo()
function returns an addrinfo with an unfreeable ai_addr member ptr.

16 years agoicc adjustments:
Yang Tse [Sat, 25 Oct 2008 04:18:48 +0000 (04:18 +0000)]
icc adjustments:

  Select ANSI C89 dialect plus GNU extensions, again.

16 years agosome more temporary magic for the icc seg-fault issue
Yang Tse [Fri, 24 Oct 2008 12:23:24 +0000 (12:23 +0000)]
some more temporary magic for the icc seg-fault issue

16 years agoicc permanent adjustment:
Yang Tse [Fri, 24 Oct 2008 11:27:09 +0000 (11:27 +0000)]
icc permanent adjustment:

  Select precise floating-point model, otherwise doubles are less than 64-bit wide

icc test adjustment:

  Select c89 dialect

16 years agoicc adjustments:
Yang Tse [Thu, 23 Oct 2008 10:04:06 +0000 (10:04 +0000)]
icc adjustments:

  Enable more icc warnings.

  Optimization disabling options used only for icc 9.1

16 years ago#include <stdlib.h> for exit() prototype
Yang Tse [Thu, 23 Oct 2008 00:38:23 +0000 (00:38 +0000)]
#include <stdlib.h> for exit() prototype

16 years agosome more temporary magic for the icc seg-fault issue
Yang Tse [Wed, 22 Oct 2008 13:30:09 +0000 (13:30 +0000)]
some more temporary magic for the icc seg-fault issue

16 years agoremove from configure.ac temporary magic for the icc seg-fault issue
Yang Tse [Wed, 22 Oct 2008 11:10:56 +0000 (11:10 +0000)]
remove from configure.ac temporary magic for the icc seg-fault issue

16 years agosome more temporary magic for the icc seg-fault issue
Yang Tse [Tue, 21 Oct 2008 17:54:18 +0000 (17:54 +0000)]
some more temporary magic for the icc seg-fault issue

16 years agoCharles Hardin patch:
Yang Tse [Tue, 21 Oct 2008 01:58:23 +0000 (01:58 +0000)]
Charles Hardin patch:

- handles the EINPROGRESS for UDP connects
- uses closesocket instead of close on some paths that were noticed

16 years agosome more temporary magic for the icc seg-fault issue
Yang Tse [Mon, 20 Oct 2008 15:56:08 +0000 (15:56 +0000)]
some more temporary magic for the icc seg-fault issue

16 years agomessages initially intended only for debug purposes, now become permanent
Yang Tse [Sun, 19 Oct 2008 23:50:18 +0000 (23:50 +0000)]
messages initially intended only for debug purposes, now become permanent
since these are extremely useful when compiler rejects a set of options.

16 years agofix compiler warning
Yang Tse [Fri, 17 Oct 2008 19:04:53 +0000 (19:04 +0000)]
fix compiler warning

16 years agofix missing double-quotes
Yang Tse [Fri, 17 Oct 2008 17:11:11 +0000 (17:11 +0000)]
fix missing double-quotes

16 years agoCharles Hardin made adig support a regular numerical dotted IP address for the
Daniel Stenberg [Fri, 17 Oct 2008 11:26:36 +0000 (11:26 +0000)]
Charles Hardin made adig support a regular numerical dotted IP address for the
-s option as well.

16 years agosome more temporary magic for the icc seg-fault issue
Yang Tse [Thu, 16 Oct 2008 01:45:07 +0000 (01:45 +0000)]
some more temporary magic for the icc seg-fault issue

16 years agoEnsure that shell variable contents which have active meaning
Yang Tse [Wed, 15 Oct 2008 18:10:02 +0000 (18:10 +0000)]
Ensure that shell variable contents which have active meaning
to the shell echo command are not interpreted when trying to
remove extra whitespace from shell variable content.

16 years agoAdjust Watcom C warnings:
Yang Tse [Tue, 14 Oct 2008 23:06:39 +0000 (23:06 +0000)]
Adjust Watcom C warnings:

  Disable warnings on structure members padding.

16 years agoWith this change Solaris target builds will now be done with _REENTRANT defined.
Yang Tse [Tue, 14 Oct 2008 18:44:27 +0000 (18:44 +0000)]
With this change Solaris target builds will now be done with _REENTRANT defined.

16 years agoAdjust Tiny C basic options:
Yang Tse [Tue, 14 Oct 2008 15:24:02 +0000 (15:24 +0000)]
Adjust Tiny C basic options:

  Remove -b from debug-enabled configuration, as Tiny C might have
  been built without the memory and bounds checker support.

16 years agoAdjust GCC warnings:
Yang Tse [Tue, 14 Oct 2008 14:19:34 +0000 (14:19 +0000)]
Adjust GCC warnings:

  Better disable following warnings when cross-compiling with a gcc older
  than 3.0, to avoid warnings from third party system headers:

    -Wmissing-declarations
    -Wmissing-prototypes
    -Wunused
    -Wshadow

16 years agofix syntax error
Yang Tse [Tue, 14 Oct 2008 04:59:22 +0000 (04:59 +0000)]
fix syntax error

16 years agoInitial attempt to detect Watcom C compiler
Yang Tse [Tue, 14 Oct 2008 04:09:07 +0000 (04:09 +0000)]
Initial attempt to detect Watcom C compiler

16 years agomake naming scheme more consistent across whole file
Yang Tse [Mon, 13 Oct 2008 19:32:11 +0000 (19:32 +0000)]
make naming scheme more consistent across whole file

16 years agoAdjust GCC warnings:
Yang Tse [Mon, 13 Oct 2008 17:06:06 +0000 (17:06 +0000)]
Adjust GCC warnings:

  Disable following warnings when cross-compiling with a gcc older
  than 3.0, to avoid warnings from third party system headers:

    -Wmissing-prototypes
    -Wunused
    -Wshadow

16 years agoAdjust GCC --enable-warnings:
Yang Tse [Mon, 13 Oct 2008 00:43:30 +0000 (00:43 +0000)]
Adjust GCC --enable-warnings:

  Do not enable -pedantic when cross-compiling with a gcc older
  than 3.0, to avoid warnings from third party system headers.

16 years agoadjust SGI MIPSpro C detection
Yang Tse [Sun, 12 Oct 2008 22:52:25 +0000 (22:52 +0000)]
adjust SGI MIPSpro C detection

16 years agoLCC compiler adjustments:
Yang Tse [Sun, 12 Oct 2008 16:57:40 +0000 (16:57 +0000)]
LCC compiler adjustments:

  Highest warning level is double -A, next is single -A.
  Due to the big number of warnings these trigger on third
  party header files it is impratical for us to use any of
  them here. If you want them simply define it in CPPFLAGS.

16 years agoremove extra space
Yang Tse [Sat, 11 Oct 2008 18:04:39 +0000 (18:04 +0000)]
remove extra space

16 years agosplit SGI compiler check. One for MIPS C and another for MIPSpro C
Yang Tse [Sat, 11 Oct 2008 16:59:44 +0000 (16:59 +0000)]
split SGI compiler check. One for MIPS C and another for MIPSpro C

16 years agoLCC compiler adjustments:
Yang Tse [Sat, 11 Oct 2008 16:19:35 +0000 (16:19 +0000)]
LCC compiler adjustments:

  Warning level reduced from double -A to single -A

16 years agoInitial attempt to detect Tiny C compiler
Yang Tse [Fri, 10 Oct 2008 10:31:16 +0000 (10:31 +0000)]
Initial attempt to detect Tiny C compiler

16 years agoInitial attempt to detect LCC compiler
Yang Tse [Fri, 10 Oct 2008 10:06:25 +0000 (10:06 +0000)]
Initial attempt to detect LCC compiler

16 years ago1) fix bug in CONVERT_INCLUDE_TO_ISYSTEM
Yang Tse [Fri, 10 Oct 2008 09:14:18 +0000 (09:14 +0000)]
1) fix bug in CONVERT_INCLUDE_TO_ISYSTEM

2) Disable SGI remark: controlling expression is constant

16 years agosimplify SGI C compiler check
Yang Tse [Fri, 10 Oct 2008 05:09:28 +0000 (05:09 +0000)]
simplify SGI C compiler check

16 years agoHP C adjustments:
Yang Tse [Fri, 10 Oct 2008 02:32:46 +0000 (02:32 +0000)]
HP C adjustments:

  Due to the HP-UX socklen_t issue it is insane to use the +w1 warning level.
  It generates more than 1100 warnings on socklen_t related statements.

  Until the issue is somehow fixed we will just use the +w2 warning level.

16 years agoAdd debug tracing for COMPILER_WORKS_IFELSE
Yang Tse [Fri, 10 Oct 2008 00:07:41 +0000 (00:07 +0000)]
Add debug tracing for COMPILER_WORKS_IFELSE

16 years agoconfigure will also warn on 'strict compiler warning' rejected options
Yang Tse [Thu, 9 Oct 2008 19:55:18 +0000 (19:55 +0000)]
configure will also warn on 'strict compiler warning' rejected options

16 years agoconvert rejected compiler options messages into a warnings
Yang Tse [Thu, 9 Oct 2008 15:06:20 +0000 (15:06 +0000)]
convert rejected compiler options messages into a warnings

16 years agoremove extra whitespace from string in SGI C check
Yang Tse [Thu, 9 Oct 2008 13:11:10 +0000 (13:11 +0000)]
remove extra whitespace from string in SGI C check

16 years agooops
Yang Tse [Thu, 9 Oct 2008 03:05:48 +0000 (03:05 +0000)]
oops

16 years agoInitial attempt to detect SGI C compiler
Yang Tse [Thu, 9 Oct 2008 03:02:25 +0000 (03:02 +0000)]
Initial attempt to detect SGI C compiler

16 years agoHP C adjustments:
Yang Tse [Thu, 9 Oct 2008 00:50:50 +0000 (00:50 +0000)]
HP C adjustments:

  Disallow run-time dereferencing of null pointers.

  Disable some remarks:

    #4227: padding struct with n bytes to align member.

    #4255: padding size of struct with n bytes to alignment boundary.

16 years agoimprove presentation of accepted/rejected debug/optimizer options
Yang Tse [Wed, 8 Oct 2008 19:38:01 +0000 (19:38 +0000)]
improve presentation of accepted/rejected debug/optimizer options

16 years agorefactoring of COMPILER_BASIC_OPTS
Yang Tse [Wed, 8 Oct 2008 16:12:10 +0000 (16:12 +0000)]
refactoring of COMPILER_BASIC_OPTS

16 years agoInitial attempt to detect SUN C compiler
Yang Tse [Wed, 8 Oct 2008 03:50:45 +0000 (03:50 +0000)]
Initial attempt to detect SUN C compiler

16 years agoInitial attempt to detect HP C compiler
Yang Tse [Wed, 8 Oct 2008 02:29:13 +0000 (02:29 +0000)]
Initial attempt to detect HP C compiler

16 years agofix compiler warning: 'dot_4' may be used uninitialized in this function
Yang Tse [Tue, 7 Oct 2008 18:44:32 +0000 (18:44 +0000)]
fix compiler warning: 'dot_4' may be used uninitialized in this function

16 years agoadjust ICC_windows settings
Yang Tse [Tue, 7 Oct 2008 17:37:25 +0000 (17:37 +0000)]
adjust ICC_windows settings

16 years agofix VAR_STRIP
Yang Tse [Tue, 7 Oct 2008 16:53:46 +0000 (16:53 +0000)]
fix VAR_STRIP