hardened_malloc/memory.h
2018-08-29 10:57:42 -04:00

13 lines
311 B
C

#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_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