Browse Source

Update free(3) section--we use mmap()/munmap(), not brk().

Based on a diff from Mike Belopuhov.  OK jmc@
OPENBSD_4_3
millert 17 years ago
parent
commit
6441b2ef99
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      src/lib/libc/stdlib/malloc.3

+ 6
- 4
src/lib/libc/stdlib/malloc.3 View File

@ -30,7 +30,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" $OpenBSD: malloc.3,v 1.48 2007/09/03 14:37:02 millert Exp $
.\" $OpenBSD: malloc.3,v 1.49 2007/09/03 21:38:34 millert Exp $
.\"
.Dd $Mdocdate: September 3 2007 $
.Dt MALLOC 3
@ -125,9 +125,9 @@ The
.Fn free
function causes the space pointed to by
.Fa ptr
to be deallocated, that is, at least made available for further allocation,
but if possible, it will be passed back to the kernel with
.Xr sbrk 2 .
to be either placed on a list of free pages to make it available for future
allocation or, if required, to be returned to the kernel using
.Xr munmap 2 .
If
.Fa ptr
is a null pointer, no action occurs.
@ -449,6 +449,8 @@ We found something we didn't understand.
.El
.Sh SEE ALSO
.Xr brk 2 ,
.Xr mmap 2 ,
.Xr munmap 2 ,
.Xr alloca 3 ,
.Xr getpagesize 3
.Sh STANDARDS


Loading…
Cancel
Save