You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by "William A. Rowe Jr." <wr...@rowe-clan.net> on 2011/03/20 19:29:26 UTC

APR_HAS_LARGE_FILES confusion

/* TODO: in 1.3.0 this becomes APR_HAS_SPARSE_FILES, HOWEVER we will
 * still need to test csize before proceeding, because having sparse
 * file support in the OS/APR does not mean this volume supports it!
 */
#if APR_HAS_LARGE_FILES

......

as noted by the comment, there is a flag to determine if sparse file
semantics are available *within apr* for use by consumers.

There is no longer such a flag in *1.0.0* and later, because apr is
always built with large apr_off_t types (except as noted, where we
had invalid autoconf magic/generated apr.h results).  Whether the
c compiler options call out for 32 or 64 bit off_t's, we should not
care or be impacted.

The comment caused me to wonder if there is some confusion still,
so I thought it would be worthwhile to point this out.  The flag
APR_HAS_LARGE_FILES never had anything to do with any gcc defines,
per say, only that >4gb files are legitimate and addressable by our
apr_off_t type.

Re: APR_HAS_LARGE_FILES confusion

Posted by "William A. Rowe Jr." <wr...@rowe-clan.net>.
On 3/20/2011 1:29 PM, William A. Rowe Jr. wrote:
> 
> The comment caused me to wonder if there is some confusion still,
> so I thought it would be worthwhile to point this out.  The flag
> APR_HAS_LARGE_FILES never had anything to do with any gcc defines,
> per say, only that >4gb files are legitimate and addressable by our
> apr_off_t type.

And note the verb... _HAVE_ represent autoconf detected features...
_HAS_ describes apr capabilities.