summaryrefslogtreecommitdiff
path: root/libc/stdlib/malloc-standard
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-08 19:15:23 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-08 19:15:23 +0000
commitc1f6afc1dd12f8485d207e2f14c90130ac4c9a16 (patch)
tree6af4f5d4dedab808bb9ec07b5595d8dcacde107b /libc/stdlib/malloc-standard
parent9fda32a9dd08c5289baa3ae275467a66094f8522 (diff)
Hide mallinfo
Diffstat (limited to 'libc/stdlib/malloc-standard')
-rw-r--r--libc/stdlib/malloc-standard/mallinfo.c5
1 files changed, 3 insertions, 2 deletions
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);