cURL / Mailing Lists / curl-library / Single Mail


Re: FTP large file support patch

From: Daniel Stenberg <>
Date: Thu, 11 Dec 2003 23:40:57 +0100 (CET)

On Wed, 10 Dec 2003, Dan Fandrich wrote:

> #ifdef LONG_LONG_OFF_T // need some kind of configure test for this
> #define OFF_T_FMT "lld"
> #else
> #define OFF_T_FMT "d"
> #endif
> off_t sz=foo();
> printf("Size is %" OFF_T_FMT, sz);

Since we in fact have our own printf() code, we could make 'lld' always output
off_t, even on platforms where off_t is only 4 bytes... :-)

> > Perhaps I misunderstood your reasoning for having a new progress function,
> > or maybe I misread; if so, please let me know, and I can address that. :)
> I can see the value of a curl API that doesn't depend on floating point at
> all in some small systems that lack hardware floating point support.

Yeps, I've always considered those doubles in that function as a mistake. Now
I feel we have a good excuse to correct it!

    Daniel Stenberg -- --
   [[ Do not send mails to this email address. They won't reach me. ]]
This email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now!
Received on 2003-12-12