From c1f6afc1dd12f8485d207e2f14c90130ac4c9a16 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Thu, 8 Dec 2005 19:15:23 +0000 Subject: Hide mallinfo --- libc/stdlib/malloc-standard/mallinfo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libc/stdlib') diff --git a/libc/stdlib/malloc-standard/mallinfo.c b/libc/stdlib/malloc-standard/mallinfo.c index 51ac423fe..f6c2a9104 100644 --- a/libc/stdlib/malloc-standard/mallinfo.c +++ b/libc/stdlib/malloc-standard/mallinfo.c @@ -18,7 +18,7 @@ /* ------------------------------ mallinfo ------------------------------ */ -struct mallinfo mallinfo(void) +struct mallinfo attribute_hidden __mallinfo(void) { mstate av; struct mallinfo mi; @@ -78,6 +78,7 @@ struct mallinfo mallinfo(void) UNLOCK; return mi; } +strong_alias(__mallinfo,mallinfo) void malloc_stats(FILE *file) { @@ -87,7 +88,7 @@ void malloc_stats(FILE *file) file = stderr; } - mi = mallinfo(); + mi = __mallinfo(); fprintf(file, "total bytes allocated = %10u\n", (unsigned int)(mi.arena + mi.hblkhd)); fprintf(file, "total bytes in use bytes = %10u\n", (unsigned int)(mi.uordblks + mi.hblkhd)); fprintf(file, "total non-mmapped bytes allocated = %10d\n", mi.arena); -- cgit v1.2.3