mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2024-10-01 01:36:01 -04:00
18 lines
505 B
C
18 lines
505 B
C
#ifndef MEMORY_H
|
|
#define MEMORY_H
|
|
|
|
#include <stddef.h>
|
|
|
|
int get_metadata_key(void);
|
|
|
|
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_ro(void *ptr, size_t size);
|
|
int memory_protect_rw(void *ptr, size_t size);
|
|
int memory_protect_rw_metadata(void *ptr, size_t size);
|
|
int memory_remap(void *old, size_t old_size, size_t new_size);
|
|
int memory_remap_fixed(void *old, size_t old_size, void *new, size_t new_size);
|
|
|
|
#endif
|