unsigned [int] -> uint
Fixed bug in unused function.
Implements command that shows memory usage.
Fixes headers for uintptr_t (and build on NetBSD).
Clear memory allocated by ralloc().
This also fixes bug that timer->recurrent was not clearedin tm_new() and unexpected recurrence of startup timerin BGP confused state machine and caused crash.
Fixes memory alignment problems on Sparc64.
Not quite standard construction, i should addsome autoconf macro.
Not tested yet.
ALIGN -> BIRD_ALIGN
Bug fix from Zheng Yuan <email@example.com>.
Documented memory resources.
Implemented debugging function rlookup() which you can call from gdbto see what resource does the address given as a parameter belong to.
Include "lib/string.h" instead of <string.h>. It should give us bzero()and other non-portable functions on all systems.
Simplify handling of free chunks.
Don't forget to free large blocks.
Clarify resource dumps and include them in the main debugging dump.
Added lp_flush() which flushes contents of a linear pool, leaving all thememory available for subsequent allocations from the same pool. Both flushingand re-using the memory costs just few instructions.
Name cleanups as suggested by Pavel:
- cfg_strcpy() > cfg_strdup() mempool -> linpool, mp_* -> lp_* [to avoid confusion with memblock, mb_*]
Anyway, it might be better to stop ranting about names and do some real work.
Staticized some variables and functions.
BIRD library: The story continues.
Complete resource manages and IP address handling.