cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: LONG_MAX patch

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Fri, 16 Jan 2004 15:21:16 +0100

"Daniel Stenberg" <daniel-curl_at_haxx.se> said:

> We currently use off_t for this, which clearly isn't good enough. Since we
> don't pass this on to local I/O functions, perhaps we can simply use 'pos_t'
> on windows and get away with it?

Probably yes, and for resuming a download we must use _lseeki64() at
file.c/line 238.

It's really 'fpos_t' and for MingW/MSVC it's 64-bit signed. But only 32 bits
for Watcom (but Watcom doesn't use MSVCRT.DLL so I'm not sure it handles
>2GB files anyway).

--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-16