Haxx ad

curl's project page on


cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: Helping apps use 64bit with libcurl

From: Daniel Stenberg <>
Date: Wed, 21 May 2008 23:00:33 +0200 (CEST)

On Wed, 21 May 2008, Dan Fandrich wrote:

> What about this scenario: libcurl is built without LFS, and the app is built
> with. The library will then be expecting a long while the app will be
> providing a long long. The naive approach of checking sizeof(off_t) in the
> header file will fail in this case. I can't think of how to do the right
> thing in this case without either a run-time size check or encoding the
> actual size expected in a curl header file.

Yeah, we're back to square one I'd say.

And out of the two choices, I prefer encoding the expected size into the
header file, since that way we should be able to avoid touching the actual ABI
or API.

Received on 2008-05-21

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET