mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09: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:
parent
dd00175ae2
commit
c19b56dc99
Notes:
sideshowbarker
2024-07-19 07:40:10 +09:00
Author: https://github.com/awesomekling
Commit: c19b56dc99
8 changed files with 58 additions and 1 deletions
|
@ -67,6 +67,8 @@
|
|||
#define MADV_SET_NONVOLATILE 0x200
|
||||
#define MADV_GET_VOLATILE 0x400
|
||||
|
||||
#define MAP_INHERIT_ZERO 1
|
||||
|
||||
#define F_DUPFD 0
|
||||
#define F_GETFD 1
|
||||
#define F_SETFD 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue