From 76dfc7ce8cff868d547bcfde6fae0cba9f6efa25 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Mon, 8 Nov 2004 03:34:44 +0000 Subject: Some requested additional malloc entry points --- include/malloc.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') 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 +/* 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 */ -- cgit v1.2.3