summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-11-08 03:34:44 +0000
committerEric Andersen <andersen@codepoet.org>2004-11-08 03:34:44 +0000
commit76dfc7ce8cff868d547bcfde6fae0cba9f6efa25 (patch)
tree31f186b2c8e3a03929ca372b8ddfc184835b6d07 /include
parent909aec10fe871c86655e4f0452e2479f9240e4f4 (diff)
Some requested additional malloc entry points
Diffstat (limited to 'include')
-rw-r--r--include/malloc.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/malloc.h b/include/malloc.h
index 790390db7..610c47dc3 100644
--- a/include/malloc.h
+++ b/include/malloc.h
@@ -145,6 +145,15 @@ struct mallinfo {
/* Returns a copy of the updated current mallinfo. */
extern struct mallinfo mallinfo __MALLOC_P ((void));
+/* Release all but __pad bytes of freed top-most memory back to the
+ system. Return 1 if successful, else 0. */
+extern int malloc_trim(size_t pad);
+
+#include <stdio.h>
+/* Prints brief summary statistics to the specified file.
+ * Writes to stderr if file is NULL. */
+extern void malloc_stats(FILE *file);
+
/* SVID2/XPG mallopt options */
#ifndef M_MXFAST
# define M_MXFAST 1 /* UNUSED in this malloc */