1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:37:46 +00:00

Kernel+LibC: Add minherit() and MAP_INHERIT_ZERO

This patch adds the minherit() syscall originally invented by OpenBSD.
Only the MAP_INHERIT_ZERO mode is supported for now. If set on an mmap
region, that region will be zeroed out on fork().
This commit is contained in:
Andreas Kling 2020-04-12 20:22:26 +02:00
parent dd00175ae2
commit c19b56dc99
8 changed files with 58 additions and 1 deletions

View file

@ -182,7 +182,8 @@ namespace Kernel {
__ENUMERATE_SYSCALL(perf_event) \
__ENUMERATE_SYSCALL(shutdown) \
__ENUMERATE_SYSCALL(get_stack_bounds) \
__ENUMERATE_SYSCALL(ptrace)
__ENUMERATE_SYSCALL(ptrace) \
__ENUMERATE_SYSCALL(minherit)
namespace Syscall {