mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-05-02 06:16:24 -04:00
wrap more memory mapping implementation details
This commit is contained in:
parent
1cb28531a8
commit
d779d41721
3 changed files with 17 additions and 9 deletions
3
memory.h
3
memory.h
|
@ -5,7 +5,8 @@
|
|||
|
||||
void *memory_map(size_t size);
|
||||
int memory_unmap(void *ptr, size_t size);
|
||||
int memory_protect(void *ptr, size_t size, int prot);
|
||||
int memory_protect_rw(void *ptr, size_t size);
|
||||
int memory_protect_ro(void *ptr, size_t size);
|
||||
int memory_remap_fixed(void *old, size_t old_size, void *new, size_t new_size);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue