usermode/library/malloc-original/src/dlmalloc.h

00001 #ifndef _DLMALLOC_H
00002 #define _DLMALLOC_H
00003 
00004 #include <stdlib.h>
00005 
00006 #define TM_CALLABLE __attribute__((tm_callable))
00007 #define TM_PURE     __attribute__((tm_pure))
00008 #define TM_WAIVER   __tm_waiver
00009 
00010 #define PDL_MALLOC(x)          pdl_malloc(x)
00011 #define PDL_FREE(x)            pdl_free(x)
00012 #define PDL_REALLOC(x,y)       pdl_realloc(x,y)
00013 #define PDL_CALLOC(x,y)        pdl_calloc(x,y)
00014 #define PDL_CFREE(x)           pdl_cfree(x)
00015 #define PDL_MEMALIGN(x,y)      pdl_memalign(x,y)
00016 #define PDL_VALLOC(x)          pdl_valloc(x)
00017 #define PDL_GET_USABLE_SIZE(x) pdl_malloc_usable_size(x)
00018 #define PDL_MALLOC_STATS       pdl_malloc_stats
00019 
00020 #ifdef __cplusplus
00021 extern "C" {
00022 #endif
00023 
00024 TM_CALLABLE void*  PDL_MALLOC(size_t);
00025 TM_CALLABLE void   PDL_FREE(void* mem);
00026 TM_CALLABLE void*  PDL_REALLOC(void* mem, size_t bytes);
00027 TM_CALLABLE void*  PDL_CALLOC(size_t n, size_t elem_size);
00028 TM_CALLABLE void   PDL_CFREE(void *mem);
00029 TM_CALLABLE void*  PDL_MEMALIGN(size_t alignment, size_t bytes);
00030 TM_CALLABLE void*  PDL_VALLOC(size_t bytes);
00031 TM_CALLABLE void   PDL_MALLOC_STATS();
00032 TM_CALLABLE size_t PDL_GET_USABLE_SIZE(void* mem);
00033 
00034 #ifdef __cplusplus
00035 } /* end of extern "C" */
00036 #endif 
00037 #endif

Generated on Sat Apr 23 11:43:35 2011 for Mnemosyne by  doxygen 1.4.7