Subject: Re: sbrk() semantics ....
To: Gordon Ross <>
From: Mark P. Gooderum <>
List: tech-kern
Date: 03/13/1995 12:55:07
Correct.  In NetBSD you don't even need /dev/zero,just use MAP_ANON.
One advantage of mmap() versus sbrk() is that you can do a GC malloc
that returns memory to the system when not needed (I did this once).
You can unmap() sbrk()ed pages, but then you never reuse that address
space when you sbrk() again.