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
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
81db5a00e4
setup_once.h: tighten requirements for stdbool.h header inclusion
...
Include stdbool.h only when it is available and configure is capable of
detecting a proper 'bool' data type when the header is included.
13 years ago
Yang Tse
bab721cb1c
setup_once.h cleanup and sync
14 years ago
Yang Tse
3abad87d88
setup_once: system error codes for Windows CE
14 years ago
Yang Tse
8c503ddf79
System's errno.h inclusion cleanup.
...
System's errno.h is conditionally included from setup_once.h
14 years ago
Gisle Vanem
0f226fb8e4
Watt-32: use errno
...
Make sure Watt-32 programs use 'errno' even on Win32 targets
14 years ago
Yang Tse
2c26d7d254
setup_once: provide ISASCII macro
14 years ago
Yang Tse
dac69d52c2
Fix compiler warning: array subscript has type 'char'
14 years ago
Tor Arntsen
cd59ae213f
improve alternative definition of bool to use enum instead of unsigned char
15 years ago
Yang Tse
be68a8ed0d
fix VS2010 compiler warnings
15 years ago
Daniel Stenberg
63627fa5ab
remove all $Id$ lines
15 years ago
Yang Tse
004c2e3400
VMS specific preprocessor symbol checking adjustments
15 years ago
Yang Tse
f34c2a879b
sclose() function-like macro definition used to close a socket,
...
16 years ago
Yang Tse
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)
16 years ago
Yang Tse
3a55bbebf1
Use build-time configured ares_socklen_t instead of socklen_t
16 years ago
Yang Tse
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.
16 years ago
Yang Tse
b487ac8f70
Don't abort configuration if recvfrom() is not available.
17 years ago
Yang Tse
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
17 years ago
Yang Tse
1faffd7a7e
Use the sreadfrom() wrapper to replace recvfrom() in our code.
17 years ago
Yang Tse
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.
17 years ago
Yang Tse
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.
17 years ago
Yang Tse
41b0e80a3f
fix: remove need and definition of HAVE_SOCKLEN_T symbol
17 years ago
Yang Tse
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.
18 years ago
Yang Tse
2c8db1aec8
actually sync with lib/setup_once.h
18 years ago
Yang Tse
0a7eb8e30e
sync with lib/setup_once.h
18 years ago
Yang Tse
a034ee1b7d
Steve Little's fixes to allow compilation on VMS 64-bit mode
18 years ago
Yang Tse
f68a45779d
convenience SIG_ATOMIC_T macro definition
18 years ago
Yang Tse
140d6b08fb
move WinSock definitions of EBADF, EINTR, EINVAL and EAFNOSUPPORT to setup_once.h
18 years ago
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
18 years ago
Yang Tse
5f5a8ca905
curlassert macro replaced with DEBUGASSERT macro defined in setup_once.h
18 years ago
Yang Tse
3f00c1cc9a
Move header file inclusion logic and definition of timeval
...
struct for platforms that don't have it to setup_once.h
18 years ago
Yang Tse
385e6d0eea
fix ENAMETOOLONG and ENOTEMPTY may already be defined in errno.h
18 years ago
Yang Tse
ee2df583d3
Move portable error number symbolic name definitions to setup_once.h
18 years ago
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.
18 years ago
Yang Tse
0d8bf01d91
avoid using funtion isblank() and just use our ISBLANK
...
macro to provide this functionality on all platforms
18 years ago
Yang Tse
902d0283b7
check for isblank() at configuration stage. If not available
...
provide a suitable replacement for use in our ISBLANK macro
18 years ago
Yang Tse
2bd57a6d30
use our own ISUPPER and ISLOWER macros
18 years ago
Yang Tse
05da7b7fda
use our own ISBLANK macro
18 years ago
Yang Tse
e184411c0b
move DEBUGF macro definition to setup_once.h
18 years ago
Yang Tse
3445be6316
sync with lib/setup_once.h
18 years ago
Yang Tse
65fc05826e
Make sure RETSIGTYPE is properly defined
19 years ago
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.
19 years ago
Yang Tse
d9cab5a6df
Sync with lib/setup_once.h
19 years ago
Yang Tse
000ac3f39d
Sync with lib/setup_once.h
19 years ago
Daniel Stenberg
5d9bf10232
Tor's spell fixes
19 years ago
Yang Tse
2a7b004e49
Move definition of IS*() macros to setup_once.h
19 years ago
Yang Tse
c7aae2ef2e
Force compilation failure in case macros sread() or swrite() are not defined.
19 years ago
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.
19 years ago