Takács András <wako...@gmail.com> writes: >> Here you are printing 64-bits, so some part of your system thinks that >> apr_off_t is 64-bits. How are apr_off_t and APR_HAS_LARGE_FILES defined >> in apr.h? > > #define APR_HAS_LARGE_FILES 0 > typedef off_t apr_off_t; > > I think this is OK, isn't it?
It shows that APR is just following the rest of the system. When you printed values you showed 64 bits so it looks like off_t is 64-bits, which conflicts with your earlier statement that you were using 32-bit file offsets. However the 64-bit values you printed look as if the lower 32-bits are valid and the higher 32-bits are junk. Your environment appears to be confused about the size of file offsets. -- Philip