[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: devmem: use mmap64 replace mmap
From:       Ismael Luceno <ismael () iodev ! co ! uk>
Date:       2021-10-08 18:01:29
Message-ID: YWCHeToAsufmLPYQ () pirotess
[Download RAW message or body]

On 08/Oct/2021 16:45, Denys Vlasenko wrote:
> On Fri, Oct 8, 2021 at 10:16 AM xiechengliang <xiechengliang1@huawei.com> wrote:
> >
> > I have built busybox with CONFIG_LFS=y, this problem still exists.
> >
> > mmap is defined in glibc as below:
> > void *mmap(void *addr, size_t len, int prot , int flags , int fd, off_t offset);
> > The type of last parameter offset is off_ t, so using mmap will still cause truncation problems.
> 
> ????
> With CONFIG_LFS=y, off_t should be (at least) 64-bit.
> 
> Tell me more about the architecture you are building for.
> Is it bionic, maybe? They had some weird cases where off_t stays 32-bit.

Looks like it could be bionic. At least none of:
- glibc
- uclibc
- uclibc-ng
- musl

Targeting anything earlier than Android NDK API 21 probably will not work
without workarounds.
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic