[PATCH] devmem: support more than 4GB of physical memory on 32 bit systems

Laurent Bercot ska-dietlibc at skarnet.org
Thu Jun 30 13:07:04 UTC 2016


On 30/06/2016 13:24, Robert Schiele wrote:
> -	off_t target;
> +	off64_t target;

  http://stackoverflow.com/a/3221920

  If you need 64-bit types, compile your programs with -D_FILE_OFFSET_BITS=64,
which should be the default on reasonable systems (not sure how common
reasonable systems are nowadays though).
  Please don't use the foobar64_t types, which are a very ugly piece of
glibc bugware and make the code actually incorrect on 32-bit machines.

-- 
  Laurent



More information about the busybox mailing list