curl-library
Re: LONG_MAX patch
Date: Mon, 19 Jan 2004 23:15:02 +0100
"Daniel Stenberg" <daniel-curl_at_haxx.se> said:
> Is pos_t "widely known" for large file size types on
> Windows? If not, what type would a typical Windows developer use to store
> (large) file sizes?
"widely known" is an overstatement. I've never played with >2GB files in
any program.
> I get dizzy of all these types. What type would we tell Windows developers to
> use? Would that be a different type depending on what compiler/development
> environment the poor user sits in front of?
I don't understand all the issues with filesizes in libcurl, but..
AFAICS, tell them to use an 'unsigned __int64' (MSVC/Watcom) or
'unsigned long long' (GNU C) in the argument to CURLOPT_RESUME_FROM_LARGE,
CURLOPT_MAXFILESIZE_LARGE etc. If they use CURLOPT_RESUME_FROM
and truncate a file, that's just bad luck.
--gv
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
Received on 2004-01-19