mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-05-02 06:16:24 -04:00
add mmap MAP_FIXED wrapper for dropping slabs
This commit is contained in:
parent
0e2f3d1015
commit
00b2613e16
2 changed files with 12 additions and 0 deletions
1
memory.h
1
memory.h
|
@ -4,6 +4,7 @@
|
|||
#include <stddef.h>
|
||||
|
||||
void *memory_map(size_t size);
|
||||
int memory_map_fixed(void *ptr, size_t size);
|
||||
int memory_unmap(void *ptr, size_t size);
|
||||
int memory_protect_rw(void *ptr, size_t size);
|
||||
int memory_protect_ro(void *ptr, size_t size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue