mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-05-02 06:16:24 -04:00
split out low-level memory mapping wrappers
This commit is contained in:
parent
8b42e8c3d6
commit
58d929c0f0
4 changed files with 47 additions and 29 deletions
10
memory.h
Normal file
10
memory.h
Normal file
|
@ -0,0 +1,10 @@
|
|||
#ifndef MEMORY_H
|
||||
#define MEMORY_H
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
void *memory_map(size_t size);
|
||||
int memory_unmap(void *ptr, size_t size);
|
||||
int memory_protect(void *ptr, size_t size, int prot);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue