]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add linux_madvise(2) instead of having Linux apps call the native
authorEdward Tomasz Napierala <trasz@FreeBSD.org>
Sat, 20 Jun 2020 18:29:22 +0000 (18:29 +0000)
committerEdward Tomasz Napierala <trasz@FreeBSD.org>
Sat, 20 Jun 2020 18:29:22 +0000 (18:29 +0000)
commit52c81be11a107cdedb865a274b5567b0c95c0308
treed88c1e67beefc830f6e3d8729d45ec11e9a0d151
parentb75a772875a4276c34de52a96641d45ad0c10031
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