Yang Tse [Sun, 27 Jul 2008 17:24:37 +0000 (17:24 +0000)]
For debugging purposes, run aclocal in verbose mode on SunOS systems.
Yang Tse [Sun, 27 Jul 2008 16:37:02 +0000 (16:37 +0000)]
move ACLOCAL_AMFLAGS after AUTOMAKE_OPTIONS
Yang Tse [Sun, 27 Jul 2008 03:16:37 +0000 (03:16 +0000)]
setup.h handles definition of _REENTRANT based on NEED_REENTRANT
definition which might be defined in config.h or config-*.h files
Yang Tse [Sun, 27 Jul 2008 02:41:13 +0000 (02:41 +0000)]
Remove explicit inclusion of our m4 files first. It was interesting as a test,
but it breaks aclocal execution on some systems, with the following error:
Can't locate object method "rel2abs" via package "File::Spec" at /usr/local/bin/aclocal line 256.
Dan Fandrich [Sun, 27 Jul 2008 02:34:27 +0000 (02:34 +0000)]
Added feature in runtests.pl to select tests based on key word.
Dan Fandrich [Sun, 27 Jul 2008 02:20:34 +0000 (02:20 +0000)]
Eliminate a unnecessary socket creation in Curl_getaddrinfo for an IPv4
address in an IPv6 capable libcurl.
Yang Tse [Sun, 27 Jul 2008 01:36:33 +0000 (01:36 +0000)]
Another step towards detecting if _REENTRANT is already defined or actually
needed, and being able to define it if appropriate for further configure tests
as well as for the generated config file.
Daniel Stenberg [Sat, 26 Jul 2008 21:15:47 +0000 (21:15 +0000)]
- David Bau filed bug report #2026240 "CURL_READFUNC_PAUSE leads to buffer
overrun" (http://curl.haxx.se/bug/view.cgi?id=2026240) identifying two
problems, and providing the fix for them:
- CURL_READFUNC_PAUSE did in fact not pause the _sending_ of data that it is
designed for but paused _receiving_ of data!
- libcurl didn't internally set the read counter to zero when this return
code was detected, which would potentially lead to junk getting sent to
the server.
Dan Fandrich [Sat, 26 Jul 2008 20:09:36 +0000 (20:09 +0000)]
Added test 1044 to test large file support in ftp with -I.
Yang Tse [Sat, 26 Jul 2008 14:45:16 +0000 (14:45 +0000)]
Explicitly include our m4 files first. This might minimize the impact
that other package's underquoted m4 function definitions have on ours.
Yang Tse [Sat, 26 Jul 2008 12:11:22 +0000 (12:11 +0000)]
simplify multi '#' char comment line
Yang Tse [Sat, 26 Jul 2008 01:24:50 +0000 (01:24 +0000)]
Add a 3 argument check for getprotobyname_r
Yang Tse [Sat, 26 Jul 2008 01:00:41 +0000 (01:00 +0000)]
additional debug logging of getprotobyname_r on Tru64 and AIX
Yang Tse [Sat, 26 Jul 2008 00:19:03 +0000 (00:19 +0000)]
No longer hide aclocal 'underquoted definition' warnings.
http://sources.redhat.com/automake/automake.html#Extending-aclocal documents
that starting with Automake 1.8, aclocal will warn about all underquoted calls
to AC_DEFUN due to the fact that in a single aclocal run it might include more
than once all .m4 files which it finds available, this includes .m4 files from
other software packages.
If the first argument to AC_DEFUN is underquoted and the same macro is included
more than once, successive inclusions after the first one will expand the macro
instead of assuming it is the same as the first one included.
Yang Tse [Fri, 25 Jul 2008 13:21:14 +0000 (13:21 +0000)]
move reentrant.m4 to the m4 subdirectory to avoid infinite loop inclusion problem
Yang Tse [Thu, 24 Jul 2008 18:02:44 +0000 (18:02 +0000)]
add checks for strtok_r and getprotobyname_r
Yang Tse [Thu, 24 Jul 2008 15:20:35 +0000 (15:20 +0000)]
Another step towards detecting if _REENTRANT is already defined or actually
needed, and being able to define it if appropriate for further configure tests
as well as for the generated config file.
Introduced reentrant.m4 intended for our reentrant related autotools/m4 macros.
Yang Tse [Thu, 24 Jul 2008 15:11:24 +0000 (15:11 +0000)]
ignore curllib.vcproj
Dan Fandrich [Thu, 24 Jul 2008 02:16:48 +0000 (02:16 +0000)]
Changed the long logfile elision code in runtests.pl to properly handle
lines ending in \r.
Dan Fandrich [Wed, 23 Jul 2008 23:03:52 +0000 (23:03 +0000)]
Mention that the test harness can't check every possible feature.
Dan Fandrich [Wed, 23 Jul 2008 22:02:03 +0000 (22:02 +0000)]
Eliminated references to TRUE and FALSE since those identifiers aren't
defined by the libcurl API. Also changed curl_easy_setopt examples to
pass longs where appropriate.
Daniel Stenberg [Wed, 23 Jul 2008 20:53:04 +0000 (20:53 +0000)]
- I went over the curl_easy_setopt man page and replaced most references to
non-zero with the fixed value of 1. We should strive at making options
support '1' for enabling them mentioned explicitly, as that then will allow
us for to extend them in the future without breaking older programs.
Dan Fandrich [Wed, 23 Jul 2008 18:17:25 +0000 (18:17 +0000)]
Simplified Minix compile instructions and added some special cases.
Yang Tse [Wed, 23 Jul 2008 04:20:39 +0000 (04:20 +0000)]
reorder argument number detection for getservbyport_r to
actually verify if the test is properly working
Yang Tse [Tue, 22 Jul 2008 19:13:35 +0000 (19:13 +0000)]
cleanup duplicate line
Yang Tse [Tue, 22 Jul 2008 19:04:16 +0000 (19:04 +0000)]
Make sure that configure process tests are done with the same _REENTRANT
setting as the one actually used when finally building the library.
Yang Tse [Tue, 22 Jul 2008 18:56:46 +0000 (18:56 +0000)]
checks for gethostbyaddr_r with 7 and 8 args now also done with -D_REENTRANT
checks for gethostbyname_r with 5 and 6 args now also done with -D_REENTRANT
Yang Tse [Tue, 22 Jul 2008 00:12:06 +0000 (00:12 +0000)]
minor reordering in OS/400 config/setup files
Yang Tse [Mon, 21 Jul 2008 18:24:32 +0000 (18:24 +0000)]
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
Gisle Vanem [Mon, 21 Jul 2008 15:39:54 +0000 (15:39 +0000)]
Undefine 'byte' due to dict.c.
Yang Tse [Mon, 21 Jul 2008 14:01:46 +0000 (14:01 +0000)]
use prototypes to improve getservbyport_r detection
Yang Tse [Mon, 21 Jul 2008 09:23:56 +0000 (09:23 +0000)]
fix compiler warning: implicit conversion from "long" to "int"
Yang Tse [Mon, 21 Jul 2008 03:59:23 +0000 (03:59 +0000)]
fix compiler warning: comparison between signed and unsigned
Yang Tse [Mon, 21 Jul 2008 03:50:02 +0000 (03:50 +0000)]
Adjust recvfrom's sixth arg data type definition for NetWare (LIBC)
Yang Tse [Mon, 21 Jul 2008 03:06:07 +0000 (03:06 +0000)]
Use the sreadfrom() wrapper to replace recvfrom() in our code.
Yang Tse [Mon, 21 Jul 2008 00:36:55 +0000 (00:36 +0000)]
when recvfrom prototype uses a void pointer for arguments 2, 5 or 6 this will
now cause the definition of RECVFROM_TYPE_ARG2_IS_VOID, RECVFROM_TYPE_ARG5_IS_VOID
or RECVFROM_TYPE_ARG6_IS_VOID, as appropriate.
Yang Tse [Sun, 20 Jul 2008 17:18:29 +0000 (17:18 +0000)]
Adjust DEC/Compaq C compiler settings
Yang Tse [Sun, 20 Jul 2008 09:51:52 +0000 (09:51 +0000)]
Remove showing additional info needed to debug configure
failure to properly detect recvfrom arg types on Solaris
Yang Tse [Sun, 20 Jul 2008 09:46:52 +0000 (09:46 +0000)]
Added "pointer to void" as another data type to check for the sixth argument of
function recvfrom as a result of the info additionally logged when running on a
Solaris system.
The compiler error showed that the prototype being used on Solaris was the one
declared in line 427 of "/usr/include/sys/socket.h" as:
function(int,
pointer to void,
unsigned int,
int,
pointer to struct sockaddr,
pointer to void) returning int
Yang Tse [Sat, 19 Jul 2008 18:32:27 +0000 (18:32 +0000)]
Temporarily show additional info needed to debug configure
failure to properly detect recvfrom arg types on Solaris
Yang Tse [Sat, 19 Jul 2008 11:27:45 +0000 (11:27 +0000)]
Adjust DEC/Compaq C compiler settings
Patrick Monnerat [Fri, 18 Jul 2008 14:46:52 +0000 (14:46 +0000)]
README.OS400 update for new string options.
Patrick Monnerat [Fri, 18 Jul 2008 14:43:17 +0000 (14:43 +0000)]
README.OS400 update for new string options.
Dan Fandrich [Thu, 17 Jul 2008 22:39:23 +0000 (22:39 +0000)]
Fixed the XML syntax of a few test files.
Yang Tse [Thu, 17 Jul 2008 03:07:54 +0000 (03:07 +0000)]
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.
Yang Tse [Wed, 16 Jul 2008 19:24:03 +0000 (19:24 +0000)]
fix comment
Yang Tse [Wed, 16 Jul 2008 19:16:41 +0000 (19:16 +0000)]
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.
Yang Tse [Wed, 16 Jul 2008 14:17:56 +0000 (14:17 +0000)]
Initial DEC/Compaq C compiler detection and flags
Yang Tse [Wed, 16 Jul 2008 12:26:09 +0000 (12:26 +0000)]
Improved configure detection of number of arguments for getservbyport_r
Yang Tse [Tue, 15 Jul 2008 16:43:39 +0000 (16:43 +0000)]
Allow --enable-largefile and --disable-largefile configurations.
Configure process no longer needs nor checks size of curl_off_t.
Library will now be built with _REENTRANT symbol defined.
Yang Tse [Tue, 15 Jul 2008 13:54:30 +0000 (13:54 +0000)]
add comment for include paths
Yang Tse [Tue, 15 Jul 2008 05:46:49 +0000 (05:46 +0000)]
add comment for include paths
Dan Fandrich [Tue, 15 Jul 2008 04:12:15 +0000 (04:12 +0000)]
Added test1042 and test1043 to test -C - on HTTP.
Dan Fandrich [Tue, 15 Jul 2008 03:36:38 +0000 (03:36 +0000)]
Added test1040 and test1041 to test -C - on HTTP. Test 1041 failed so it's
added to DISABLED.
Yang Tse [Mon, 14 Jul 2008 17:31:39 +0000 (17:31 +0000)]
Move _REENTRANT definition earlier in lib/setup.h
Yang Tse [Mon, 14 Jul 2008 16:58:34 +0000 (16:58 +0000)]
Removed inclusion of remaining system header files from configuration files.
These are included from lib/setup.h or specific source code file.
Yang Tse [Mon, 14 Jul 2008 16:10:29 +0000 (16:10 +0000)]
Inclusion of <extra/stricmp.h> and <extra/strdup.h> is moved to lib/setup.h
Yang Tse [Mon, 14 Jul 2008 15:58:02 +0000 (15:58 +0000)]
Remove duplicate file inclusions. These are already done in lib/setup.h
and lib/setup_once.h
Yang Tse [Mon, 14 Jul 2008 15:30:26 +0000 (15:30 +0000)]
Remove duplicate file inclusions. These are already done in lib/setup.h
Yang Tse [Mon, 14 Jul 2008 12:39:50 +0000 (12:39 +0000)]
HTTP_ONLY definition check in lib/setup.h is now done once that configuration
file has been included. In this way if symbol is defined in the config file
it will no longer be ignored.
Yang Tse [Fri, 11 Jul 2008 18:59:00 +0000 (18:59 +0000)]
fix multiple header inclusion prevention definition
Yang Tse [Fri, 11 Jul 2008 18:52:35 +0000 (18:52 +0000)]
move multiple header inclusion prevention definition to top of file
Yang Tse [Fri, 11 Jul 2008 18:42:30 +0000 (18:42 +0000)]
Added missing multiple header inclusion prevention definition
Dan Fandrich [Fri, 11 Jul 2008 18:23:06 +0000 (18:23 +0000)]
Fixed test 553 to pass the torture test.
Dan Fandrich [Fri, 11 Jul 2008 17:18:37 +0000 (17:18 +0000)]
Avoid a potential zombie process when killing an old ftpserver
Daniel Stenberg [Fri, 11 Jul 2008 10:50:30 +0000 (10:50 +0000)]
document the exit codes 82 and 83 that are new in 7.19.0
Daniel Stenberg [Fri, 11 Jul 2008 09:18:30 +0000 (09:18 +0000)]
indent and comment cleanup (no code change)
Daniel Stenberg [Fri, 11 Jul 2008 09:08:27 +0000 (09:08 +0000)]
- Daniel Fandrich found out we didn't pass on the user-agent properly when
doing "proxy-tunnels" with non-HTTP prototols and that was simply because
the code assumed the user-agent was only needed for HTTP.
Dan Fandrich [Fri, 11 Jul 2008 05:08:06 +0000 (05:08 +0000)]
Added test cases 1038 and 1039 to test Adrian Kreher's report that ftp
uploads with -C - didn't resume properly, but the tests pass.
Dan Fandrich [Fri, 11 Jul 2008 04:38:11 +0000 (04:38 +0000)]
Changed slightly the SFTP quote commands chmod, chown and chgrp to only
set the attribute that has changed instead of all possible ones. Hopefully,
this will solve the "Permission denied" problem that Nagarajan Sreenivasan
reported when setting some modes, but regardless, it saves a protocol
round trip in the chmod case.
Daniel Stenberg [Thu, 10 Jul 2008 22:24:11 +0000 (22:24 +0000)]
(Added in the section for CURLOPT_DNS_CACHE_TIMEOUT, pointed out on the
curl-library list on July 9th 2008 by Mathew Hounsell)
NOTE: the name resolve functions of various libc implementations don't re-read
name server information unless explicitly told so (by for example calling
Ires_init(3). This may cause libcurl to keep using the older server even
if DHCP has updated the server info, and this may look like a DNS cache issue
to the casual libcurl-app user.
Daniel Stenberg [Thu, 10 Jul 2008 20:29:27 +0000 (20:29 +0000)]
--remote-name-all
Dan Fandrich [Thu, 10 Jul 2008 18:15:22 +0000 (18:15 +0000)]
Fixed another OOM problem, this time with test 64.
Yang Tse [Thu, 10 Jul 2008 18:01:44 +0000 (18:01 +0000)]
Peter Lamberg filed bug report #2015126: "poll gives WSAEINVAL when POLLPRI
is set in fdset.events" (http://curl.haxx.se/bug/view.cgi?id=2015126) which
exactly pinpointed the problem only triggered on Windows Vista, provided
reference to docs and also a fix. There is much work behind Peter Lamberg's
excellent bug report. Thank You!
Daniel Stenberg [Thu, 10 Jul 2008 13:40:59 +0000 (13:40 +0000)]
updated to match current reality
Yang Tse [Thu, 10 Jul 2008 08:21:48 +0000 (08:21 +0000)]
fix compiler warning
Daniel Stenberg [Thu, 10 Jul 2008 08:00:05 +0000 (08:00 +0000)]
s/muse/must
Daniel Stenberg [Thu, 10 Jul 2008 07:53:10 +0000 (07:53 +0000)]
document --remote-name-all
Yang Tse [Thu, 10 Jul 2008 07:16:45 +0000 (07:16 +0000)]
fallback to gettimeofday when monotonic clock is unavailable at run-time
Dan Fandrich [Thu, 10 Jul 2008 06:09:03 +0000 (06:09 +0000)]
Added tests 1036 and 1037 to verify resumed ftp downloads with -C -
Daniel Stenberg [Wed, 9 Jul 2008 18:39:49 +0000 (18:39 +0000)]
- Andreas Schuldei improved Phil Blundell's patch for IPv6 using c-ares, and I
edited it slightly. Now you should be able to use IPv6 addresses fine even
with libcurl built to use c-ares.
Dan Fandrich [Wed, 9 Jul 2008 18:33:35 +0000 (18:33 +0000)]
Fixed an OOM handling problem that cause test 11 to fail the torture test.
Yang Tse [Wed, 9 Jul 2008 16:38:55 +0000 (16:38 +0000)]
since Jun 30 2008 MAXHOSTNAMELEN define is no longer used
Dan Fandrich [Tue, 8 Jul 2008 21:16:18 +0000 (21:16 +0000)]
Fixed test 554 to pass the torture test.
Gisle Vanem [Tue, 8 Jul 2008 13:55:20 +0000 (13:55 +0000)]
Added libidn libs as needed. Added compilation of sendrecv.c
and cookie_interface.c.
Dan Fandrich [Mon, 7 Jul 2008 23:52:52 +0000 (23:52 +0000)]
Added test cases 1034 & 1035 to test IDN name conversion failures.
Daniel Stenberg [Mon, 7 Jul 2008 20:37:07 +0000 (20:37 +0000)]
- Scott Barrett provided a test case for a segfault in the FTP code and the
fix for it. It occured when you did a FTP transfer using
CURLFTPMETHOD_SINGLECWD and then did another one on the same easy handle but
switched to CURLFTPMETHOD_NOCWD. Due to the "dir depth" variable not being
cleared properly. Scott's test case is now known as test 539 and it
verifies the fix.
Patrick Monnerat [Mon, 7 Jul 2008 10:39:46 +0000 (10:39 +0000)]
New options added to OS400 wrapper and ILERPG definitions.
Wrong defines (typos) for QSSL layer fixed.
Yang Tse [Mon, 7 Jul 2008 02:11:21 +0000 (02:11 +0000)]
fix c-ares version reported in generated libcares.pc file when building
from CVS tree.
Yang Tse [Sat, 5 Jul 2008 03:31:41 +0000 (03:31 +0000)]
fix compiler warning: empty body in an if-statement
Yang Tse [Sat, 5 Jul 2008 03:12:47 +0000 (03:12 +0000)]
mention that egrep and ar are also mandatory
Yang Tse [Fri, 4 Jul 2008 04:03:55 +0000 (04:03 +0000)]
egrep and ar are also mandatory
Daniel Stenberg [Thu, 3 Jul 2008 11:41:11 +0000 (11:41 +0000)]
just to clarify that c-ares actually have some ipv6 support
Daniel Stenberg [Thu, 3 Jul 2008 11:34:34 +0000 (11:34 +0000)]
ares_gethostbyname() fallback from AAA to A records with CNAME present
Daniel Stenberg [Thu, 3 Jul 2008 11:32:35 +0000 (11:32 +0000)]
- Phil Blundell: If you ask ares_gethostbyname() to do an AF_INET6 lookup and
the target host has only A records, it automatically falls back to an
AF_INET lookup and gives you the A results. However, if the target host has
a CNAME record, this behaviour is defeated since the original query does
return some data even though ares_parse_aaa_reply() doesn't consider it
relevant. Here's a small patch to make it behave the same with and without
the CNAME.
Daniel Stenberg [Thu, 3 Jul 2008 08:47:53 +0000 (08:47 +0000)]
Phil Blundell provided a fix for libcurl's treatment of unexpected 1xx
response codes. Previously libcurl would hang on such occurances. I added
test case 1033 to verify.
Daniel Stenberg [Thu, 3 Jul 2008 06:56:03 +0000 (06:56 +0000)]
Introcuding a new timestamp for curl_easy_getinfo():
CURLINFO_APPCONNECT_TIME. This is set with the "application layer"
handshake/connection is completed (typically SSL, TLS or SSH). By using this
you can figure out the application layer's own connect time. You can extract
the time stamp using curl's -w option and the new variable named
'time_appconnect'. This feature was sponsored by Lenny Rachitsky at NeuStar.
Dan Fandrich [Wed, 2 Jul 2008 18:34:00 +0000 (18:34 +0000)]
Support Open Watcom C on Linux (as well as Windows).
Yang Tse [Wed, 2 Jul 2008 17:42:08 +0000 (17:42 +0000)]
The configure process will now halt when sed or grep are unavailable
Yang Tse [Wed, 2 Jul 2008 03:04:56 +0000 (03:04 +0000)]
fallback to gettimeofday when monotonic clock is unavailable at run-time