34 #if defined (DEBUG_MEMORY_LEAKAGE) || defined (DEBUG_MALLOC_POOL) || \ 35 defined (DEBUG_MEMORY_LEAKAGE_ON_EXIT) 36 #define DMDOFFSET (sizeof (struct dmalloc_preamble)) 39 #define DMDSIZE (DMDOFFSET + DMLFSIZE + DMUFSIZE) 41 struct dmalloc_preamble {
42 struct dmalloc_preamble *prev, *next;
46 unsigned long generation;
47 unsigned char low_fence [DMLFSIZE];
58 #if defined (DEBUG_RC_HISTORY) 59 #if !defined (RC_HISTORY_MAX) 60 # define RC_HISTORY_MAX 256 63 #if !defined (RC_HISTORY_FLAGS) 64 # define RC_HISTORY_FLAGS (RC_LEASE | RC_MISC) 67 struct rc_history_entry {
75 #define rc_register(x, l, r, y, z, d, f) do { \ 76 if (RC_HISTORY_FLAGS & ~(f)) { \ 77 rc_history [rc_history_index].file = (x); \ 78 rc_history [rc_history_index].line = (l); \ 79 rc_history [rc_history_index].reference = (r); \ 80 rc_history [rc_history_index].addr = (y); \ 81 rc_history [rc_history_index].refcnt = (z); \ 82 rc_history_next (d); \ 85 #define rc_register_mdl(r, y, z, d, f) \ 86 rc_register (__FILE__, __LINE__, r, y, z, d, f) 88 #define rc_register(file, line, reference, addr, refcnt, d, f) 89 #define rc_register_mdl(reference, addr, refcnt, d, f) 92 #if defined (DEBUG_MEMORY_LEAKAGE) || defined (DEBUG_MALLOC_POOL) || \ 93 defined (DEBUG_MEMORY_LEAKAGE_ON_EXIT) 94 extern struct dmalloc_preamble *dmalloc_list;
95 extern unsigned long dmalloc_outstanding;
96 extern unsigned long dmalloc_longterm;
97 extern unsigned long dmalloc_generation;
98 extern unsigned long dmalloc_cutoff_generation;
101 #if defined (DEBUG_RC_HISTORY) 102 extern struct rc_history_entry rc_history [RC_HISTORY_MAX];
103 extern int rc_history_index;
104 extern int rc_history_count;
isc_result_t omapi_buffer_dereference(omapi_buffer_t **, const char *, int)
isc_result_t omapi_buffer_reference(omapi_buffer_t **, omapi_buffer_t *, const char *, int)
isc_result_t omapi_buffer_new(omapi_buffer_t **, const char *, int)