Update MAP_ANONYMOUS for Linux

This commit is contained in:
Christoffer Lerno
2025-08-31 00:27:01 +02:00
parent fafcf3d0a9
commit 0c7c5fbd7b

View File

@@ -11,7 +11,8 @@ const MAP_SHARED = 0x0001; // share changes
const MAP_PRIVATE = 0x0002; // changes are private
const MAP_FILE = 0x0000; // map from file (default)
const MAP_ANONYMOUS = 0x1000; // allocated from memory, swap space
const MAP_ANONYMOUS = env::LINUX ??? 0x20 : 0x1000; // allocated from memory, swap space
const void* MAP_FAILED = (void *)(uptr)-1; // mmap failed
const MADV_NORMAL = 0; // no further special treatment