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

45 Commits

Author SHA1 Message Date
3abad87d88 setup_once: system error codes for Windows CE 2011-03-22 20:51:15 +01:00
8c503ddf79 System's errno.h inclusion cleanup.
System's errno.h is conditionally included from setup_once.h
2011-03-22 14:02:23 +01:00
0f226fb8e4 Watt-32: use errno
Make sure Watt-32 programs use 'errno' even on Win32 targets
2011-03-15 11:29:12 +01:00
2c26d7d254 setup_once: provide ISASCII macro 2010-12-15 02:26:51 +01:00
dac69d52c2 Fix compiler warning: array subscript has type 'char' 2010-11-12 19:46:13 +01:00
cd59ae213f improve alternative definition of bool to use enum instead of unsigned char 2010-05-31 14:08:35 +02:00
be68a8ed0d fix VS2010 compiler warnings 2010-05-31 13:53:37 +02:00
63627fa5ab remove all $Id$ lines 2010-03-27 19:42:02 +01:00
004c2e3400 VMS specific preprocessor symbol checking adjustments 2009-12-30 17:59:56 +00:00
f34c2a879b sclose() function-like macro definition used to close a socket,
now solely based on HAVE_CLOSESOCKET and HAVE_CLOSESOCKET_CAMEL
config file preprocessor definitions.
2009-06-19 00:41:03 +00:00
1bbfcc09ca Adjusted to take in account that...
With the curl memory tracking feature decoupled from the debug build feature,
CURLDEBUG and DEBUGBUILD preprocessor symbol definitions are used as follows:

CURLDEBUG used for curl debug memory tracking specific code (--enable-curldebug)

DEBUGBUILD used for debug enabled specific code (--enable-debug)
2009-06-10 02:49:42 +00:00
3a55bbebf1 Use build-time configured ares_socklen_t instead of socklen_t 2009-05-02 02:36:47 +00:00
1509409fe1 Moved potential inclusion of system's malloc.h and memory.h header files to
setup_once.h.  Inclusion of each header file is based on the definition of
NEED_MALLOC_H and NEED_MEMORY_H respectively.
2009-04-21 10:26:58 +00:00
b487ac8f70 Don't abort configuration if recvfrom() is not available. 2008-08-27 00:25:03 +00:00
dfcd806a8b Change recvfrom's sixth argument data type to the 'historically standard' 'int'
data type for systems where this sixth argument is prototyped as a void pointer.

Start of thread: http://curl.haxx.se/mail/lib-2008-07/0153.html
2008-07-21 18:24:32 +00:00
1faffd7a7e Use the sreadfrom() wrapper to replace recvfrom() in our code. 2008-07-21 03:06:08 +00:00
2aeb0314f5 RECVFROM_TYPE_ARG2, RECVFROM_TYPE_ARG5 and RECVFROM_TYPE_ARG6 are now defined
to the data type pointed by its respective argument and not the pointer type.
2008-07-17 03:07:54 +00:00
7dd6d7cbe1 Configure process now checks availability of recvfrom() socket function and
finds out its return type and the types of its arguments. Added definitions
for non-configure systems config files, and introduced macro sreadfrom which
will be used on udp sockets as a recvfrom() wrapper.
2008-07-16 19:16:41 +00:00
41b0e80a3f fix: remove need and definition of HAVE_SOCKLEN_T symbol 2008-05-21 14:04:14 +00:00
269e082f77 Windows build targets have socklen_t definition in ws2tcpip.h but some
versions of ws2tcpip.h do not have the definition. It seems that when
the socklen_t definition is missing from ws2tcpip.h the definition for
INET_ADDRSTRLEN is also missing, and that when one definition is present
the other one also is available.
2007-10-24 14:39:07 +00:00
2c8db1aec8 actually sync with lib/setup_once.h 2007-10-17 18:18:27 +00:00
0a7eb8e30e sync with lib/setup_once.h 2007-10-17 16:59:24 +00:00
a034ee1b7d Steve Little's fixes to allow compilation on VMS 64-bit mode 2007-04-25 03:00:10 +00:00
f68a45779d convenience SIG_ATOMIC_T macro definition 2007-04-11 11:02:13 +00:00
140d6b08fb move WinSock definitions of EBADF, EINTR, EINVAL and EAFNOSUPPORT to setup_once.h 2007-04-04 06:06:36 +00:00
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
5f5a8ca905 curlassert macro replaced with DEBUGASSERT macro defined in setup_once.h 2007-02-21 19:03:20 +00:00
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
385e6d0eea fix ENAMETOOLONG and ENOTEMPTY may already be defined in errno.h 2007-02-18 00:34:37 +00:00
ee2df583d3 Move portable error number symbolic name definitions to setup_once.h 2007-02-17 13:51:24 +00:00
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
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
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
2bd57a6d30 use our own ISUPPER and ISLOWER macros 2007-02-13 18:02:20 +00:00
05da7b7fda use our own ISBLANK macro 2007-02-13 17:47:27 +00:00
e184411c0b move DEBUGF macro definition to setup_once.h 2007-02-02 15:31:32 +00:00
3445be6316 sync with lib/setup_once.h 2007-01-27 01:56:57 +00:00
65fc05826e Make sure RETSIGTYPE is properly defined 2006-11-25 01:02:52 +00:00
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
d9cab5a6df Sync with lib/setup_once.h 2006-10-27 15:37:26 +00:00
000ac3f39d Sync with lib/setup_once.h 2006-10-18 21:25:12 +00:00
5d9bf10232 Tor's spell fixes 2006-10-18 12:59:02 +00:00
2a7b004e49 Move definition of IS*() macros to setup_once.h 2006-10-18 03:41:19 +00:00
c7aae2ef2e Force compilation failure in case macros sread() or swrite() are not defined. 2006-07-31 17:12:24 +00:00
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