comparison dbmalloc.h @ 1361:f9f930e1a516 fuzz

add dbmalloc epoch cleanup
author Matt Johnston <matt@ucc.asn.au>
date Sun, 21 May 2017 10:54:11 +0800
parents
children 9aa6cd66b51d
comparison
equal deleted inserted replaced
1360:16f45f2df38f 1361:f9f930e1a516
1 #ifndef DBMALLOC_H_
2 #define DBMALLOC_H_
3
4 #include "includes.h"
5
6 void * m_malloc(size_t size);
7 /* m_calloc is limited in size, enough for libtomcrypt */
8 void * m_calloc(size_t nmemb, size_t size);
9 void * m_strdup(const char * str);
10 void * m_realloc(void* ptr, size_t size);
11 void m_free_direct(void* ptr);
12 #define m_free(X) do {m_free_direct(X); (X) = NULL;} while (0)
13
14 void m_malloc_set_epoch(unsigned int epoch);
15 void m_malloc_free_epoch(unsigned int epoch);
16
17 #endif /* DBMALLOC_H_ */