]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add linux_madvise(2) instead of having Linux apps call the native
authortrasz <trasz@FreeBSD.org>
Sat, 20 Jun 2020 18:29:22 +0000 (18:29 +0000)
committertrasz <trasz@FreeBSD.org>
Sat, 20 Jun 2020 18:29:22 +0000 (18:29 +0000)
commitd8f6e5f667a1da216d9997a246b8fd66af464d26
treed88c1e67beefc830f6e3d8729d45ec11e9a0d151
parent9b757494bbc767c505ad34e79c9168c459a2aa9d
Add linux_madvise(2) instead of having Linux apps call the native
FreeBSD madvise(2) directly.  While some of the flag values match,
most don't.

PR: kern/230160
Reported by: markj
Reviewed by: markj
Discussed with: brooks, kib
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D25272
12 files changed:
sys/amd64/linux/linux_machdep.c
sys/amd64/linux/syscalls.master
sys/amd64/linux32/linux32_machdep.c
sys/amd64/linux32/syscalls.master
sys/arm64/linux/linux_machdep.c
sys/arm64/linux/syscalls.master
sys/compat/linux/linux_mmap.c
sys/compat/linux/linux_mmap.h
sys/i386/linux/linux_machdep.c
sys/i386/linux/syscalls.master
sys/sys/syscallsubr.h
sys/vm/vm_mmap.c