diff options
Diffstat (limited to 'cpukit/libcsupport/src/malloc_walk.c')
-rw-r--r-- | cpukit/libcsupport/src/malloc_walk.c | 29 |
1 files changed, 29 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..a376282077 --- /dev/null +++ b/cpukit/libcsupport/src/malloc_walk.c @@ -0,0 +1,29 @@ +/* + * 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 <sys/reent.h> +#include <stdlib.h> + +void malloc_walk(size_t source, size_t printf_enabled) +{ + #if defined(RTEMS_DEBUG) + _Protected_heap_Walk( &RTEMS_Malloc_Heap, source, printf_enabled ); + #endif +} + +#endif |