apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@covalent.net>
Subject Re: apr_strfsize cannot handle sizes bigger than a few MiBs without largefiles support
Date Tue, 29 Jan 2002 18:41:39 GMT
From: "Stas Bekman" <stas@stason.org>
Sent: Tuesday, January 29, 2002 12:39 PM

> apr_strfsize accepts the size arg as apr_off_t, so unless apache it
> built with largefiles support, apr_off_t == long int, which means that
> apr_strfsize is unusable for sizes bigger than a few MiBs.

This is correct.  If the platform supports LARGEFILES, then it better
danged well say so and own up to the responsibilities of implementing
them in APR (seek, etc - all supporting apr_off_t sized jumps).

> I've checked mod_autoindex, and it has this problem too as it uses
> apr_off_t for its size and feeds it to apr_strfsize.

That is correct.

> should apr_strftime be changed to use a type that can always hold a
> bigger number?


View raw message