1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-11-24 03:43:52 +00:00
Commit Graph

1505 Commits

Author SHA1 Message Date
b82874ad6f inet_ntop.c: s/socklen_t/ares_socklen_t for portability 2013-02-19 13:27:33 +01:00
ecf6f65b43 ares.h: s/socklen_t/ares_socklen_t for portability 2013-02-19 13:00:36 +01:00
f4dce2e9f0 ares_inet_ntop.3: 4th argument is socklen_t! 2013-02-17 19:18:54 +01:00
07bbbd85c3 spell inet correctly! 2013-02-17 17:51:37 +01:00
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.
2013-02-17 17:44:02 +01:00
ee9a1c2457 ares_inet_ntop/ares_inet_pton: added man pages 2013-02-17 17:44:02 +01:00
8d013420a0 curl_setup_once.h: definition of HAVE_CLOSE_S defines sclose() to close_s() 2013-02-15 02:36:20 +01:00
c28e6d98db config-dos.h: define HAVE_CLOSE_S for MSDOS/Watt-32 2013-02-15 02:36:19 +01:00
e9bca998f9 config-dos.h: define strerror() to strerror_s_() for High-C 2013-02-15 02:36:11 +01:00
050663271e ares_get_datatype: removed unused function
it was also wrongly named as internal functions require two underscores
2013-02-13 14:58:04 +01:00
2a3a63ae1f ares__bitncmp: use two underscores for private functions
It used a single one previously making it look like a public one
2013-02-13 14:58:04 +01:00
9c03cc118c ares__generate_new_id: moved to ares_query.c
... and ares__rc4 is turned into a local static function.
2013-02-13 14:58:04 +01:00
3217c7eef2 ares__swap_lists: make private and static
... since there's only one user, make it static within ares_process.c
2013-02-13 14:58:04 +01:00
be6e6984b5 Makefile.msvc: add four VS version strings 2013-02-13 13:03:44 +01:00
df72bed2e3 ares_expand_name.3: clarify how to free the data 2013-02-13 11:01:50 +01:00
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
2013-01-30 16:58:46 +01:00
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.
2013-01-30 15:46:50 +01:00
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
2013-01-30 12:25:53 +01:00
e03b5288ec zz40-xc-ovr.m4: check another three basic utilities 2013-01-29 20:49:16 +01:00
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
2013-01-28 21:28:42 +01:00
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.
2013-01-26 03:49:30 +01:00
e916c68de7 zz40-xc-ovr.m4: truly do version conditional overriding
- version conditional overriding
- catch unexpanded XC macros
- fix double words in comments
2013-01-25 19:20:28 +01:00
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
2013-01-25 14:22:43 +01:00
44635a5ec0 zz40-xc-ovr.m4: reinstate strict AC_REQUIRE macro dependencies 2013-01-25 12:21:47 +01:00
186c57182e zz40-xc-ovr.m4: avoid double single-quote usage 2013-01-25 05:16:18 +01:00
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.
2013-01-25 00:46:58 +01:00
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
2013-01-24 20:39:08 +01:00
971bdfedb2 zz40-xc-ovr.m4: redirect errors and warnings to stderr 2013-01-23 21:54:06 +01:00
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.
2013-01-23 18:20:33 +01:00
b74bcad714 zz40-xc-ovr.m4: provide XC_CONFIGURE_PREAMBLE macro 2013-01-23 18:20:22 +01:00
037656b2d8 configure: autotools compatibility fixes - step I
Fix proper macro expansion order across autotools versions for
C compiler and preprocessor program checks.
2013-01-23 16:44:25 +01:00
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
2013-01-23 16:16:13 +01:00
4718066ea4 ares_private.h: use again memdebug.h instead of curl_memdebug.h 2013-01-04 12:30:52 +01:00
a664066899 configure.ac: replace AM_CONFIG_HEADER with AC_CONFIG_HEADERS
automake 1.13 errors if AM_CONFIG_HEADER is used in configure script.
2013-01-01 19:27:30 +01:00
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.
2013-01-01 18:21:34 +01:00
5b5066d6bc ares_private.h: use curl_memdebug.h instead of memdebug.h 2012-12-28 20:18:14 +01:00
a056480169 vc6cares.dsp: add ares_create_query.c and ares_parse_soa_reply.c 2012-12-18 13:54:27 +01:00
b214c21cf6 cares-functions.m4: improve gethostname arg 2 data type check 2012-12-17 16:32:24 +01:00
c220b29b3c setup_once.h: HP-UX specific 'bool', 'false' and 'true' definitions.
Also reverts commit bceb40095a
2012-12-17 02:09:22 +01:00
84eb2dc220 configure: check if compiler halts on function prototype mismatch 2012-12-16 18:50:58 +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
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.
2012-12-14 19:39:21 +01:00
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
2012-12-14 18:36:59 +01:00
a1035276c1 Header inclusion clean-up
Remove header inclusions already done in setup_once.h
2012-12-14 18:25:56 +01:00
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.
2012-12-12 16:39:07 +01:00
98b52964cf ares_timeout.c: fix compiler warning 2012-12-10 16:12:49 +01:00
93a09eabeb ares_create_query.c: IRIX compilation fix 2012-11-23 14:28:37 +01:00
a5ce39391c c-ares/nameser.h: add some T_* defines for ns_t_* values 2012-11-23 14:23:34 +01:00
1e4f2d28fc Revert "ares_parse_aaaa_reply: fix memory leak"
This reverts commit 50f25d8a4b.
2012-11-07 22:54:50 +01:00