In windows, I've used Heap32ListFirst / Heap32ListNext to iterate over the heaps list, and then for each heap I'd use Heap32First / Heap32Next to get every block.
Is there an equivalent way of doing so in Linux, glibc or otherwise? I couldn't find any functions to walk the heap.