diff options
Diffstat (limited to 'clients/xzwrite/nmalloc.h')
-rw-r--r-- | clients/xzwrite/nmalloc.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/clients/xzwrite/nmalloc.h b/clients/xzwrite/nmalloc.h new file mode 100644 index 0000000..57144c7 --- /dev/null +++ b/clients/xzwrite/nmalloc.h @@ -0,0 +1,20 @@ +#ifndef _malloc_ +#define _malloc_ + +#define New(TYPE) ((TYPE *)malloc(sizeof(TYPE))) +malloc_init ( /* start */ ); +int m_blocksize( /* a_block */ ); +char * malloc ( /* n */ ); /* get a block */ +free ( /* mem */ ); +char * realloc ( /* mem, n */ ); +struct mstats_value + { + int blocksize; + int nfree; + int nused; + }; +struct mstats_value malloc_stats ( /* size */ ); +get_lim_data ( /* */ ); +get_lim_data ( /* */ ); +get_lim_data ( /* */ ); +#endif _malloc_ |