mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 12:01:42 +01:00
762601f0d2
git-svn-id: file:///svn/tokudb@26 c7de825b-a66e-492c-adef-691d508d4ae1
24 lines
753 B
C
24 lines
753 B
C
//#include <stdlib.h>
|
|
|
|
/* errno is set to 0 or a value to indicate problems. */
|
|
void *toku_calloc(long nmemb, long size);
|
|
void *toku_malloc(long size);
|
|
void *tagmalloc(unsigned long size, int typ);
|
|
void toku_free(void*);
|
|
void *toku_realloc(void *, long size);
|
|
|
|
#define MALLOC(v) v = toku_malloc(sizeof(*v))
|
|
#define MALLOC_N(n,v) v = toku_malloc((n)*sizeof(*v))
|
|
|
|
#define TAGMALLOC(t,v) t v = tagmalloc(sizeof(*v), TYP_ ## t);
|
|
|
|
void *memdup (const void *v, unsigned int len);
|
|
char *mystrdup (const char *s);
|
|
|
|
void memory_check_all_free (void);
|
|
void do_memory_check(void);
|
|
|
|
extern int memory_check; // Set to nonzero to get a (much) slower version of malloc that does (much) more checking.
|
|
|
|
int get_n_items_malloced(void);
|
|
void print_malloced_items(void);
|