[libc-commits] [libc] [libc][mmap] force offset to long for mmap2 (PR #96522)
Nick Desaulniers via libc-commits
libc-commits at lists.llvm.org
Mon Jun 24 15:51:30 PDT 2024
nickdesaulniers wrote:
For Linux kernels, I'll only support kernels that kernel developers do (those listed on kernel.org). Though now I'm confused; does `mmap2` exist on 64b targets? That bionic code you cited above looks like it's always doing that shift on the offset. Is that right for 64b targets? I guess the man page for mmap mentions that mmap2 is used under the hood, but I guess I'm surprised to NOT set `__NR_mmap2` in /usr/include/asm/unistd_64.h.
https://github.com/llvm/llvm-project/pull/96522
More information about the libc-commits
mailing list