platform/upstream/curl.git
13 years agomulti: support timeouts
Daniel Stenberg [Tue, 10 Aug 2010 09:02:07 +0000 (11:02 +0200)]
multi: support timeouts

Curl_expire() is now expanded to hold a list of timeouts for each easy
handle. Only the closest in time will be the one used as the primary
timeout for the handle and will be used for the splay tree (which sorts
and lists all handles within the multi handle).

When the main timeout has triggered/expired, the next timeout in time
that is kept in the list will be moved to the main timeout position and
used as the key to splay with. This way, all timeouts that are set with
Curl_expire() internally will end up as a proper timeout. Previously any
Curl_expire() that set a _later_ timeout than what was already set was
just silently ignored and thus missed.

Setting Curl_expire() with timeout 0 (zero) will cancel all previously
added timeouts.

Corrects known bug #62.

13 years agoCurl_llist_insert_next: allow insertion first in the list
Daniel Stenberg [Tue, 10 Aug 2010 08:52:26 +0000 (10:52 +0200)]
Curl_llist_insert_next: allow insertion first in the list

When we specify the "insert after" entry as NULL, this function now
inserts the new entry first in the list.

13 years agomulti: make curl_multi_info_read perform O(1)
Daniel Stenberg [Sun, 8 Aug 2010 22:01:36 +0000 (00:01 +0200)]
multi: make curl_multi_info_read perform O(1)

Instead of looping over all attached easy handles, this now keeps a list
of messages in the multi handle. It allows curl_multi_info_read() to
perform O(1) no matter how many easy handles that are handled. This is
of importance since this function may be polled very frequently by apps
using the multi interface.

13 years agocurl -T: ignore file size of special files
Kamil Dudka [Thu, 12 Aug 2010 19:45:31 +0000 (21:45 +0200)]
curl -T: ignore file size of special files

original bug report at https://bugzilla.redhat.com/622520

13 years agoReset environment variables before starting servers
Dan Fandrich [Sat, 14 Aug 2010 05:14:26 +0000 (22:14 -0700)]
Reset environment variables before starting servers

Otherwise, variables from tests could affect the servers
themselves.

13 years agotypecheck-gcc: work around gcc upstream bug #32061
Kamil Dudka [Thu, 12 Aug 2010 18:45:52 +0000 (20:45 +0200)]
typecheck-gcc: work around gcc upstream bug #32061

original bug report at https://bugzilla.redhat.com/617757

13 years agorelease cycle loop: start over toward 7.21.2
Daniel Stenberg [Wed, 11 Aug 2010 21:57:44 +0000 (23:57 +0200)]
release cycle loop: start over toward 7.21.2

13 years agoRELEASE-NOTES: mention the runtests fix as well
Daniel Stenberg [Wed, 11 Aug 2010 21:35:02 +0000 (23:35 +0200)]
RELEASE-NOTES: mention the runtests fix as well

13 years agoruntests: clear old setenv remainders before test
Daniel Stenberg [Wed, 11 Aug 2010 21:12:39 +0000 (23:12 +0200)]
runtests: clear old setenv remainders before test

Due to the layout of the singletest function there are situations where
it returns before it clears the environment variables that were
especially set for the single specific test case. That could lead to
subsequent tests getting executed with environment variables sticking
around from a previous test which could lead to badness.

This change makes sure to clear all custom variables that may be laying
around from a previous round, before running a test case.

Reported by: Kamil Dudka
Bug: http://curl.haxx.se/mail/lib-2010-08/0141.html

13 years agoAdded OpenSSL builds to Watcom makefiles.
Guenter Knauf [Wed, 11 Aug 2010 16:08:39 +0000 (18:08 +0200)]
Added OpenSSL builds to Watcom makefiles.

13 years agoconfigure: werror related adjustments
Yang Tse [Wed, 11 Aug 2010 12:08:05 +0000 (14:08 +0200)]
configure: werror related adjustments

13 years agoFAQ: s/libcurl.so.3/libcurl.so.X
Daniel Stenberg [Wed, 11 Aug 2010 07:15:43 +0000 (09:15 +0200)]
FAQ: s/libcurl.so.3/libcurl.so.X

13 years agoKNOWN_BUG #59 is fixed. Clarify support of IPv6 zone IDs.
Dan Fandrich [Wed, 11 Aug 2010 04:47:10 +0000 (21:47 -0700)]
KNOWN_BUG #59 is fixed. Clarify support of IPv6 zone IDs.

13 years agoFixed typo in Android configure command
Dan Fandrich [Wed, 11 Aug 2010 04:36:27 +0000 (21:36 -0700)]
Fixed typo in Android configure command

13 years agoHISTORY: added stuff from recent years
Daniel Stenberg [Tue, 10 Aug 2010 22:50:56 +0000 (00:50 +0200)]
HISTORY: added stuff from recent years

13 years agowarning: silence the compiler
Daniel Stenberg [Tue, 10 Aug 2010 22:06:20 +0000 (00:06 +0200)]
warning: silence the compiler

warning: conversion to 'long int' from 'time_t' may alter its value

... on win64 when time_t is 64bit and long is 32bit.

13 years agoRELEASE-NOTES: synced, 3 additional bugfixes
Daniel Stenberg [Tue, 10 Aug 2010 21:34:03 +0000 (23:34 +0200)]
RELEASE-NOTES: synced, 3 additional bugfixes

13 years agomulti_socket_action: clarify how to kickstart it
Daniel Stenberg [Tue, 10 Aug 2010 21:18:16 +0000 (23:18 +0200)]
multi_socket_action: clarify how to kickstart it

The callbacks are called when curl_multi_socket_action() is called, not
when handles are added. This is now mentioned in the "TYPICAL USAGE"
section.

13 years agocallbacks: acknowledge progress callback error returns
Daniel Stenberg [Tue, 10 Aug 2010 13:28:46 +0000 (15:28 +0200)]
callbacks: acknowledge progress callback error returns

When the progress callback is called during the TCP connection, an error
return would accidentally not abort the operation as intended but would
instead be counted as a failure to connect to that particular IP and
libcurl would just continue to try the next. I made singleipconnect()
and trynextip() return CURLcode properly.

Added bonus: it corrected the error code for bad --interface usages,
like tested in test 1084 and test 1085.

Reported by: Adam Light
Bug: http://curl.haxx.se/mail/lib-2010-08/0105.html

13 years agoMore Watcom makefile fixes ...
Guenter Knauf [Tue, 10 Aug 2010 19:27:01 +0000 (21:27 +0200)]
More Watcom makefile fixes ...

Final fix (hopefully!) for dll wlink loader;
prefer faster internal rm if available.

13 years agoFixed my wrong edit.
Guenter Knauf [Tue, 10 Aug 2010 15:41:48 +0000 (17:41 +0200)]
Fixed my wrong edit.

13 years agoMore Watcom makefile fixes.
Guenter Knauf [Tue, 10 Aug 2010 15:29:06 +0000 (17:29 +0200)]
More Watcom makefile fixes.

Added the -br switch to dynamic builds which fixes the issue I saw
with curl's --version output. Added debug info and symfile for debug
builds to linker opts. Added DLL loader for wlink back, but this time
dependend on wlink version.
Patch posted to the list by malak.jiri AT gmail.com.

13 years agoChanged test for -u switch in order to enable other wmake switches.
Guenter Knauf [Tue, 10 Aug 2010 13:25:48 +0000 (15:25 +0200)]
Changed test for -u switch in order to enable other wmake switches.

The var %MAKEFLAGS is only set in 3 cases: if set as environment
var or as macro definition from commandline, and either with the
-u or -ms switch. Since all these cases are unlikely for the average
user it should be safe to only test if %MAKEFLAGS is defined; this
has the benefit that now all other switches can be used again in
addition to the -u which was formerly not possible.

13 years agollist: hide Curl_llist_init
Daniel Stenberg [Sun, 8 Aug 2010 21:49:49 +0000 (23:49 +0200)]
llist: hide Curl_llist_init

Curl_llist_init is never used outside of llist.c and thus it should be
static. I also removed the protos for Curl_llist_insert_prev and
Curl_llist_remove_next which are functions we removed from llist.c ages
ago.

13 years agoAdded msys Perl since git for Win32 comes with own Perl which identifies as msys.
Guenter Knauf [Tue, 10 Aug 2010 05:10:57 +0000 (07:10 +0200)]
Added msys Perl since git for Win32 comes with own Perl which identifies as msys.

13 years agoUpdated lib dependency versions.
Guenter Knauf [Tue, 10 Aug 2010 03:51:38 +0000 (05:51 +0200)]
Updated lib dependency versions.

13 years agoMake testcurl.pl Watcom-aware.
Guenter Knauf [Tue, 10 Aug 2010 02:09:35 +0000 (04:09 +0200)]
Make testcurl.pl Watcom-aware.

13 years agoparse_remote_port: fix ;type= URL suffix over HTTP proxy
Daniel Stenberg [Mon, 9 Aug 2010 22:56:45 +0000 (00:56 +0200)]
parse_remote_port: fix ;type= URL suffix over HTTP proxy

Test 563 is enabled now and verifies that the combo FTP type=A URL,
CURLOPT_PORT set and proxy work fine. As a bonus I managed to remove the
somewhat odd FTP check in parse_remote_port() and instead converted it
to a better and more generic 'slash_removed' struct field. Checking the
->protocol field isn't right since when an FTP:// URL is sent over a
HTTP proxy, the protocol is HTTP but the URL was handled by the FTP code
and thus slash_removed is set TRUE for this case.

13 years agoindent: white space fixes only
Daniel Stenberg [Mon, 9 Aug 2010 22:07:06 +0000 (00:07 +0200)]
indent: white space fixes only

13 years agobuild: fix previous push
Yang Tse [Mon, 9 Aug 2010 11:06:27 +0000 (13:06 +0200)]
build: fix previous push

13 years agobuild: don't build libhostname unless shared libcurl is built
Yang Tse [Mon, 9 Aug 2010 07:33:53 +0000 (09:33 +0200)]
build: don't build libhostname unless shared libcurl is built

13 years agobuild: libhostname and chkhostname linkage adjustments followup
Yang Tse [Mon, 9 Aug 2010 03:45:11 +0000 (05:45 +0200)]
build: libhostname and chkhostname linkage adjustments followup

13 years agotypo: remove duplicate semicolon
Daniel Stenberg [Sun, 8 Aug 2010 20:51:37 +0000 (22:51 +0200)]
typo: remove duplicate semicolon

13 years agomulti: avoid a malloc() when a transfer is complete
Daniel Stenberg [Sat, 7 Aug 2010 23:06:29 +0000 (01:06 +0200)]
multi: avoid a malloc() when a transfer is complete

The struct used for storing the message for a completed transfer is now
no longer allocated separatly but is kept within the main struct kept
for each easy handle so that we avoid one malloc (and the subsequent
free).

13 years agobuild: libhostname linkage adjustments followup
Yang Tse [Sun, 8 Aug 2010 00:58:19 +0000 (02:58 +0200)]
build: libhostname linkage adjustments followup

13 years agoFix to overwrite libcurl name.
Guenter Knauf [Sat, 7 Aug 2010 16:32:39 +0000 (18:32 +0200)]
Fix to overwrite libcurl name.

13 years agobuild: chkhostname build adjustments followup
Yang Tse [Sat, 7 Aug 2010 15:39:36 +0000 (17:39 +0200)]
build: chkhostname build adjustments followup

13 years agobuild: allow NTLM tests to run on more build configurations
U-D5B1PQ1J\Administrador [Sat, 7 Aug 2010 12:33:14 +0000 (14:33 +0200)]
build: allow NTLM tests to run on more build configurations

13 years agocurl_easy_setopt.3: rename stream to userdata
Daniel Stenberg [Sat, 7 Aug 2010 12:06:28 +0000 (14:06 +0200)]
curl_easy_setopt.3: rename stream to userdata

In some places where the name 'stream' has been used for naming a
function argument that is in fact settable with a setopt() option we now
call that argument 'userdata' to make it more obvious that it is in fact
possible to set by the application.

Suggested by: Jeff Pohlmeyer

13 years agoBlock created curlbuild.h for NetWare to avoid usage from other platforms.
Guenter Knauf [Fri, 6 Aug 2010 23:29:04 +0000 (01:29 +0200)]
Block created curlbuild.h for NetWare to avoid usage from other platforms.

13 years agoRELEASE-NOTES: synced with recent changes
Daniel Stenberg [Fri, 6 Aug 2010 22:24:04 +0000 (00:24 +0200)]
RELEASE-NOTES: synced with recent changes

13 years agobuild: ensure that libhostname doesn't get installed
Yang Tse [Fri, 6 Aug 2010 16:40:13 +0000 (18:40 +0200)]
build: ensure that libhostname doesn't get installed

13 years agomulti_socket: set timeout for 100-continue
Daniel Stenberg [Fri, 6 Aug 2010 08:57:44 +0000 (10:57 +0200)]
multi_socket: set timeout for 100-continue

When libcurl internally decided to wait for a 100-continue header, there
was no call to the timeout function so there was no timeout callback
called when the multi_socket API was used and thus applications became
either completely wrong or at least ineffecient depending on how they
handled the situation. We now set a timeout to get triggered.

Reported by: Ben Darnell
Bug: http://curl.haxx.se/bug/view.cgi?id=3039744

13 years agoSome more Watcom makefile massage ...
Guenter Knauf [Fri, 6 Aug 2010 01:42:18 +0000 (03:42 +0200)]
Some more Watcom makefile massage ...

For now removed the .autodepend directive until I've figured out
which of my changes broke it again.

13 years agobuild: fix libssh2_scp_send64() availability
Yang Tse [Thu, 5 Aug 2010 14:27:39 +0000 (16:27 +0200)]
build: fix libssh2_scp_send64() availability

13 years agobuild: remove unneeded cast to (void *)
Yang Tse [Wed, 4 Aug 2010 17:05:09 +0000 (19:05 +0200)]
build: remove unneeded cast to (void *)

13 years agobuild: remove unused file
Yang Tse [Wed, 4 Aug 2010 16:54:45 +0000 (18:54 +0200)]
build: remove unused file

13 years agoSCP: send large files properly with new enough libssh2
Daniel Stenberg [Wed, 4 Aug 2010 15:23:38 +0000 (17:23 +0200)]
SCP: send large files properly with new enough libssh2

libssh2 1.2.6 and later handle >32bit file sizes properly even on 32bit
architectures and we make sure to use that ability.

Reported by: Mikael Johansson
Bug: http://curl.haxx.se/mail/lib-2010-08/0052.html

13 years agobuild: add missing new files to non-configure target build files
Yang Tse [Tue, 3 Aug 2010 11:09:39 +0000 (13:09 +0200)]
build: add missing new files to non-configure target build files

13 years agomd4: replace bcopy usage with memcpy
Yang Tse [Tue, 3 Aug 2010 10:00:32 +0000 (12:00 +0200)]
md4: replace bcopy usage with memcpy

13 years agoRELEASE-NOTES: synced with recent changes
Daniel Stenberg [Mon, 2 Aug 2010 22:00:01 +0000 (00:00 +0200)]
RELEASE-NOTES: synced with recent changes

13 years agoTODO-RELEASE: clear, file not really used ATM
Daniel Stenberg [Mon, 2 Aug 2010 21:51:56 +0000 (23:51 +0200)]
TODO-RELEASE: clear, file not really used ATM

13 years agotypecheck-gcc: add checks for recently added options
Daniel Stenberg [Mon, 2 Aug 2010 21:48:21 +0000 (23:48 +0200)]
typecheck-gcc: add checks for recently added options

I added all OBJECTPOINT curl_easy_setopt() options from 178 to 202. Left
to add: the five FUNCTIONPOINT (callbacks) options added since:

SSH_KEYFUNCTION
INTERLEAVEFUNCTION
CHUNK_BGN_FUNCTION
CHUNK_END_FUNCTION
FNMATCH_FUNCTION

13 years ago.gitignore: ignore all built examples
Daniel Stenberg [Mon, 2 Aug 2010 21:47:44 +0000 (23:47 +0200)]
.gitignore: ignore all built examples

13 years agoexample: fix code to build warning-free
Daniel Stenberg [Mon, 2 Aug 2010 21:46:24 +0000 (23:46 +0200)]
example: fix code to build warning-free

13 years agoCurl_connected_proxy: skip the bits.tcpconnect check
Daniel Stenberg [Mon, 2 Aug 2010 21:17:30 +0000 (23:17 +0200)]
Curl_connected_proxy: skip the bits.tcpconnect check

Simply because the TCP might be connected already we cannot skip the
proxy connect procedure. We need to be careful to not overload more
meaning to the bits.tcpconnect field like this.

With this fix, SOCKS proxies work again when the multi interface is
used. I believe this regression was added with commit 4b351d018e,
released as 7.20.1.

Left todo: add a test case that verifies this functionality that
prevents us from breaking it again in the future!

Reported by: Robin Cornelius
Bug: http://curl.haxx.se/bug/view.cgi?id=3033966

13 years agosethostname: provide local prototype for gethostname
Daniel Stenberg [Mon, 2 Aug 2010 20:51:24 +0000 (22:51 +0200)]
sethostname: provide local prototype for gethostname

This is only to avoid warnings on some systems.

13 years agobuild: add typecast to avoid warning
Daniel Stenberg [Mon, 2 Aug 2010 16:53:03 +0000 (18:53 +0200)]
build: add typecast to avoid warning

There is an implicit conversion from "unsigned long" to "long";
rounding, sign extension, or loss of accuracy may result.

13 years agoRename CURL_SOURCES macro; revert previous rename of curl_SOURCES macro.
Guenter Knauf [Mon, 2 Aug 2010 10:24:54 +0000 (12:24 +0200)]
Rename CURL_SOURCES macro; revert previous rename of curl_SOURCES macro.

13 years agoRemoved ugly dependency lists since wmake knows the .autodepend directive.
Guenter Knauf [Mon, 2 Aug 2010 03:51:17 +0000 (05:51 +0200)]
Removed ugly dependency lists since wmake knows the .autodepend directive.

13 years agoUse suffix search path for sources in lib folder.
Guenter Knauf [Mon, 2 Aug 2010 02:53:17 +0000 (04:53 +0200)]
Use suffix search path for sources in lib folder.

13 years agoChanged src/Makefile.Watcom to use CURL_SOURCES from src/Makefile.inc.
Guenter Knauf [Mon, 2 Aug 2010 00:01:56 +0000 (02:01 +0200)]
Changed src/Makefile.Watcom to use CURL_SOURCES from src/Makefile.inc.

13 years agoRenamed curl_SOURCES to CURL_ALLFILES to overcome wmake's case-insensitivity.
Guenter Knauf [Sun, 1 Aug 2010 23:50:53 +0000 (01:50 +0200)]
Renamed curl_SOURCES to CURL_ALLFILES to overcome wmake's case-insensitivity.

13 years agoRemoved wlink from DLL loader list because it doesnt work with Watcom < 1.8.
Guenter Knauf [Sun, 1 Aug 2010 23:30:37 +0000 (01:30 +0200)]
Removed wlink from DLL loader list because it doesnt work with Watcom < 1.8.

13 years agoMoved the LDAP API defines from Makefile.Watcom to config-win32.h.
Guenter Knauf [Sun, 1 Aug 2010 23:24:04 +0000 (01:24 +0200)]
Moved the LDAP API defines from Makefile.Watcom to config-win32.h.

These defines are only needed for older Watcom versions (< 1280).

13 years agoretry: consider retrying even if -f is used
Daniel Stenberg [Sun, 1 Aug 2010 22:10:18 +0000 (00:10 +0200)]
retry: consider retrying even if -f is used

The --retry logic does retry HTTP when some specific response codes are
returned, but because the -f option sets the CURLOPT_FAILONERROR to
libcurl, the return codes are different for such situations and then the
curl tool failed to consider it for retrying.

Reported by: Mike Power
Bug: http://curl.haxx.se/bug/view.cgi?id=3037362

13 years agomulti: fix FTPS connecting the data connection with OpenSSL
Daniel Stenberg [Sun, 1 Aug 2010 21:50:46 +0000 (23:50 +0200)]
multi: fix FTPS connecting the data connection with OpenSSL

Commit 496002ea1cd76af7f (released in 7.20.1) broke FTPS when using the
multi interface and OpenSSL was used. The condition for the non-blocking
connect was incorrect.

Reported by: Georg Lippitsch
Bug: http://curl.haxx.se/mail/lib-2010-07/0270.html

13 years agoFixed curlbuild.h rule.
Guenter Knauf [Sun, 1 Aug 2010 02:48:29 +0000 (04:48 +0200)]
Fixed curlbuild.h rule.

13 years agoAdded rule to create curlbuild.h if not present (for builds from git).
Guenter Knauf [Sun, 1 Aug 2010 00:39:03 +0000 (02:39 +0200)]
Added rule to create curlbuild.h if not present (for builds from git).

13 years agoAdded dependend libs for curl static linking.
Guenter Knauf [Sat, 31 Jul 2010 22:54:40 +0000 (00:54 +0200)]
Added dependend libs for curl static linking.

13 years agoFixed curl.exe static linking.
Guenter Knauf [Sat, 31 Jul 2010 09:52:05 +0000 (11:52 +0200)]
Fixed curl.exe static linking.

13 years agowarning: silence a win64 compiler warning
Daniel Stenberg [Fri, 30 Jul 2010 21:19:08 +0000 (23:19 +0200)]
warning: silence a win64 compiler warning

conversion from 'size_t' to 'curl_socklen_t', possible loss of data

Reported by: Adam Light

13 years agoKNOWN_BUG: The SOCKET type in Win64 is 64 bits
Daniel Stenberg [Fri, 30 Jul 2010 21:08:17 +0000 (23:08 +0200)]
KNOWN_BUG: The SOCKET type in Win64 is 64 bits

The SOCKET type in Win64 is 64 bits large (and thus so is curl_socket_t
on that platform), and long is only 32 bits. It makes it impossible for
curl_easy_getinfo() to return a socket properly with the
CURLINFO_LASTSOCKET option as for all other operating systems.

13 years agosmtp_connect: always provide host name buffer
Daniel Stenberg [Fri, 30 Jul 2010 20:36:31 +0000 (22:36 +0200)]
smtp_connect: always provide host name buffer

Previously the host name buffer was only used if gethostname() exists,
but since we converted that into a curl private function that function
always exists and will be used so the buffer needs to exist for all
cases/systems.

13 years agosethostname: avoid including unistd.h to duck for warnings
Daniel Stenberg [Fri, 30 Jul 2010 20:32:57 +0000 (22:32 +0200)]
sethostname: avoid including unistd.h to duck for warnings

13 years agosethostname: ISO C does not allow extra `;' outside of a function
Daniel Stenberg [Fri, 30 Jul 2010 20:26:19 +0000 (22:26 +0200)]
sethostname: ISO C does not allow extra `;' outside of a function

13 years agoNTLM tests: boost coverage by forcing the hostname
Kamil Dudka [Thu, 29 Jul 2010 22:47:49 +0000 (00:47 +0200)]
NTLM tests: boost coverage by forcing the hostname

A shared library tests/libtest/.libs/lihostname.so is preloaded in NTLM
test-cases to override the system implementation of gethostname().  It
makes it possible to test the NTLM authentication for exact match, and
this way test the implementation of MD4 and DES.

If LD_PRELOAD doesn't work, a debug build willl also workk as debug
builds are now made to prefer a specific environment variable and will
then return that content as host name instead of the actual one.

Kamil wrote the bulk of this, Daniel Stenberg polished it.

13 years agoAdded a comment with an alternate idea to avoid the backslash line contination character.
Guenter Knauf [Thu, 29 Jul 2010 07:06:55 +0000 (09:06 +0200)]
Added a comment with an alternate idea to avoid the backslash line contination character.

13 years agoChanged comparison to match size_t var type.
Guenter Knauf [Thu, 29 Jul 2010 03:33:04 +0000 (05:33 +0200)]
Changed comparison to match size_t var type.

13 years agoRemoved unused vars to avoid compiler warnings.
Guenter Knauf [Thu, 29 Jul 2010 03:20:43 +0000 (05:20 +0200)]
Removed unused vars to avoid compiler warnings.

13 years agoMake Watcom makefiles use Makefile.inc to reduce future maintainance.
Guenter Knauf [Thu, 29 Jul 2010 01:50:09 +0000 (03:50 +0200)]
Make Watcom makefiles use Makefile.inc to reduce future maintainance.

lib/Makefile.Watcom works fine already, for src/Makefile.Watcom we
need first to tweak src/Makefile.inc a bit - therefore the handtweaked
list still exists for now.

13 years agoWatcom makefiles overhaul.
Guenter Knauf [Thu, 29 Jul 2010 01:18:40 +0000 (03:18 +0200)]
Watcom makefiles overhaul.

- make both libcurl and curl makefiles use register calling convention
  (previously libcurl had stack calling convention).
- added include paths to the Watcom headers so its no longer required
  to set the environment vars for this.
- added -wcd=201 to supress compiler warning about unreachable code.
- use macros for all tools, and removed dependency on GNU tools like rm.
- make ipv6 and debug builds controlable via env vars and so make them
  optional instead of default.
- commented WINLDAPAPI and WINBERAPI since they broke with OW 1.8, and
  it seems they're not needed (anymore?).
- added rule for hugehelp.c.cvs so that it will be created when not
  already exist - this is required for building from a release tarball
  since there we have no hugehelp.c.cvs, thus compilation broke.
- removed C_ARG creation from lib/Makefile.Watcom and use CFLAGS
  directly as done too in src/Makefile.Watcom - this has the benefit
  that we will see all active cflags and defines during compile.
- added LINK-ARG to src/Makefile.Watcom in order to better control
  linker input.
- a couple of other minor makefile tweaks here and there ...
- added largefile support for Watcom builds to config-win32.h. Not yet
  tested if it really works, but should since Win32 supports it.
- added loaddll stuff to speed up builds if supported.

13 years agosome cosmetic changes.
Guenter Knauf [Wed, 28 Jul 2010 06:05:00 +0000 (08:05 +0200)]
some cosmetic changes.

13 years agoAdded md4.c to the Watcom makefile
Dan Fandrich [Mon, 26 Jul 2010 23:41:27 +0000 (16:41 -0700)]
Added md4.c to the Watcom makefile

13 years agoAdded PolarSSL to the docs
Dan Fandrich [Mon, 26 Jul 2010 23:38:29 +0000 (16:38 -0700)]
Added PolarSSL to the docs

13 years agocurl-config: --built-shared returns shared info
Daniel Stenberg [Sun, 25 Jul 2010 15:48:07 +0000 (17:48 +0200)]
curl-config: --built-shared returns shared info

The curl-config now features a --built-shared command line option that
will output 'yes' or 'no' depending if the build process was asked to
build shared library/libraries or not.

It is primarily made to offer more details to the test suite to know
what kind of stunts it can expect to work.

13 years agoadd_buffer_send: fix compiler warning
Daniel Stenberg [Sat, 24 Jul 2010 20:52:35 +0000 (22:52 +0200)]
add_buffer_send: fix compiler warning

Win64's 32 bit long but 64 bit size_t caused a warning that we avoid
with a typecast. A small whitespace indent fix was also applied.

Reported by: Adam Light

14 years agoUpdated library versions.
Guenter Knauf [Thu, 22 Jul 2010 02:34:54 +0000 (04:34 +0200)]
Updated library versions.

14 years agoFixed script version which was still based on CVS Revision tag.
Guenter Knauf [Thu, 22 Jul 2010 02:29:54 +0000 (04:29 +0200)]
Fixed script version which was still based on CVS Revision tag.

14 years agoFAQ: Why doesn't cURL error out when the cable is unplugged?
Dan Fandrich [Wed, 21 Jul 2010 22:15:07 +0000 (15:15 -0700)]
FAQ: Why doesn't cURL error out when the cable is unplugged?

This one was long overdue to be mentioned in the FAQ. Also, mention the
new ftp wildcard downloading feature.

14 years agossh: Fix compile error on 64-bit systems.
Ben Greear [Mon, 19 Jul 2010 16:06:20 +0000 (18:06 +0200)]
ssh: Fix compile error on 64-bit systems.

Signed-off-by: Ben Greear <greearb@candelatech.com>
14 years agobuild: Enable configure --enable-werror
Ben Greear [Mon, 19 Jul 2010 16:07:09 +0000 (18:07 +0200)]
build: Enable configure --enable-werror

  This passes -Werror to gcc when building curl and libcurl,
  allowing easy dection of compile warnings.

Signed-off-by: Ben Greear <greearb@candelatech.com>
14 years agopingpong: Fix indentation (whitespace change only)
Ben Greear [Mon, 19 Jul 2010 16:07:50 +0000 (18:07 +0200)]
pingpong: Fix indentation (whitespace change only)

Signed-off-by: Ben Greear <greearb@candelatech.com>
14 years agoCUSTOMREQUEST: shouldn't be disabled when HTTP is disabled
Jan Van Boghout [Sun, 18 Jul 2010 18:23:08 +0000 (20:23 +0200)]
CUSTOMREQUEST: shouldn't be disabled when HTTP is disabled

... since FTP is using it as well, and potentially other protocols!

Also, an #endif CURL_DISABLE_HTTP was incorrectly marked, as it seems to
end the proxy block instead.

14 years agopingpong: response_time is milliseconds
Jan Van Boghout [Sat, 17 Jul 2010 22:49:29 +0000 (00:49 +0200)]
pingpong: response_time is milliseconds

Fixed the comment/document for the response_time struct member.

14 years agoftp: response timeout bug in "quote" sending
Jan Van Boghout [Sat, 17 Jul 2010 22:44:25 +0000 (00:44 +0200)]
ftp: response timeout bug in "quote" sending

The FTP implementation was missing a timestamp reset point, making the
waiting for responses after sending a post-transfer "QUOTE" command not
working as supposedly. This bug was introduced in 7.20.0

14 years agoremote-header-name: chop filename at next semicolon
Jeff Pohlmeyer [Sat, 17 Jul 2010 18:04:02 +0000 (20:04 +0200)]
remote-header-name: chop filename at next semicolon

The --remote-header-name option for the command-line tool assumes that
everything beyond the filename= field is part of the filename, but that
might not always be the case, for example:

Content-Disposition: attachment; filename=file.txt; modification-date=...

This fix chops the filename off at the next semicolon, if there is one.

14 years ago--retry: access violation with URL part sets continued
Daniel Stenberg [Wed, 14 Jul 2010 21:50:01 +0000 (23:50 +0200)]
--retry: access violation with URL part sets continued

When getting multiple URLs, curl didn't properly reset the byte counter
after a successful transfer so if the subsequent transfer failed it
would wrongly use the previous byte counter and behave badly (segfault)
because of that. The code assumes that the byte counter and the 'stream'
pointer is well in synch.

Reported by: Jon Sargeant
Bug: http://curl.haxx.se/bug/view.cgi?id=3028241

14 years agoreleasnote: synch up with commit f3b77e5611d
Daniel Stenberg [Tue, 13 Jul 2010 22:40:20 +0000 (00:40 +0200)]
releasnote: synch up with commit f3b77e5611d

14 years agoexamples: add curl_multi_timeout
Constantine Sapuntzakis [Tue, 13 Jul 2010 22:32:53 +0000 (00:32 +0200)]
examples: add curl_multi_timeout

Make the multi-interface using examples use curl_multi_timeout to
properly educate users how to do things.