platform/upstream/curl.git
20 years agothat icc attempt in configure
Daniel Stenberg [Fri, 20 Feb 2004 16:29:57 +0000 (16:29 +0000)]
that icc attempt in configure

20 years agoSome compilers warn on completely empty source files, we provide a blank
Daniel Stenberg [Fri, 20 Feb 2004 16:22:47 +0000 (16:22 +0000)]
Some compilers warn on completely empty source files, we provide a blank
one to prevent that.

20 years agoConvert functions to ANSI-style declaration to prevent compiler warnings
Daniel Stenberg [Fri, 20 Feb 2004 16:18:26 +0000 (16:18 +0000)]
Convert functions to ANSI-style declaration to prevent compiler warnings

20 years agoWhen the built-in manual is disabled, we generate a function doing nothing
Daniel Stenberg [Fri, 20 Feb 2004 15:39:37 +0000 (15:39 +0000)]
When the built-in manual is disabled, we generate a function doing nothing
just to avoid making a totally empty file. Just to avoid compiler warnings.

20 years agoNo longer support Z as a flag to print size_t, it isn't used by libcurl
Daniel Stenberg [Fri, 20 Feb 2004 15:16:31 +0000 (15:16 +0000)]
No longer support Z as a flag to print size_t, it isn't used by libcurl
and I doubt anyone else uses it.

Better preprocessor magic for the O flag (for curl_off_t printing) to prevent
compiler warnings.

20 years agocool.haxx.se, no longer sourceforge
Daniel Stenberg [Fri, 20 Feb 2004 13:09:35 +0000 (13:09 +0000)]
cool.haxx.se, no longer sourceforge

20 years agoOnly use -Wstrict-prototypes with gcc 3.3 or later.
Daniel Stenberg [Fri, 20 Feb 2004 10:11:50 +0000 (10:11 +0000)]
Only use -Wstrict-prototypes with gcc 3.3 or later.
It is working with earlier versions, but when I use it with 3.0.3, I can't
get it to ignore errors in "system headers" with -isystem so we get
excessive amounts of warnings on SSL headers which is very annoying.

20 years agoinclude sys/select.h to prevent picky compiler warnings when using select()
Daniel Stenberg [Fri, 20 Feb 2004 08:51:43 +0000 (08:51 +0000)]
include sys/select.h to prevent picky compiler warnings when using select()
without proto

20 years agowe call the macro CURLMAX() isntead of MAX(), just because it turned up
Daniel Stenberg [Fri, 20 Feb 2004 08:47:23 +0000 (08:47 +0000)]
we call the macro CURLMAX() isntead of MAX(), just because it turned up
it collides with another MAX define on some platforms (like netbsd 1.6.1)

20 years agooops, missed a define when I changed from Curl_ to curlx_
Daniel Stenberg [Fri, 20 Feb 2004 07:22:25 +0000 (07:22 +0000)]
oops, missed a define when I changed from Curl_ to curlx_

20 years agofix protos to prevent warnings
Daniel Stenberg [Fri, 20 Feb 2004 07:19:18 +0000 (07:19 +0000)]
fix protos to prevent warnings

20 years agoadded getpart.h for the spitout() proto
Daniel Stenberg [Fri, 20 Feb 2004 07:19:01 +0000 (07:19 +0000)]
added getpart.h for the spitout() proto

20 years ago%HTTPPORT supported in subVariables
Daniel Stenberg [Fri, 20 Feb 2004 07:14:58 +0000 (07:14 +0000)]
%HTTPPORT supported in subVariables

20 years agomention what ports the test suite uses
Daniel Stenberg [Fri, 20 Feb 2004 07:05:10 +0000 (07:05 +0000)]
mention what ports the test suite uses

20 years agoWhen trying to see if there's a friendly http server on "our" port, we
Daniel Stenberg [Fri, 20 Feb 2004 06:59:17 +0000 (06:59 +0000)]
When trying to see if there's a friendly http server on "our" port, we
only accept return code 7 to indicate that there's no server present.

20 years ago-Wcast-align is a bit too annoying
Daniel Stenberg [Thu, 19 Feb 2004 21:34:52 +0000 (21:34 +0000)]
-Wcast-align is a bit too annoying

20 years agoAnything that looks like gcc 5.0 or more is no longer treated as gcc. I hope
Daniel Stenberg [Thu, 19 Feb 2004 21:32:19 +0000 (21:32 +0000)]
Anything that looks like gcc 5.0 or more is no longer treated as gcc. I hope
this will make us exclude icc 8.0 etc.

20 years agorefer to FILEFORMAT
Daniel Stenberg [Thu, 19 Feb 2004 21:21:12 +0000 (21:21 +0000)]
refer to FILEFORMAT

20 years agoWhen --enable-debug is used, for every -I provided to $CPPFLAGS we add
Daniel Stenberg [Thu, 19 Feb 2004 19:25:11 +0000 (19:25 +0000)]
When --enable-debug is used, for every -I provided to $CPPFLAGS we add
a corresponding -isystem, if using gcc, to inhibit warnings on those
headers.

20 years agoTor Arntsen's tiny fix!
Daniel Stenberg [Thu, 19 Feb 2004 16:24:22 +0000 (16:24 +0000)]
Tor Arntsen's tiny fix!

20 years agoif not yacc or bison is found, check if we *really* need it, and if we do
Daniel Stenberg [Thu, 19 Feb 2004 15:58:58 +0000 (15:58 +0000)]
if not yacc or bison is found, check if we *really* need it, and if we do
we bail out!

20 years agofixed the no-ssl version to return int as well
Daniel Stenberg [Thu, 19 Feb 2004 15:39:06 +0000 (15:39 +0000)]
fixed the no-ssl version to return int as well

20 years agoprovide protos to the functions to prevent warnings
Daniel Stenberg [Thu, 19 Feb 2004 13:03:04 +0000 (13:03 +0000)]
provide protos to the functions to prevent warnings

20 years agotypecast the type to an int on return
Daniel Stenberg [Thu, 19 Feb 2004 13:00:33 +0000 (13:00 +0000)]
typecast the type to an int on return

20 years agoreturn int from test()
Daniel Stenberg [Thu, 19 Feb 2004 13:00:05 +0000 (13:00 +0000)]
return int from test()

20 years agoprovide a test() proto
Daniel Stenberg [Thu, 19 Feb 2004 12:59:57 +0000 (12:59 +0000)]
provide a test() proto

20 years agouse a die and a log function to die and log texts
Daniel Stenberg [Thu, 19 Feb 2004 12:56:45 +0000 (12:56 +0000)]
use a die and a log function to die and log texts
better detect test suite failures
remove the buildlog at exit
make a random buildlog file name, now in the same dir where the build dir
is created
checks if the ares build succeeded

20 years agoremove the build.log too at exit, and also use the proper $pwd prefix
Daniel Stenberg [Thu, 19 Feb 2004 12:10:07 +0000 (12:10 +0000)]
remove the build.log too at exit, and also use the proper $pwd prefix
to find the files/dirs to remove so that it still works if we "die" after
having done a 'cd'

20 years agovery minor phrase edit
Daniel Stenberg [Thu, 19 Feb 2004 10:21:54 +0000 (10:21 +0000)]
very minor phrase edit

20 years agofixes from the recent days
Daniel Stenberg [Thu, 19 Feb 2004 10:21:43 +0000 (10:21 +0000)]
fixes from the recent days

20 years agocheck for standard headers when --enable-debug is used
Daniel Stenberg [Thu, 19 Feb 2004 09:33:59 +0000 (09:33 +0000)]
check for standard headers when --enable-debug is used

20 years agoDoug Porter's patch that changes the order of preferences on how to find the
Daniel Stenberg [Thu, 19 Feb 2004 09:22:00 +0000 (09:22 +0000)]
Doug Porter's patch that changes the order of preferences on how to find the
default netrc file. We now read and uses HOME _before_ we use getpwuid() to
better allow users to move around HOME to use different .netrc files without
having to rely on even blacker magic.

20 years agoIf --enable-debug is used and gcc, we figure out which version and then we
Daniel Stenberg [Thu, 19 Feb 2004 09:01:13 +0000 (09:01 +0000)]
If --enable-debug is used and gcc, we figure out which version and then we
use as aggressive warning options as possible for the used compiler version.

20 years agoitem 19 is considered fixed until we get to hear differently
Daniel Stenberg [Thu, 19 Feb 2004 08:19:21 +0000 (08:19 +0000)]
item 19 is considered fixed until we get to hear differently
item 25 is now dealt with using the curlx_ prefix, mentioned in detail here:
http://curl.haxx.se/mail/lib-2004-02/0215.html

20 years agoUse the strtoofft.h header file from the lib directory, as we are now
Daniel Stenberg [Thu, 19 Feb 2004 08:13:20 +0000 (08:13 +0000)]
Use the strtoofft.h header file from the lib directory, as we are now
officially using library-code when building the app (at least for the platforms
that don't have a strtoll() on their own).

20 years agoRemade to use curlx_-prefix. This means this function can be compiled and
Daniel Stenberg [Thu, 19 Feb 2004 08:12:13 +0000 (08:12 +0000)]
Remade to use curlx_-prefix. This means this function can be compiled and
linked separately by the application. This function is not provided by the
libcurl API. It can only be accessed by apps if they compile and use this
particular source code.

20 years agoAIX and Tru64 have what Tor calls "horribly broken 'which' programs" so we
Daniel Stenberg [Wed, 18 Feb 2004 16:16:13 +0000 (16:16 +0000)]
AIX and Tru64 have what Tor calls "horribly broken 'which' programs" so we
now scan the PATH ourself to find the path to (g)libtool

20 years agoremoved some "jhrg" from comments
Daniel Stenberg [Wed, 18 Feb 2004 15:28:56 +0000 (15:28 +0000)]
removed some "jhrg" from comments

20 years agoI removed the socklen_t requirement from memdebug.h, so we don't need to
Daniel Stenberg [Wed, 18 Feb 2004 12:26:27 +0000 (12:26 +0000)]
I removed the socklen_t requirement from memdebug.h, so we don't need to
figure it out here anymore to build debug builds.

20 years agoMade curl_accept() take a 'void *' instead of 'socklen_t *' in the 3rd
Daniel Stenberg [Wed, 18 Feb 2004 12:22:56 +0000 (12:22 +0000)]
Made curl_accept() take a 'void *' instead of 'socklen_t *' in the 3rd
argument to also not force the casual includer to know about the socklen_t
type.

20 years agoModified curl_accept() to take a 'void *' in the 2nd argument instead of
Daniel Stenberg [Wed, 18 Feb 2004 12:18:33 +0000 (12:18 +0000)]
Modified curl_accept() to take a 'void *' in the 2nd argument instead of
sockaddr *. This has the added benefit that source files that include
memdebug.h doesn't have to know about "sockaddr".

20 years agoNo longer uses the 'ret' variable in the plain ipv4-version of
Daniel Stenberg [Wed, 18 Feb 2004 10:05:17 +0000 (10:05 +0000)]
No longer uses the 'ret' variable in the plain ipv4-version of
my_getaddrinfo() (caused a warning by the IRIX MIPSPro compiler). Also
clarified the situation for the 3-arg version of gethostbyname_r() with a huge
comment.

20 years agoThe --enable-debug option really requires this to be built as part of curl.
Daniel Stenberg [Wed, 18 Feb 2004 09:07:50 +0000 (09:07 +0000)]
The --enable-debug option really requires this to be built as part of curl.
When using it, we now set the include path to better find the devel curl
headers, and we check for the socklen_t type since the curl memdebug stuff
needs it.

20 years agosimplified and better commented config.h include logic
Daniel Stenberg [Wed, 18 Feb 2004 08:35:51 +0000 (08:35 +0000)]
simplified and better commented config.h include logic

20 years agoMake sure dns cache timeout -1 really means forever, as it is documented to
Daniel Stenberg [Wed, 18 Feb 2004 07:56:18 +0000 (07:56 +0000)]
Make sure dns cache timeout -1 really means forever, as it is documented to
be. Simply skip the pruning.

20 years agofix the help text for --manual if built without manual
Daniel Stenberg [Tue, 17 Feb 2004 13:46:00 +0000 (13:46 +0000)]
fix the help text for --manual if built without manual

20 years agoignore more
Daniel Stenberg [Tue, 17 Feb 2004 07:57:31 +0000 (07:57 +0000)]
ignore more

20 years agomemdebug build, 'make' no longer builds the demo tools
Daniel Stenberg [Tue, 17 Feb 2004 07:41:10 +0000 (07:41 +0000)]
memdebug build, 'make' no longer builds the demo tools

20 years ago'make all' also builds the demos
Daniel Stenberg [Tue, 17 Feb 2004 07:40:46 +0000 (07:40 +0000)]
'make all' also builds the demos

20 years agoinclude ares_private.h to make sure we get the memdebug stuff included
Daniel Stenberg [Tue, 17 Feb 2004 07:40:31 +0000 (07:40 +0000)]
include ares_private.h to make sure we get the memdebug stuff included

20 years agoIf CURLDEBUG is set we use the libcurl internal memdebug system to track
Daniel Stenberg [Tue, 17 Feb 2004 07:40:02 +0000 (07:40 +0000)]
If CURLDEBUG is set we use the libcurl internal memdebug system to track
memory leaks etc.

20 years agoonly build adig and ahost if 'make demos' is used
Daniel Stenberg [Mon, 16 Feb 2004 16:27:18 +0000 (16:27 +0000)]
only build adig and ahost if 'make demos' is used

20 years agosupport closesocket() for closing sockets as well, as then we can use this
Daniel Stenberg [Mon, 16 Feb 2004 16:24:01 +0000 (16:24 +0000)]
support closesocket() for closing sockets as well, as then we can use this
code fine on ares!

20 years agoMake realloc() support NULL as pointer. Made to allow us to use these routines
Daniel Stenberg [Mon, 16 Feb 2004 16:23:19 +0000 (16:23 +0000)]
Make realloc() support NULL as pointer. Made to allow us to use these routines
to memdebug the ares stuff as well.

20 years agoitem 24 fixed, edited a few issues
Daniel Stenberg [Mon, 16 Feb 2004 15:27:40 +0000 (15:27 +0000)]
item 24 fixed, edited a few issues

20 years agoMake the 'areschannel' get created in the curl_easy_init() and re-use that
Daniel Stenberg [Mon, 16 Feb 2004 15:24:22 +0000 (15:24 +0000)]
Make the 'areschannel' get created in the curl_easy_init() and re-use that
same channel during the whole curl handle's life until curl_easy_cleanup().

20 years agoupdates
Daniel Stenberg [Mon, 16 Feb 2004 13:36:08 +0000 (13:36 +0000)]
updates

20 years agoverbose-fix, socks5-fix, dnscache-fix, configure-winmmlib-fix
Daniel Stenberg [Mon, 16 Feb 2004 13:33:41 +0000 (13:33 +0000)]
verbose-fix, socks5-fix, dnscache-fix, configure-winmmlib-fix

20 years agoFix verbosconnect() when ipv6-enabled to not assume that conn->serv_addr
Daniel Stenberg [Mon, 16 Feb 2004 13:14:55 +0000 (13:14 +0000)]
Fix verbosconnect() when ipv6-enabled to not assume that conn->serv_addr
is a valid pointer, but instead always depend on the passed-in dns pointer.
This happens to be NULL when the connection is re-used...

20 years agoremoved usage of a silly macro instead of the actual functions memcpy
Daniel Stenberg [Mon, 16 Feb 2004 09:56:18 +0000 (09:56 +0000)]
removed usage of a silly macro instead of the actual functions memcpy
and memset

20 years agoJeff Lawson pointed out that we need to check for a '5' in the version field
Daniel Stenberg [Mon, 16 Feb 2004 07:33:30 +0000 (07:33 +0000)]
Jeff Lawson pointed out that we need to check for a '5' in the version field
to properly work with SOCKS5 proxies. I also included some ascii art describing
the SOCKS5 response, as RFC1928 describes. Jeff provided details in bug
report #741841 and here: http://curl.haxx.se/mail/lib-2004-02/0181.html

20 years agoAndrés García added a check for lwinmm for Mingw/sys
Daniel Stenberg [Sun, 15 Feb 2004 22:34:58 +0000 (22:34 +0000)]
Andrés García added a check for lwinmm for Mingw/sys

20 years agoMark the dns entry 'inuse' properly even when used from the cache. This
Daniel Stenberg [Sun, 15 Feb 2004 16:57:53 +0000 (16:57 +0000)]
Mark the dns entry 'inuse' properly even when used from the cache. This
seems to correct some host cache screw-ups I could reproduce.

20 years agoanother case which should use CURLcode and not int
Daniel Stenberg [Sun, 15 Feb 2004 13:58:57 +0000 (13:58 +0000)]
another case which should use CURLcode and not int

20 years agoUse the was_iface variable when binding a socket locally, even if no
Daniel Stenberg [Sun, 15 Feb 2004 13:55:24 +0000 (13:55 +0000)]
Use the was_iface variable when binding a socket locally, even if no
SO_BINDTODEVICE is present, to prevent compiler warnings about the variable

20 years agobind interface and large file fixes
Daniel Stenberg [Sun, 15 Feb 2004 13:51:07 +0000 (13:51 +0000)]
bind interface and large file fixes

20 years agorecent fixes
Daniel Stenberg [Sun, 15 Feb 2004 13:50:04 +0000 (13:50 +0000)]
recent fixes

20 years ago(void) functions we don't check the return code for
Daniel Stenberg [Sun, 15 Feb 2004 13:48:50 +0000 (13:48 +0000)]
(void) functions we don't check the return code for

20 years agoCURLcode/int cleanup to reduce IRIX warnings
Daniel Stenberg [Sun, 15 Feb 2004 13:48:28 +0000 (13:48 +0000)]
CURLcode/int cleanup to reduce IRIX warnings
Removed some dates/names in the comments.

20 years agospell!
Daniel Stenberg [Sun, 15 Feb 2004 13:47:32 +0000 (13:47 +0000)]
spell!

20 years agodon't assume we can use gcc 2.96+ options
Daniel Stenberg [Sun, 15 Feb 2004 12:30:40 +0000 (12:30 +0000)]
don't assume we can use gcc 2.96+ options

20 years agoin the socks code, make sure we receive Curl_read results in ints and
Daniel Stenberg [Fri, 13 Feb 2004 12:42:37 +0000 (12:42 +0000)]
in the socks code, make sure we receive Curl_read results in ints and
Curl_write in CURLcode, to keep the picky compilers happy

20 years agoremoved usage of unset variables (by a function that does nothing!)
Daniel Stenberg [Fri, 13 Feb 2004 12:28:27 +0000 (12:28 +0000)]
removed usage of unset variables (by a function that does nothing!)

20 years agoreturn an int
Daniel Stenberg [Fri, 13 Feb 2004 12:18:34 +0000 (12:18 +0000)]
return an int

20 years agoreturn an int, not a CURLcode
Daniel Stenberg [Fri, 13 Feb 2004 12:17:42 +0000 (12:17 +0000)]
return an int, not a CURLcode

20 years agouse CURLcode, not int, prevents picky compilers to warn
Daniel Stenberg [Fri, 13 Feb 2004 12:16:24 +0000 (12:16 +0000)]
use CURLcode, not int, prevents picky compilers to warn

20 years agothe now and start variables were never really used
Daniel Stenberg [Fri, 13 Feb 2004 12:13:30 +0000 (12:13 +0000)]
the now and start variables were never really used

20 years agoBen Greear's SO_BINDTODEVICE patch that binds to a network interface "even
Daniel Stenberg [Fri, 13 Feb 2004 09:50:23 +0000 (09:50 +0000)]
Ben Greear's SO_BINDTODEVICE patch that binds to a network interface "even
more" when the previous approach. Known to work on Linux, possibly on other
platforms as well.

20 years agoTor Arntsen made the ares build warnings etc get included as well
Daniel Stenberg [Fri, 13 Feb 2004 07:15:36 +0000 (07:15 +0000)]
Tor Arntsen made the ares build warnings etc get included as well

20 years agoGreg Hewgill found out 'contentlength' wasn't big enough to hold a large file!
Daniel Stenberg [Fri, 13 Feb 2004 07:12:40 +0000 (07:12 +0000)]
Greg Hewgill found out 'contentlength' wasn't big enough to hold a large file!

20 years agomake the path const
Daniel Stenberg [Fri, 13 Feb 2004 07:05:15 +0000 (07:05 +0000)]
make the path const

20 years agoI made the same fix here, that Tor already did in the ftp.c code. To make
Daniel Stenberg [Fri, 13 Feb 2004 07:03:03 +0000 (07:03 +0000)]
I made the same fix here, that Tor already did in the ftp.c code. To make
sure this doesn't get weird on 64bit archs.

20 years agoTor Arntsen's fix for the bad (64bit wise) typecast when using gmtime()
Daniel Stenberg [Fri, 13 Feb 2004 06:59:49 +0000 (06:59 +0000)]
Tor Arntsen's fix for the bad (64bit wise) typecast when using gmtime()

20 years agoMake hostcache_fixoffset() take a long for offset, to fully work with 64bit
Daniel Stenberg [Thu, 12 Feb 2004 16:02:55 +0000 (16:02 +0000)]
Make hostcache_fixoffset() take a long for offset, to fully work with 64bit
archs, also no longer typecast pointers to ints as that is a nono on 64bit
systems.

20 years agoup to date with recent fixes
Daniel Stenberg [Thu, 12 Feb 2004 15:50:38 +0000 (15:50 +0000)]
up to date with recent fixes

20 years agoIf no nroff tool is found, or if no command line switch to nroff that converts
Daniel Stenberg [Thu, 12 Feb 2004 15:05:38 +0000 (15:05 +0000)]
If no nroff tool is found, or if no command line switch to nroff that converts
a man page to text is found, we disable the built-in manual stuff to still
be able to build.

20 years agosupport configure --disable-manual
Daniel Stenberg [Thu, 12 Feb 2004 14:46:12 +0000 (14:46 +0000)]
support configure --disable-manual

20 years agoadded --enable/disable-manual
Daniel Stenberg [Thu, 12 Feb 2004 14:45:50 +0000 (14:45 +0000)]
added --enable/disable-manual

20 years agono need to run make test in the data dir anymore
Daniel Stenberg [Thu, 12 Feb 2004 14:43:13 +0000 (14:43 +0000)]
no need to run make test in the data dir anymore

20 years agoprovide a source path to the servers to make them find the tests when run
Daniel Stenberg [Thu, 12 Feb 2004 14:40:08 +0000 (14:40 +0000)]
provide a source path to the servers to make them find the tests when run
outside the source dir, not needing any symlinks

20 years agostop doing the weirdo symlinks
Daniel Stenberg [Thu, 12 Feb 2004 14:39:28 +0000 (14:39 +0000)]
stop doing the weirdo symlinks

20 years agoremoved the subchar variable, it was only set and never used
Daniel Stenberg [Thu, 12 Feb 2004 09:53:03 +0000 (09:53 +0000)]
removed the subchar variable, it was only set and never used

20 years agoremoved the ldaptext variable, it was only set and never used
Daniel Stenberg [Thu, 12 Feb 2004 09:51:43 +0000 (09:51 +0000)]
removed the ldaptext variable, it was only set and never used

20 years agoremoved the nth variable, it was only set and never used anyway
Daniel Stenberg [Thu, 12 Feb 2004 09:50:44 +0000 (09:50 +0000)]
removed the nth variable, it was only set and never used anyway

20 years agoNo longer receive the return code in ConnectionKillOne() that wasn't dealt
Daniel Stenberg [Thu, 12 Feb 2004 09:48:27 +0000 (09:48 +0000)]
No longer receive the return code in ConnectionKillOne() that wasn't dealt
with anyway and thus caused picky compiler to warn.

20 years agoAndrés García's additional fix to make the OpenSSL stuff work for msys/mingw
Daniel Stenberg [Wed, 11 Feb 2004 21:14:54 +0000 (21:14 +0000)]
Andrés García's additional fix to make the OpenSSL stuff work for msys/mingw

20 years ago#if-check for SIGALRM before assuming it is present
Daniel Stenberg [Wed, 11 Feb 2004 21:11:08 +0000 (21:11 +0000)]
#if-check for SIGALRM before assuming it is present

20 years agouse libtoolize --force to overwrite existing (older) files
Daniel Stenberg [Wed, 11 Feb 2004 13:08:38 +0000 (13:08 +0000)]
use libtoolize --force to overwrite existing (older) files

20 years agoinstall ares_version.h as well
Daniel Stenberg [Wed, 11 Feb 2004 12:59:16 +0000 (12:59 +0000)]
install ares_version.h as well

20 years agoDirk Manske's fix to install ares_version.h as well
Daniel Stenberg [Wed, 11 Feb 2004 12:58:43 +0000 (12:58 +0000)]
Dirk Manske's fix to install ares_version.h as well