[Zlib-devel] zlib 1.2.3.2 available for testing

Mark Brown broonie at sirena.org.uk
Tue Sep 5 18:51:49 EDT 2006


On Tue, Sep 05, 2006 at 12:47:03PM -0500, William A. Rowe, Jr. wrote:
> Lasse Collin wrote:

> > On 32-bit archs, gzseek() doesn't work in transparent mode with large 
> > files when seeking past 2 GiB. Line 822 in gzio.c of zlib 1.2.3.2 calls 
> > fseek(), which takes only 32-bit offset (type "long"). A solution would 
> > be using fseeko() or fseeko64(), which take off_t or off64_t argument. 
> > Maybe all fseek()s should be converted to fseeko()/fseeko64() and 
> > ftell()s to ftello()/ftello64() when these functions are available.

> +1 if not explicitly building to 32 bits.

Ideally a single zlib could be built supporting both 64 and 32 bit files,
having appropriate variants of the gzio API being referenced for each
and having the API header reference the appropriate version based on the
#defines used.  This would avoid any ABI issues (attempting to use gzio
from an application using LFS never used to work anyway).

-- 
"You grabbed my hand and we fell into it, like a daydream - or a fever."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 307 bytes
Desc: Digital signature
URL: <http://madler.net/pipermail/zlib-devel_madler.net/attachments/20060905/4abe9427/attachment-0001.sig>


More information about the Zlib-devel mailing list