apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Reser <...@reser.org>
Subject Re: Solving the off_t problem in APR 1.0
Date Wed, 28 Jan 2004 03:33:25 GMT
On Tue, Jan 27, 2004 at 10:32:20AM -0500, Greg Hudson wrote:
> There is a new idea afloat, incidentally: rather than fix apr_off_t at
> 64 bits, fix apr_off_t at the size off_t has at configuration time. 
> (There appears to be no off32_t, so that would have to be apr_int32_t on
> most 32-bit platforms.)  That doesn't get large-file support, but it
> does make apr_off_t independent of _FILE_OFFSET_BITS, and it doesn't
> cause an ABI change.

Attached is an implementation of this idea.  The idea was originally
suggested by Tobias Ringström in:

This also removes some cruft that appears to have been added because
sizeof(int) == sizeof(long) on some platforms.  Which this patch happily
avoids altogether for us. :)

Ben Reser <ben@reser.org>

"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken

View raw message