From 3c3deb14dc8d6511680595dc42cb627d5781746d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Sun, 6 Oct 2019 00:00:01 +0000 Subject: [PATCH] mmap anonymous answers SO question --- README.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.adoc b/README.adoc index d11da69..fdac405 100644 --- a/README.adoc +++ b/README.adoc @@ -13105,6 +13105,8 @@ In POSIX 7 mmap always maps to a file. If we add the MAP_ANONYMOUS Linux extension however, this is not required, and mmap can be used to allocate memory like malloc. +Answers: https://stackoverflow.com/questions/4779188/how-to-use-mmap-to-allocate-a-memory-in-heap + ===== mmap file Memory mapped file example: link:userland/posix/mmap_file.c[]