cURL / Mailing Lists / curl-library / Single Mail

curl-library

CURL doesn't support 64-bits file on Linux

From: Wei Weng <wweng_at_kencast.com>
Date: Mon, 22 Nov 2004 11:53:26 -0500

If you try to download a large file (bigger than 2GB) on Linux using CURL
binary compiled with no special flags (during ./configure), it will give you
a "File size limit exceeded" error when exactly 2GB file size is reached.

The reason is that we use FILE streams in CURL to fopen/fwrite large files,
but FILE streams don't support 64bits operations by default. Either you need
to compile with some flags or use some other 64bits file stream functions.
Or, you can wrap the file descriptor functions and use them instead.
(open->open64, write->write, read->read, close->close).

Wei
Received on 2004-11-22