platform/upstream/curl.git
18 years agoRemove comment about c-ares not supporting IPv6.
Gisle Vanem [Tue, 25 Jul 2006 10:23:15 +0000 (10:23 +0000)]
Remove comment about c-ares not supporting IPv6.

18 years agoUse the proper Curl_freeaddrinfo() for CURLRES_ARES.
Gisle Vanem [Mon, 24 Jul 2006 15:58:33 +0000 (15:58 +0000)]
Use the proper Curl_freeaddrinfo() for CURLRES_ARES.

18 years agoFix typo.
Gisle Vanem [Mon, 24 Jul 2006 15:56:40 +0000 (15:56 +0000)]
Fix typo.

18 years agoAres needs CURLRES_ADDRINFO_COPY. Curl_hostent_relocate() is gone.
Gisle Vanem [Mon, 24 Jul 2006 15:48:48 +0000 (15:48 +0000)]
Ares needs CURLRES_ADDRINFO_COPY. Curl_hostent_relocate() is gone.

18 years agoadded splay.o
Daniel Stenberg [Sun, 23 Jul 2006 12:01:06 +0000 (12:01 +0000)]
added splay.o

18 years agoAdded getopt() processing.
Gisle Vanem [Sun, 23 Jul 2006 10:10:52 +0000 (10:10 +0000)]
Added getopt() processing.

18 years agoAdded getopt() processing of [-t {a|aaaa}].
Gisle Vanem [Sat, 22 Jul 2006 17:31:00 +0000 (17:31 +0000)]
Added getopt() processing of [-t {a|aaaa}].

18 years agoAdded CVS id.
Gisle Vanem [Sat, 22 Jul 2006 15:38:35 +0000 (15:38 +0000)]
Added CVS id.

18 years ago2nd try adding CVS id.
Gisle Vanem [Sat, 22 Jul 2006 15:37:10 +0000 (15:37 +0000)]
2nd try adding CVS id.

18 years agoAdded CVS id.
Gisle Vanem [Sat, 22 Jul 2006 15:21:13 +0000 (15:21 +0000)]
Added CVS id.

18 years agoUse ares_free_string() to avoid detecting leaks.
Gisle Vanem [Sat, 22 Jul 2006 15:12:34 +0000 (15:12 +0000)]
Use ares_free_string() to avoid detecting leaks.

18 years agoIf CURLDEBUG defined, call curl_memdebug() if $CARES_MEMDEBUG is set.
Gisle Vanem [Sat, 22 Jul 2006 14:51:39 +0000 (14:51 +0000)]
If CURLDEBUG defined, call curl_memdebug() if $CARES_MEMDEBUG is set.

18 years agoConstify some arguments in Curl_connecthost() and singleipconnect().
Gisle Vanem [Fri, 21 Jul 2006 06:50:39 +0000 (06:50 +0000)]
Constify some arguments in Curl_connecthost() and singleipconnect().

18 years agoConstify arguments to Curl_he2ai() and Curl_addrinfo_copy().
Gisle Vanem [Fri, 21 Jul 2006 06:21:46 +0000 (06:21 +0000)]
Constify arguments to Curl_he2ai() and Curl_addrinfo_copy().

18 years agoConstify 'hostname' and 'service' to various resolver functions.
Gisle Vanem [Fri, 21 Jul 2006 05:51:12 +0000 (05:51 +0000)]
Constify 'hostname' and 'service' to various resolver functions.

18 years agoChanges for combination ENABLE_IPV6 and USE_ARES.
Gisle Vanem [Fri, 21 Jul 2006 04:22:44 +0000 (04:22 +0000)]
Changes for combination ENABLE_IPV6 and USE_ARES.

18 years agoUse calloc() instead.
Gisle Vanem [Fri, 21 Jul 2006 04:19:44 +0000 (04:19 +0000)]
Use calloc() instead.

18 years agoDavid McCreedy fixed a build error when building libcurl with HTTP disabled,
Daniel Stenberg [Thu, 20 Jul 2006 20:04:52 +0000 (20:04 +0000)]
David McCreedy fixed a build error when building libcurl with HTTP disabled,
problem added with the curl_formget() patch.

18 years agoAvoid warning "comparison of unsigned expression < 0 is always false"
Gisle Vanem [Thu, 20 Jul 2006 16:37:05 +0000 (16:37 +0000)]
Avoid warning "comparison of unsigned expression < 0 is always false"

18 years agoAvoid warning 'port' might be used uninitialized in this function.
Gisle Vanem [Thu, 20 Jul 2006 15:54:01 +0000 (15:54 +0000)]
Avoid warning 'port' might be used uninitialized in this function.

18 years agoChanges to support building for eCos 1.3.1. This has been tested with
Dan Fandrich [Wed, 19 Jul 2006 22:27:49 +0000 (22:27 +0000)]
Changes to support building for eCos 1.3.1.  This has been tested with
file: URLs only.

18 years agoFix compiler warnings
Yang Tse [Wed, 19 Jul 2006 21:14:02 +0000 (21:14 +0000)]
Fix compiler warnings

18 years agoAvoid variable declaration shadowing previously declared one
Yang Tse [Wed, 19 Jul 2006 19:09:56 +0000 (19:09 +0000)]
Avoid variable declaration shadowing previously declared one

18 years agoAvoid variable declaration shadowing previously declared one
Yang Tse [Wed, 19 Jul 2006 18:46:56 +0000 (18:46 +0000)]
Avoid variable declaration shadowing previously declared one

18 years agoremove variable declaration shadowing previously declared one
Yang Tse [Wed, 19 Jul 2006 18:32:38 +0000 (18:32 +0000)]
remove variable declaration shadowing previously declared one

18 years agoRemove variable declaration shadowing previously declared one
Yang Tse [Wed, 19 Jul 2006 18:19:30 +0000 (18:19 +0000)]
Remove variable declaration shadowing previously declared one

18 years agoAbort if unable to write pid file, and close socket when aborting.
Yang Tse [Wed, 19 Jul 2006 15:28:30 +0000 (15:28 +0000)]
Abort if unable to write pid file, and close socket when aborting.

18 years agoAbort if unable to write pid file.
Yang Tse [Wed, 19 Jul 2006 15:26:28 +0000 (15:26 +0000)]
Abort if unable to write pid file.

18 years ago-Use curl_socket_t instead of int.
Yang Tse [Mon, 17 Jul 2006 22:44:40 +0000 (22:44 +0000)]
-Use curl_socket_t instead of int.

-Log errno in message if setsockopt() fails.

-Close listener socket on major errors.

18 years ago"*connected" must be set to FALSE if trynextip() fails.
Yang Tse [Mon, 17 Jul 2006 19:22:28 +0000 (19:22 +0000)]
"*connected" must be set to FALSE if trynextip() fails.

18 years agoJari Sundell did some excellent research and bug tracking, figured out that
Daniel Stenberg [Mon, 17 Jul 2006 18:35:58 +0000 (18:35 +0000)]
Jari Sundell did some excellent research and bug tracking, figured out that
we did wrong and patched it: When nodes were removed from the splay tree,
and we didn't properly remove it from the splay tree when an easy handle was
removed from a multi stack and thus we could wrongly leave a node in the
splay tree pointing to (bad) memory.

18 years agotests/libtest/lib506.c version 1.11 is now also logging CURLSHOPT_LOCKFUNC, CURLSHOPT...
Yang Tse [Mon, 17 Jul 2006 16:47:07 +0000 (16:47 +0000)]
tests/libtest/lib506.c version 1.11 is now also logging CURLSHOPT_LOCKFUNC, CURLSHOPT_UNLOCKFUNC and CURLSHOPT_USERDATA, so we now also have to check them here.

18 years agoReturn NULL if argument is NULL.
Yang Tse [Mon, 17 Jul 2006 15:25:37 +0000 (15:25 +0000)]
Return NULL if argument is NULL.

18 years agoFix compiler warning "enumerated type mixed with another type"
Yang Tse [Mon, 17 Jul 2006 14:52:31 +0000 (14:52 +0000)]
Fix compiler warning "enumerated type mixed with another type"

18 years agoFix compiler warning "enumerated type mixed with another type"
Yang Tse [Mon, 17 Jul 2006 14:32:19 +0000 (14:32 +0000)]
Fix compiler warning "enumerated type mixed with another type"

18 years agoUpdate error buffer size used for SSL_strerror()
Yang Tse [Mon, 17 Jul 2006 05:05:57 +0000 (05:05 +0000)]
Update error buffer size used for SSL_strerror()

18 years agoMinor cleanup
Yang Tse [Mon, 17 Jul 2006 03:38:13 +0000 (03:38 +0000)]
Minor cleanup

18 years agodon't use 'new' in the proto
Daniel Stenberg [Sat, 15 Jul 2006 18:57:51 +0000 (18:57 +0000)]
don't use 'new' in the proto

18 years agoDavid McCreedy fixed a flaw where the CRLF counter wasn't properly cleared
Daniel Stenberg [Fri, 14 Jul 2006 18:58:42 +0000 (18:58 +0000)]
David McCreedy fixed a flaw where the CRLF counter wasn't properly cleared
for FTP ASCII transfers.

18 years agoFix compiler warning
Yang Tse [Fri, 14 Jul 2006 11:04:19 +0000 (11:04 +0000)]
Fix compiler warning

18 years agoChange the ai_addrlen type of struct addrinfo from size_t to socklen_t, per RFC 3493.
Yang Tse [Fri, 14 Jul 2006 10:30:44 +0000 (10:30 +0000)]
Change the ai_addrlen type of struct addrinfo from size_t to socklen_t, per RFC 3493.

18 years agoNull terminate string in buffer before feeding it to strtol()
Yang Tse [Fri, 14 Jul 2006 06:31:41 +0000 (06:31 +0000)]
Null terminate string in buffer before feeding it to strtol()

18 years agoOops, missing "u"
Yang Tse [Thu, 13 Jul 2006 18:57:34 +0000 (18:57 +0000)]
Oops, missing "u"

18 years agoChange to meaningful var names and take care of a compiler warning on IRIX 6.5.22...
Yang Tse [Thu, 13 Jul 2006 18:50:51 +0000 (18:50 +0000)]
Change to meaningful var names and take care of a compiler warning on IRIX 6.5.22 MIPSPro C 7.3 64bit

18 years agoFix compiler warning.
Yang Tse [Thu, 13 Jul 2006 18:44:24 +0000 (18:44 +0000)]
Fix compiler warning.

18 years agoRemove unneeded stuff.
Gisle Vanem [Wed, 12 Jul 2006 13:57:18 +0000 (13:57 +0000)]
Remove unneeded stuff.

18 years agoRemove var not used.
Yang Tse [Wed, 12 Jul 2006 10:41:07 +0000 (10:41 +0000)]
Remove var not used.

18 years agoLog a message if not all data is sent.
Yang Tse [Wed, 12 Jul 2006 09:39:35 +0000 (09:39 +0000)]
Log a message if not all data is sent.

18 years agoFix compiler warning: comparison between signed and unsigned
Yang Tse [Wed, 12 Jul 2006 09:03:48 +0000 (09:03 +0000)]
Fix compiler warning: comparison between signed and unsigned

18 years agoRead the return value of the swrite() macro and 'print' a message in case of failure.
Yang Tse [Wed, 12 Jul 2006 07:33:54 +0000 (07:33 +0000)]
Read the return value of the swrite() macro and 'print' a message in case of failure.

18 years agoPlace parenthesis surrounding macro parameters so that the use of sread and swrite...
Yang Tse [Wed, 12 Jul 2006 06:52:40 +0000 (06:52 +0000)]
Place parenthesis surrounding macro parameters so that the use of sread and swrite is more intuitive.

18 years agosread now returns ssize_t
Yang Tse [Wed, 12 Jul 2006 06:14:49 +0000 (06:14 +0000)]
sread now returns ssize_t

18 years agoPay attention when typecasting an operation
Yang Tse [Wed, 12 Jul 2006 06:09:53 +0000 (06:09 +0000)]
Pay attention when typecasting an operation

18 years agosread now returns ssize_t
Yang Tse [Wed, 12 Jul 2006 05:54:06 +0000 (05:54 +0000)]
sread now returns ssize_t

18 years agoDJGPP/WATT32 does not have functions named recv() send() getnameinfo().
Yang Tse [Wed, 12 Jul 2006 05:20:05 +0000 (05:20 +0000)]
DJGPP/WATT32 does not have functions named recv() send() getnameinfo().

18 years agoUse platform's native types for recv() and send() arguments.
Yang Tse [Wed, 12 Jul 2006 05:19:00 +0000 (05:19 +0000)]
Use platform's native types for recv() and send() arguments.

18 years agoEnable --enable-hidden-symbols for SunPro C
Dan Fandrich [Tue, 11 Jul 2006 21:35:35 +0000 (21:35 +0000)]
Enable --enable-hidden-symbols for SunPro C

18 years agoinclude <malloc.h> only if HAVE_MALLOC_H and NEED_MALLOC_H are both defined.
Yang Tse [Tue, 11 Jul 2006 21:34:23 +0000 (21:34 +0000)]
include <malloc.h> only if HAVE_MALLOC_H and NEED_MALLOC_H are both defined.

18 years agoDefine NEED_MALLOC_H if including <stdlib.h> is not enough for proper compilation...
Yang Tse [Tue, 11 Jul 2006 20:40:38 +0000 (20:40 +0000)]
Define NEED_MALLOC_H if including <stdlib.h> is not enough for proper compilation and <malloc.h> must also be included.

18 years agoMoved strdup replacement from src/main.c into src/strdup.c so it's available
Dan Fandrich [Tue, 11 Jul 2006 17:02:06 +0000 (17:02 +0000)]
Moved strdup replacement from src/main.c into src/strdup.c so it's available
in libcurl as well, if necessary.

18 years agoAdded comment and CVS id.
Gisle Vanem [Tue, 11 Jul 2006 13:12:57 +0000 (13:12 +0000)]
Added comment and CVS id.

18 years agoSocket must be set to CURL_SOCKET_BAD after closing it.
Yang Tse [Tue, 11 Jul 2006 00:23:21 +0000 (00:23 +0000)]
Socket must be set to CURL_SOCKET_BAD after closing it.

18 years agoDNS cache must use the multi DNS cache if the easy handle's one is not using anyone...
Yang Tse [Mon, 10 Jul 2006 16:14:36 +0000 (16:14 +0000)]
DNS cache must use the multi DNS cache if the easy handle's one is not using anyone in curl_multi_add_handle.

18 years agothe tool is named curl with lowercase c
Daniel Stenberg [Sat, 8 Jul 2006 21:30:56 +0000 (21:30 +0000)]
the tool is named curl with lowercase c

18 years agojust some more blurb
Daniel Stenberg [Sat, 8 Jul 2006 21:29:45 +0000 (21:29 +0000)]
just some more blurb

18 years agoAtes Goral pointed out that libcurl's cookie parser did case insensitive
Daniel Stenberg [Sat, 8 Jul 2006 18:52:08 +0000 (18:52 +0000)]
Ates Goral pointed out that libcurl's cookie parser did case insensitive
string comparisons on the path which is incorrect and provided a patch that
fixes this. I edited test case 8 to include details that test for this.

18 years ago7.15.5 is planned for August 2006
Daniel Stenberg [Sat, 8 Jul 2006 18:49:41 +0000 (18:49 +0000)]
7.15.5 is planned for August 2006

18 years agomention the shared DNS stuff
Daniel Stenberg [Fri, 7 Jul 2006 23:08:03 +0000 (23:08 +0000)]
mention the shared DNS stuff

18 years agoIngmar Runge provided a source snippet that caused a crash. The reason for
Daniel Stenberg [Fri, 7 Jul 2006 22:58:06 +0000 (22:58 +0000)]
Ingmar Runge provided a source snippet that caused a crash. The reason for
the crash was that libcurl internally was a bit confused about who owned the
DNS cache at all times so if you created an easy handle that uses a shared
DNS cache and added that to a multi handle it would crash. Now we keep more
careful internal track of exactly what kind of DNS cache each easy handle
uses: None, Private (allocated for and used only by this single handle),
Shared (points to a cache held by a shared object), Global (points to the
global cache) or Multi (points to the cache within the multi handle that is
automatically shared between all easy handles that are added with private
caches).

18 years agomention the by-default "sharing"
Daniel Stenberg [Fri, 7 Jul 2006 22:07:10 +0000 (22:07 +0000)]
mention the by-default "sharing"

18 years agoyassl can be used now
Daniel Stenberg [Fri, 7 Jul 2006 20:48:51 +0000 (20:48 +0000)]
yassl can be used now

18 years agoHTTP Pipelining is for GET and HEAD requests only.
Daniel Stenberg [Fri, 7 Jul 2006 20:45:56 +0000 (20:45 +0000)]
HTTP Pipelining is for GET and HEAD requests only.

18 years agoFixed building curllib.dsp when running make outside the source tree.
Dan Fandrich [Fri, 7 Jul 2006 18:37:14 +0000 (18:37 +0000)]
Fixed building curllib.dsp when running make outside the source tree.

18 years agoFinally get rid of CURL_CHECK_HEADERS_ONCE since it adds very little value and has...
Yang Tse [Fri, 7 Jul 2006 17:34:40 +0000 (17:34 +0000)]
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.

18 years agoSubstitution of the literal '-' is only done if it's the first or last character.
Yang Tse [Fri, 7 Jul 2006 14:03:17 +0000 (14:03 +0000)]
Substitution of the literal '-' is only done if it's the first or last character.

18 years agoUsing backslashes and slashes in the strings of the sed 'y' command shall be avoided...
Yang Tse [Fri, 7 Jul 2006 12:59:45 +0000 (12:59 +0000)]
Using backslashes and slashes in the strings of the sed 'y' command shall be avoided since its interpretation is not the same across platforms.

Now we use the sed 's' command with a bracket expression.

18 years agoCorrect the trace for WinCE.
Gisle Vanem [Fri, 7 Jul 2006 07:49:16 +0000 (07:49 +0000)]
Correct the trace for WinCE.

18 years agoWinCE uses CreateThread(). Hence error is not in 'errno'.
Gisle Vanem [Fri, 7 Jul 2006 07:46:40 +0000 (07:46 +0000)]
WinCE uses CreateThread(). Hence error is not in 'errno'.

18 years agoRemoved copying 'stderr' since it doesn't have the desired
Gisle Vanem [Fri, 7 Jul 2006 07:41:47 +0000 (07:41 +0000)]
Removed copying 'stderr' since it doesn't have the desired
effect.

18 years agoupdated after discussions and thinking
Daniel Stenberg [Fri, 7 Jul 2006 07:22:05 +0000 (07:22 +0000)]
updated after discussions and thinking

18 years agoFix excessive escaping.
Yang Tse [Fri, 7 Jul 2006 05:39:13 +0000 (05:39 +0000)]
Fix excessive escaping.

18 years agoFix CURL_CHECK_HEADERS_ONCE
Yang Tse [Fri, 7 Jul 2006 04:42:11 +0000 (04:42 +0000)]
Fix CURL_CHECK_HEADERS_ONCE

18 years agoFix MinGW/MSYS support in CURL_CHECK_FUNC_RECV and CURL_CHECK_FUNC_SEND.
Yang Tse [Thu, 6 Jul 2006 15:51:03 +0000 (15:51 +0000)]
Fix MinGW/MSYS support in CURL_CHECK_FUNC_RECV and CURL_CHECK_FUNC_SEND.

18 years agoUndefine symbols before redefining them.
Gisle Vanem [Thu, 6 Jul 2006 13:57:26 +0000 (13:57 +0000)]
Undefine symbols before redefining them.

18 years agoUndefine correct symbol.
Gisle Vanem [Thu, 6 Jul 2006 13:33:56 +0000 (13:33 +0000)]
Undefine correct symbol.

18 years agoOops !
Yang Tse [Wed, 5 Jul 2006 23:16:28 +0000 (23:16 +0000)]
Oops !

18 years agoPrevent definition of HAVE_WINxxx_H symbols and avoid inclusion of Windows headers...
Yang Tse [Wed, 5 Jul 2006 23:10:37 +0000 (23:10 +0000)]
Prevent definition of HAVE_WINxxx_H symbols and avoid inclusion of Windows headers when compiled with Cygwin in POSIX emulation mode.

18 years agoCludge fix for djgpp 2.03 or older; it doesn't have snprintf() etc.
Gisle Vanem [Wed, 5 Jul 2006 14:23:09 +0000 (14:23 +0000)]
Cludge fix for djgpp 2.03 or older; it doesn't have snprintf() etc.
So avoid using x_was_used().

18 years ago Add types and qualifiers for getnameifo(), send() and recv().
Gisle Vanem [Wed, 5 Jul 2006 14:15:21 +0000 (14:15 +0000)]
 Add types and qualifiers for getnameifo(), send() and recv().
(Yang Tse forgot about djgpp)

18 years agoUse a more descriptive var name.
Yang Tse [Tue, 4 Jul 2006 17:19:15 +0000 (17:19 +0000)]
Use a more descriptive var name.

18 years agoGet qualifier of arg 2 for send() apart into SEND_QUAL_ARG2.
Yang Tse [Tue, 4 Jul 2006 16:54:10 +0000 (16:54 +0000)]
Get qualifier of arg 2 for send() apart into SEND_QUAL_ARG2.

18 years agoPlatforms that don't have/run configure need default values in their config files...
Yang Tse [Tue, 4 Jul 2006 16:10:13 +0000 (16:10 +0000)]
Platforms that don't have/run configure need default values in their config files for:

HAVE_GETNAMEINFO, GETNAMEINFO_QUAL_ARG1, GETNAMEINFO_TYPE_ARG1, GETNAMEINFO_TYPE_ARG2, GETNAMEINFO_TYPE_ARG46, GETNAMEINFO_TYPE_ARG7

HAVE_RECV, RECV_TYPE_ARG1, RECV_TYPE_ARG2, RECV_TYPE_ARG3, RECV_TYPE_ARG4, RECV_TYPE_RETV

HAVE_SEND, SEND_TYPE_ARG1, SEND_TYPE_ARG2, SEND_TYPE_ARG3, SEND_TYPE_ARG4, SEND_TYPE_RETV

18 years agoFind out return types and argument types for functions recv() and send() at configura...
Yang Tse [Tue, 4 Jul 2006 13:03:32 +0000 (13:03 +0000)]
Find out return types and argument types for functions recv() and send() at configuration stage.

18 years agoToshiyuki Maezawa fixed a problem where you couldn't override the
Daniel Stenberg [Tue, 4 Jul 2006 12:01:59 +0000 (12:01 +0000)]
Toshiyuki Maezawa fixed a problem where you couldn't override the
Proxy-Connection: header when using a proxy and not doing CONNECT.

18 years agoTest HAVE_GETNAMEINFO definition before using GETNAMEINFO_XXX definitions.
Yang Tse [Tue, 4 Jul 2006 02:27:11 +0000 (02:27 +0000)]
Test HAVE_GETNAMEINFO definition before using GETNAMEINFO_XXX definitions.

18 years agoFix compiler warning.
Yang Tse [Mon, 3 Jul 2006 18:38:03 +0000 (18:38 +0000)]
Fix compiler warning.

18 years agoUse CURL_CHECK_FUNC_GETNAMEINFO results in CURL_CHECK_NI_WITHSCOPEID
Yang Tse [Mon, 3 Jul 2006 15:32:12 +0000 (15:32 +0000)]
Use CURL_CHECK_FUNC_GETNAMEINFO results in CURL_CHECK_NI_WITHSCOPEID

18 years agoMake CURL_CHECK_NI_WITHSCOPEID actually try to compile NI_WITHSCOPEID when cross...
Yang Tse [Sun, 2 Jul 2006 23:09:46 +0000 (23:09 +0000)]
Make CURL_CHECK_NI_WITHSCOPEID actually try to compile NI_WITHSCOPEID when cross-compiling.

18 years agoFix shell globbing in CURL_CHECK_FUNC_GETNAMEINFO
Yang Tse [Sun, 2 Jul 2006 01:21:54 +0000 (01:21 +0000)]
Fix shell globbing in CURL_CHECK_FUNC_GETNAMEINFO

18 years agoFix shell globbing in CURL_CHECK_FUNC_GETNAMEINFO
Yang Tse [Sun, 2 Jul 2006 01:17:37 +0000 (01:17 +0000)]
Fix shell globbing in CURL_CHECK_FUNC_GETNAMEINFO