Yang Tse
343d6f221f
Avoid inline C99ism, and move c-ares routines for managing doubly-linked lists.
2007-10-02 02:18:01 +00:00
Yang Tse
10df4bdba2
Fix compiler warning
2007-09-30 19:43:23 +00:00
Yang Tse
68aa62d76b
check availability of <netinet/tcp.h>
2007-09-30 02:12:11 +00:00
Yang Tse
a0b8ac2bdc
improve portability, defining MAXDNAME and MAXCDNAME
2007-09-30 00:37:47 +00:00
Yang Tse
a034ee1b7d
Steve Little's fixes to allow compilation on VMS 64-bit mode
2007-04-25 03:00:10 +00:00
Yang Tse
35b7d08768
move linkage var declarations to ares_getopt.h
2007-04-16 15:35:34 +00:00
Yang Tse
d741a92e20
ares_getopt() command-line parser function does not belong to actual
...
c-ares library. It is just a convinience source code helper function
for use in example programs adig.c and ahost.c
2007-04-16 09:08:15 +00:00
Yang Tse
bba777d6da
ares_getopt() command-line parser function does not belong to actual
...
c-ares library. It is just a convinience source code helper function
for use in example programs adig.c and ahost.c
2007-04-16 09:01:16 +00:00
Yang Tse
cd6a0a68b8
update MSVC project files with ares_getopt()
2007-04-12 19:14:00 +00:00
Yang Tse
088a4d923a
use ares_getopt for all platforms
2007-04-12 19:01:19 +00:00
Yang Tse
ddbe06ca13
add ares_getopt prototype
2007-04-12 18:59:46 +00:00
Yang Tse
8776d1564b
Rename function as ares_getopt()
2007-04-12 18:06:41 +00:00
Yang Tse
8438d08ff8
Replace tabs with spaces
2007-04-12 17:45:57 +00:00
Yang Tse
4dc8ca29b7
Add file ares_getopt.c
...
Original file name getopt.c Initial import into the c-ares source tree
on 2007-04-11. Lifted from version 5.2 of the 'Open Mash' project with
the modified BSD license, BSD license without the advertising clause.
2007-04-12 16:53:59 +00:00
Yang Tse
f68a45779d
convenience SIG_ATOMIC_T macro definition
2007-04-11 11:02:13 +00:00
Yang Tse
140d6b08fb
move WinSock definitions of EBADF, EINTR, EINVAL and EAFNOSUPPORT to setup_once.h
2007-04-04 06:06:36 +00:00
Yang Tse
c8033a21a1
update copyright year
2007-04-03 18:25:18 +00:00
Yang Tse
c54589e39f
Cleanup. Warnings related with FD_SET, FD_ISSET, and FD_ZERO macros
...
are not icc 9.0 specific.
2007-04-03 02:45:04 +00:00
Yang Tse
b0c7d4c2b0
attempt to keep message length below 80 chars
2007-03-22 14:41:10 +00:00
Yang Tse
207cde73e2
show better description for AMD64-linux static libraries PIC check
2007-03-15 15:35:51 +00:00
Yang Tse
d85eb83c2b
remove code superceeded by the new method used to force
...
libtool to skip C++ and Fortran checks in patchset:
http://cool.haxx.se/cvs.cgi/curl/ares/configure.ac.diff?r1=1.60&r2=1.64
2007-03-08 12:04:30 +00:00
Yang Tse
1aadb5e290
fix test leftover in previous commit
2007-03-07 18:02:35 +00:00
Yang Tse
d8bc20eb43
force libtool to build static libraries with PIC on AMD64
2007-03-07 17:59:03 +00:00
Yang Tse
2077aa0859
Autoconf redefines the M4 builtin macro 'm4_undefine' in such a way that
...
it fails if the macro that is being undefined is not already defined. To
make this work under all cases and be sure that at a certain point some
specific macro isn't defined we must use the following style in configure:
m4_ifdef([macro], [m4_undefine([macro])])
2007-03-07 01:13:03 +00:00
Yang Tse
3081021d88
skip libtool C++ and Fortran linker checks
2007-03-06 16:53:53 +00:00
Yang Tse
8449df4bd8
skip libtool C++ and Fortran checks
2007-03-06 05:05:50 +00:00
Yang Tse
7c76875958
include <sys/types.h> when checking availability of the bool type
2007-02-22 16:44:43 +00:00
Yang Tse
915e774a42
Check for stdbool.h at configuration stage, and include it if available.
...
Check for lowercase 'bool' type at configuration stage. If not available
provide a suitable replacement with a type definition of 'unsigned char'
in setup_once.h
Move definitions of TRUE and FALSE to setup_once.h
2007-02-22 02:51:54 +00:00
Yang Tse
5f5a8ca905
curlassert macro replaced with DEBUGASSERT macro defined in setup_once.h
2007-02-21 19:03:20 +00:00
Yang Tse
3f00c1cc9a
Move header file inclusion logic and definition of timeval
...
struct for platforms that don't have it to setup_once.h
2007-02-20 12:12:27 +00:00
Yang Tse
7bf2332d7f
compiler warning fix
2007-02-19 02:29:35 +00:00
Yang Tse
679a675660
add debug messages for initialization failures
2007-02-19 02:03:58 +00:00
Yang Tse
385e6d0eea
fix ENAMETOOLONG and ENOTEMPTY may already be defined in errno.h
2007-02-18 00:34:37 +00:00
Yang Tse
ee2df583d3
Move portable error number symbolic name definitions to setup_once.h
2007-02-17 13:51:24 +00:00
Yang Tse
45b2661a5a
compiler warning fix
2007-02-17 11:59:08 +00:00
Yang Tse
675bdce3b2
compiler warning fix
2007-02-17 11:34:33 +00:00
Yang Tse
8595ddf7c4
add debug messages for fopen() failures
2007-02-16 19:17:05 +00:00
Yang Tse
69fa447354
use macros ERRNO, SET_ERRNO(), SOCKERRNO and SET_SOCKERRNO() for errno handling
2007-02-16 15:04:44 +00:00
Yang Tse
10a035e128
compiler warning fix
2007-02-16 14:22:08 +00:00
Yang Tse
c2f42a9bf4
introduce uppercase macros SOCKERRNO, SET_SOCKERRNO(), ERRNO and SET_ERRNO()
...
making them available to any source code file which includes "setup.h".
Macro SOCKERRNO / SET_SOCKERRNO() returns / sets the *socket-related* errno
(or equivalent) on this platform to hide platform details to code using it.
Macro ERRNO / SET_ERRNO() returns / sets the NOT *socket-related* errno
(or equivalent) on this platform to hide platform details to code using it.
2007-02-15 16:23:24 +00:00
Yang Tse
3c769f98e8
icc 9.0 when compiling its generated code for its own FD_SET,
...
FD_ISSET, and FD_ZERO macros emits warnings #1469 and #593 .
So for icc 9.0 we also ignore warnings #1469 and #593 .
* 593 warns on "variable __d0 was set but never used"
* 1469 warns on "cc clobber ignored"
2007-02-15 14:02:32 +00:00
Yang Tse
ab3790b683
compiler warning fix
2007-02-15 12:14:34 +00:00
Yang Tse
5dceb6d883
Oops, missing argument separator comma
2007-02-14 17:38:41 +00:00
Yang Tse
8c76cf38a7
in debug messages also show error description
2007-02-14 14:11:47 +00:00
Yang Tse
0d8bf01d91
avoid using funtion isblank() and just use our ISBLANK
...
macro to provide this functionality on all platforms
2007-02-14 13:31:37 +00:00
Yang Tse
902d0283b7
check for isblank() at configuration stage. If not available
...
provide a suitable replacement for use in our ISBLANK macro
2007-02-13 19:01:03 +00:00
Yang Tse
2bd57a6d30
use our own ISUPPER and ISLOWER macros
2007-02-13 18:02:20 +00:00
Yang Tse
05da7b7fda
use our own ISBLANK macro
2007-02-13 17:47:27 +00:00
Yang Tse
6751a208d6
Fix c-ares failing to get the search sequence of /etc/hosts and
...
DNS from /etc/nsswitch.conf, /etc/host.conf or /etc/svc.conf when
/etc/resolv.conf did not exist or was unable to read it.
2007-02-13 16:14:25 +00:00
Yang Tse
d145c09ef1
compiler warning fix
2007-02-08 17:01:40 +00:00
Yang Tse
5d5bf03803
use macro AC_AIX to define `_ALL_SOURCE', if on AIX.
2007-02-08 00:28:21 +00:00
Yang Tse
6fa6ac89b4
use same AIX XLC compiler options as curl's
2007-02-07 18:13:40 +00:00
Yang Tse
7a76b6948f
*) Remove duplicate declaration of TYPE_SOCKADDR_STORAGE
...
*) Update CURL_CC_DEBUG_OPTS from curl's script
2007-02-07 15:15:15 +00:00
Yang Tse
b9c00a23ce
compiler warning fix
2007-02-06 03:31:27 +00:00
Yang Tse
12393dcd5c
compiler warning fix
2007-02-05 04:10:32 +00:00
Yang Tse
7fe31e4d00
compiler warning fix
2007-02-02 17:16:06 +00:00
Yang Tse
6f872e206a
add debug messages for initialization failures
2007-02-02 16:01:55 +00:00
Yang Tse
94f2d923fc
add missing strings for existing error codes
2007-02-02 16:01:15 +00:00
Yang Tse
e184411c0b
move DEBUGF macro definition to setup_once.h
2007-02-02 15:31:32 +00:00
Yang Tse
145117174e
compiler warning fix
2007-02-01 15:36:56 +00:00
Yang Tse
fb38ee15e2
compiler warning fix
2007-02-01 01:42:13 +00:00
Yang Tse
3c90d9d6d3
fix compiler warning "discards qualifiers from pointer target type" in debug builds
2007-01-29 20:56:27 +00:00
Yang Tse
3445be6316
sync with lib/setup_once.h
2007-01-27 01:56:57 +00:00
Yang Tse
65fc05826e
Make sure RETSIGTYPE is properly defined
2006-11-25 01:02:52 +00:00
Yang Tse
286eafac7b
Define HAVE_SIGNAL_H, HAVE_SIG_ATOMIC_T and HAVE_SIG_ATOMIC_T_VOLATILE
...
as appropriate for platforms that don't have autotools support
2006-11-24 16:38:58 +00:00
Yang Tse
7f7d2ad5c6
Added a check in configure that verifies if <signal.h> is available,
...
defining HAVE_SIGNAL_H if the header is available.
Added a check in configure that tests if the sig_atomic_t type is
available, defining HAVE_SIG_ATOMIC_T if it is available. Providing
a suitable default in setup_once.h if not available.
Added a check in configure that tests if the sig_atomic_t type is
already defined as volatile, defining HAVE_SIG_ATOMIC_T_VOLATILE
if it is available and already defined as volatile.
2006-11-22 18:41:35 +00:00
Yang Tse
877966659d
avoid a couple of potential zero size memory allocations
2006-11-06 13:56:51 +00:00
Yang Tse
d9cab5a6df
Sync with lib/setup_once.h
2006-10-27 15:37:26 +00:00
Yang Tse
dd8b7df5dd
Compiler warning fix
2006-10-25 10:25:43 +00:00
Yang Tse
000ac3f39d
Sync with lib/setup_once.h
2006-10-18 21:25:12 +00:00
Yang Tse
77ac18117c
Check for USE_WINSOCK instead of WIN32 where the check was done
...
to verify winsock API availability.
2006-10-18 21:05:40 +00:00
Yang Tse
70ed671edf
Introduce symbol USE_WINSOCK which will be defined when
...
using winsock or winsock2 API.
2006-10-18 15:57:49 +00:00
Yang Tse
dd3b42e1ac
Replace is*() macros with our own IS*() ones.
...
Get rid of non ANSI/ISO isascii().
2006-10-18 03:42:06 +00:00
Yang Tse
2a7b004e49
Move definition of IS*() macros to setup_once.h
2006-10-18 03:41:19 +00:00
Yang Tse
69dcc701cf
Define HAVE_STRUCT_TIMEVAL as appropriate for platforms that lack autotools support
2006-10-14 12:01:44 +00:00
Yang Tse
02d31bef50
Check for struct timeval at configuration time
2006-10-13 01:35:14 +00:00
Yang Tse
298541c56c
Remove redundant __CYGWIN__ symbol check
2006-10-11 16:01:16 +00:00
Yang Tse
ec9f8c45e8
Check for network libraries the _same_ way it is done in cURL.
2006-08-06 10:58:47 +00:00
Yang Tse
cfae7aa9e5
Check for network libraries the same way it is done in cURL.
2006-08-05 22:02:47 +00:00
Yang Tse
fc71973aa6
Minor compatibility fix
2006-08-04 17:35:05 +00:00
Yang Tse
857a5f9353
Fix compiler warning
2006-08-04 02:49:04 +00:00
Yang Tse
1a8709fa8d
Avoid redundant check. configure script takes care of not defining
...
HAVE_WINDOWS_H, HAVE_WINSOCK_H, HAVE_WINSOCK2_H, neither
HAVE_WS2TCPIP_H when __CYGWIN__ is defined.
2006-08-04 01:13:24 +00:00
Yang Tse
fb5decf740
Being unable to link or find out recv() or send() args types is a fatal error.
2006-08-04 00:39:34 +00:00
Yang Tse
43995b7d1b
MinGW/MSYS needs lib ws2_32 for proper operation of configure script.
2006-08-03 21:19:40 +00:00
Yang Tse
6ca041f8f1
Avoid the risk of a false positive detection of MSG_NOSIGNAL when cross compiling a Windows target.
2006-07-31 18:41:29 +00:00
Yang Tse
c7aae2ef2e
Force compilation failure in case macros sread() or swrite() are not defined.
2006-07-31 17:12:24 +00:00
Yang Tse
6438dff987
Provide definitions needed for macros sread() and swrite() in config file.
2006-07-31 16:58:10 +00:00
Yang Tse
cf64c31aac
Fix compiler warnings.
2006-07-29 09:15:03 +00:00
Yang Tse
62e22ec3af
include setup_once.h dependency and adjust to 80 char lines.
2006-07-29 08:39:20 +00:00
Yang Tse
283737c856
Replace send() and recv() with swrite() and sread() macros.
2006-07-28 18:01:23 +00:00
Yang Tse
b05a63758c
First step trying to avoid the multiple header inclusion and recursion nightmare.
...
Reintroduce checking for HAVE_MSG_NOSIGNAL in configure script, so that we don't depend on header inclusion order for a valid check.
2006-07-28 14:19:03 +00:00
Yang Tse
bed83eaf82
Provide multiple header inclusion prevention definition __ARES_PRIVATE_H
2006-07-26 10:54:08 +00:00
Yang Tse
30d25aad3e
Change multiple header inclusion prevention definition to __ARES_BITNCMP_H
2006-07-26 10:47:11 +00:00
Yang Tse
962f710089
Change multiple header inclusion prevention definition to __ARES_INET_NET_PTON_H
2006-07-26 10:43:15 +00:00
Yang Tse
e5c95e68d8
Sync header with source code
2006-07-26 10:33:17 +00:00
Yang Tse
4e8835e782
Simplify check for NEED_MALLOC_H, and make more explicit that NEED_MALLOC_H shall be defined if <malloc.h> header file must be included even when including <stdlib.h>.
2006-07-25 13:49:50 +00:00
Yang Tse
fb7987171c
Fix compiler warning
2006-07-14 11:04:19 +00:00
Yang Tse
c3c8945646
Change the ai_addrlen type of struct addrinfo from size_t to socklen_t, per RFC 3493.
2006-07-14 10:30:44 +00:00
Yang Tse
31dfa4924d
Define NEED_MALLOC_H if including <stdlib.h> is not enough for proper compilation and <malloc.h> must also be included.
2006-07-11 20:40:38 +00:00
Yang Tse
04369e1134
Finally get rid of CURL_CHECK_HEADERS_ONCE since it adds very little value and has portability issues.
...
Change some shell if...then...fi tests into case...esac tests which demand less resources.
2006-07-07 17:34:40 +00:00