OSDN Git Service
(root)
/
linuxjm
/
LDP_man-pages.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git]
/
original
/
man3
/
malloc_trim.3
diff --git
a/original/man3/malloc_trim.3
b/original/man3/malloc_trim.3
index
6388a71
..
c490f81
100644
(file)
--- a/
original/man3/malloc_trim.3
+++ b/
original/man3/malloc_trim.3
@@
-1,6
+1,7
@@
'\" t
.\" Copyright (c) 2012 by Michael Kerrisk <mtk.manpages@gmail.com>
.\"
'\" t
.\" Copyright (c) 2012 by Michael Kerrisk <mtk.manpages@gmail.com>
.\"
+.\" %%%LICENSE_START(VERBATIM)
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
@@
-20,14
+21,15
@@
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
.\"
.\"
-.TH MALLOC_TRIM 3 201
2-03-29
"Linux" "Linux Programmer's Manual"
+.TH MALLOC_TRIM 3 201
4-05-28
"Linux" "Linux Programmer's Manual"
.SH NAME
malloc_trim \- release free memory from the top of the heap
.SH SYNOPSIS
.B #include <malloc.h>
.SH NAME
malloc_trim \- release free memory from the top of the heap
.SH SYNOPSIS
.B #include <malloc.h>
-.BI "
void
malloc_trim(size_t " pad );
+.BI "
int
malloc_trim(size_t " pad );
.SH DESCRIPTION
The
.BR malloc_trim ()
.SH DESCRIPTION
The
.BR malloc_trim ()
@@
-69,11
+71,20
@@
in
This function cannot release free memory located at places
other than the top of the heap.
This function cannot release free memory located at places
other than the top of the heap.
-.SH NOTES
-This function
only releases
memory in the main arena.
+
+This function
releases only
memory in the main arena.
.\" malloc/malloc.c::mTRIm():
.\" return result | (av == &main_arena ? sYSTRIm (pad, av) : 0);
.SH SEE ALSO
.BR sbrk (2),
.BR malloc (3),
.BR mallopt (3)
.\" malloc/malloc.c::mTRIm():
.\" return result | (av == &main_arena ? sYSTRIm (pad, av) : 0);
.SH SEE ALSO
.BR sbrk (2),
.BR malloc (3),
.BR mallopt (3)
+.SH COLOPHON
+This page is part of release 3.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.