summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/malloc_walk.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libcsupport/src/malloc_walk.c')
-rw-r--r--cpukit/libcsupport/src/malloc_walk.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/malloc_walk.c b/cpukit/libcsupport/src/malloc_walk.c
new file mode 100644
index 0000000000..6b6602b2ff
--- /dev/null
+++ b/cpukit/libcsupport/src/malloc_walk.c
@@ -0,0 +1,28 @@
+/*
+ * malloc_walk Implementation
+ *
+ * COPYRIGHT (c) 1989-2007.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#ifdef RTEMS_NEWLIB
+#include "malloc_p.h"
+
+#include <stdlib.h>
+
+void malloc_walk(size_t source, size_t printf_enabled)
+{
+ _Protected_heap_Walk( RTEMS_Malloc_Heap, (int) source, printf_enabled );
+}
+
+#endif