This commit is contained in:
2025-01-11 15:10:56 +00:00
parent 54ef57b90f
commit 1ae4a5fef9
6 changed files with 195 additions and 56 deletions

View File

@@ -5,6 +5,7 @@
#include <sys/mman.h>
#include <sys/stat.h>
#include <unistd.h>
void *os_alloc(size_t capacity) {
return mmap(0, capacity, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);