[PATCH] Bionic lacks transparent LFS migrations; provide a workaround

Rich Felker dalias at libc.org
Sat Apr 25 15:38:41 UTC 2015


On Sat, Apr 25, 2015 at 04:53:33AM -0400, Matt Whitlock wrote:
> This solves some of the problems arising from Bionic's off_t being
> 32 bits wide despite _FILE_OFFSET_BITS==64. See BusyBox bug #6908.
> 
> Note that this doesn't solve all such problems since Bionic lacks
> 64-bit variants of many standard I/O functions: open, creat, lockf,
> posix_fadvise, posix_fallocate, truncate, sendfile, getrlimit,
> setrlimit, fopen, freopen, fseeko, ftello, fgetpos, fsetpos,
> mkstemp.

As long as that's the case, I think this approach of trying to fake
64-bit off_t on Bionic is dangerous and probably best omitted. IMO we
should either be pushing for Bionic to fix these things or sticking
with 32-bit off_t on Bionic and treating that as a limitation of the
platform.

Rich


More information about the busybox mailing list