Daniel Stenberg
cf7ad9758d
ares_inet_pton/ntop: cleanup
...
Make sure that the symbols are always exported and present in c-ares.
Make the headers prefixed with 'ares'.
Removed the inet_ntop.h version as it no longer features any content.
12 years ago
Daniel Stenberg
ee9a1c2457
ares_inet_ntop/ares_inet_pton: added man pages
12 years ago
Gisle Vanem
8d013420a0
curl_setup_once.h: definition of HAVE_CLOSE_S defines sclose() to close_s()
12 years ago
Gisle Vanem
c28e6d98db
config-dos.h: define HAVE_CLOSE_S for MSDOS/Watt-32
12 years ago
Gisle Vanem
e9bca998f9
config-dos.h: define strerror() to strerror_s_() for High-C
12 years ago
Daniel Stenberg
050663271e
ares_get_datatype: removed unused function
...
it was also wrongly named as internal functions require two underscores
12 years ago
Daniel Stenberg
2a3a63ae1f
ares__bitncmp: use two underscores for private functions
...
It used a single one previously making it look like a public one
12 years ago
Daniel Stenberg
9c03cc118c
ares__generate_new_id: moved to ares_query.c
...
... and ares__rc4 is turned into a local static function.
12 years ago
Daniel Stenberg
3217c7eef2
ares__swap_lists: make private and static
...
... since there's only one user, make it static within ares_process.c
12 years ago
Yang Tse
be6e6984b5
Makefile.msvc: add four VS version strings
12 years ago
Daniel Stenberg
df72bed2e3
ares_expand_name.3: clarify how to free the data
12 years ago
Yang Tse
75a8407985
zz40-xc-ovr.m4: fix 'wc' detection - follow-up 2
...
- Fix a pair of single quotes to double quotes.
URL: http://curl.haxx.se/mail/lib-2013-01/0355.html
Reported by: Tor Arntsen
12 years ago
Yang Tse
b6dd41b6ef
zz40-xc-ovr.m4: fix 'wc' detection - follow-up
...
- Take into account that 'wc' may return leading spaces and/or tabs.
- Set initial IFS to space, tab and newline.
12 years ago
Yang Tse
422717ba6f
zz40-xc-ovr.m4: fix 'wc' detection
...
- Take into account that 'wc' may return leading spaces.
- Set internationalization behavior variables.
Tor Arntsen analyzed and reported the issue.
URL: http://curl.haxx.se/mail/lib-2013-01/0351.html
12 years ago
Yang Tse
e03b5288ec
zz40-xc-ovr.m4: check another three basic utilities
12 years ago
Yang Tse
ddc7ab6713
zz40-xc-ovr.m4: 1.0 interface stabilization
...
- Stabilization results in 4 public interface m4 macros:
XC_CONFIGURE_PREAMBLE
XC_CONFIGURE_PREAMBLE_VER_MAJOR
XC_CONFIGURE_PREAMBLE_VER_MINOR
XC_CHECK_PATH_SEPARATOR
- Avoid one level of internal indirection
- Update comments
- Drop XC_OVR_ZZ40 macro
12 years ago
Yang Tse
18b7d9a9f4
zz40-xc-ovr.m4: emit witness message in configure BODY
...
This avoids witness message in output when running configure --help,
while sending the message to config.log for other configure runs.
12 years ago
Yang Tse
e916c68de7
zz40-xc-ovr.m4: truly do version conditional overriding
...
- version conditional overriding
- catch unexpanded XC macros
- fix double words in comments
12 years ago
Yang Tse
0110c7f6ee
zz40-xc-ovr.m4: fix variable assignment of subshell output bashism
...
Tor Arntsen analyzed and reported the issue.
URL: http://curl.haxx.se/mail/lib-2013-01/0306.html
12 years ago
Yang Tse
44635a5ec0
zz40-xc-ovr.m4: reinstate strict AC_REQUIRE macro dependencies
12 years ago
Yang Tse
186c57182e
zz40-xc-ovr.m4: avoid double single-quote usage
12 years ago
Yang Tse
b157f4a0be
zz40-xc-ovr.m4: parentheses balancing of 'case' statements
...
m4 quadrigraph shell comment technique allows proper autoconf
parentheses balancing in shell 'case' statements. The presence
of unbalanced parentheses may otherwise trigger expansion bugs.
12 years ago
Yang Tse
15177a631e
zz40-xc-ovr.m4: internals overhauling
...
- Update comments
- Execute commands in subshells
- Faster path separator check
- Fix missing 'test' command
- Rename private macros
- Minimize AC_REQUIRE usage
12 years ago
Yang Tse
971bdfedb2
zz40-xc-ovr.m4: redirect errors and warnings to stderr
12 years ago
Yang Tse
14e78ad68b
configure: use XC_CONFIGURE_PREAMBLE early checks
...
Some basic checks we make were placed early enough in generated
configure script when using autoconf 2.5X versions. Newer autoconf
versions expand these checks much further into the configure script,
rendering them useless. Using XC_CONFIGURE_PREAMBLE fixes placement
of early intended checks across all our autoconf supported versions.
12 years ago
Yang Tse
b74bcad714
zz40-xc-ovr.m4: provide XC_CONFIGURE_PREAMBLE macro
12 years ago
Yang Tse
037656b2d8
configure: autotools compatibility fixes - step I
...
Fix proper macro expansion order across autotools versions for
C compiler and preprocessor program checks.
12 years ago
Yang Tse
dc6c864108
configure: fix automake 1.13 compatibility
...
Tested with:
buildconf: autoconf version 2.69
buildconf: autom4te version 2.69
buildconf: autoheader version 2.69
buildconf: automake version 1.13.1
buildconf: aclocal version 1.13.1
buildconf: libtool version 2.4
buildconf: GNU m4 version 1.4.16
12 years ago
Yang Tse
4718066ea4
ares_private.h: use again memdebug.h instead of curl_memdebug.h
12 years ago
Yang Tse
a664066899
configure.ac: replace AM_CONFIG_HEADER with AC_CONFIG_HEADERS
...
automake 1.13 errors if AM_CONFIG_HEADER is used in configure script.
12 years ago
Yang Tse
70ac469a0c
cares-override.m4: provide AC_CONFIG_MACRO_DIR definition conditionally
...
Provide a 'traceable' AC_CONFIG_MACRO_DIR definition only when using
an autoconf version that does not provide it, instead of what we were
doing up to now of providing and overriding AC_CONFIG_MACRO_DIR for
all autoconf versions.
12 years ago
Yang Tse
5b5066d6bc
ares_private.h: use curl_memdebug.h instead of memdebug.h
12 years ago
Yang Tse
a056480169
vc6cares.dsp: add ares_create_query.c and ares_parse_soa_reply.c
12 years ago
Yang Tse
b214c21cf6
cares-functions.m4: improve gethostname arg 2 data type check
12 years ago
Yang Tse
c220b29b3c
setup_once.h: HP-UX specific 'bool', 'false' and 'true' definitions.
...
Also reverts commit bceb40095a
12 years ago
Yang Tse
84eb2dc220
configure: check if compiler halts on function prototype mismatch
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
4ed0fc2d44
setup_once.h: HP-UX <sys/socket.h> issue workaround
...
Issue: When building a 32bit target with large file support HP-UX
<sys/socket.h> header file may simultaneously provide two different
sets of declarations for sendfile and sendpath functions, one with
static and another with external linkage. Given that we do not use
mentioned functions we really don't care which linkage is the
appropriate one, but on the other hand, the double declaration emmits
warnings when using the HP-UX compiler and errors when using modern
gcc versions resulting in fatal compilation errors.
Mentioned issue is now fixed as long as we don't use sendfile nor
sendpath functions.
12 years ago
Yang Tse
0c677f578e
setup_once.h: refactor inclusion of <unistd.h> and <sys/socket.h>
...
Inclusion of these two header files now done in setup_once.h
12 years ago
Yang Tse
a1035276c1
Header inclusion clean-up
...
Remove header inclusions already done in setup_once.h
12 years ago
Yang Tse
bceb40095a
setup_once.h: HP-UX specific TRUE and FALSE definitions
...
Some HP-UX system headers require TRUE defined to 1 and FALSE to 0.
12 years ago
Yang Tse
98b52964cf
ares_timeout.c: fix compiler warning
12 years ago
Yang Tse
93a09eabeb
ares_create_query.c: IRIX compilation fix
12 years ago
Yang Tse
a5ce39391c
c-ares/nameser.h: add some T_* defines for ns_t_* values
12 years ago
Daniel Stenberg
1e4f2d28fc
Revert "ares_parse_aaaa_reply: fix memory leak"
...
This reverts commit 50f25d8a4b
.
12 years ago
Daniel Stenberg
50f25d8a4b
ares_parse_aaaa_reply: fix memory leak
...
an allocated buffer was not freed in the successful case.
12 years ago
Gisle Vanem
805c736e36
adig: perror() doesn't work for socket errors on windows
...
... so print the SOCKERRNO instead
12 years ago
Daniel Stenberg
65ac7e706d
get_DNS_AdaptersAddresses: fix IPv6 parsing
...
Use of the wrong define made the function not parse IPv6 addresses
properly.
Bug: http://c-ares.haxx.se/mail/c-ares-archive-2012-06/0028.shtml
Reported by: Saúl Ibarra Corretgé
12 years ago
Daniel Stenberg
2b897074cb
version: bumped to 1.10.0
...
Due to the newly added function: ares_create_query()
12 years ago