libstd/mem
For Linux: the syscall numbers of mmap/mprotect/munmap/brk (those of x86_64 or aarch64) and the MAP_*/PROT_* flags, for code that maps memory through asminline, as the Linux threads do, and sys_mmap_shared, memory shared between processes. On Windows it is empty: memory goes through VirtualAlloc. The open flags and permission bits are in libstd/file, the same on both systems.
#include <libstd/mem>
Includes libstd/macro. Same functions and constant names on Linux and Windows: the system-specific part is in wrapper/linux/mem and wrapper/windows/mem (see Linux and Windows).
Functions
Linux only. Maps size bytes of anonymous shared memory (MAP_SHARED | MAP_ANONYMOUS), readable, writable and zero-filled. Processes created with fork after the call see it at the same address, and what one writes the others read. It does not come from the arena: it stays mapped until the process ends. Returns the address, or 0 if mmap fails. libstd/http keeps its session table there; protect concurrent access with the futex functions of libstd/sync.