1 #ifndef ACL_MALLOC_INCLUDE_H 2 #define ACL_MALLOC_INCLUDE_H 16 # if defined(__hpux) && defined(__ia64) 17 # define ALIGN_TYPE __float80 18 # elif defined(__ia64__) 19 # define ALIGN_TYPE long double 21 # define ALIGN_TYPE size_t 48 #define ACL_MEMPOOL_CTL_END 0 49 #define ACL_MEMPOOL_CTL_MUTEX 1 50 #define ACL_MEMPOOL_CTL_DISABLE 2 74 void *ptr,
size_t *len,
size_t *real_len);
113 size_t nmemb,
size_t size);
125 void *ptr,
size_t size);
145 const char *str,
size_t len);
156 const void *ptr,
size_t len);
171 ACL_API
void *
acl_malloc_glue(
const char *filename,
int line,
size_t size);
172 ACL_API
void *
acl_calloc_glue(
const char *filename,
int line,
size_t nmemb,
size_t size);
173 ACL_API
void *
acl_realloc_glue(
const char *filename,
int line,
void *ptr,
size_t size);
174 ACL_API
char *
acl_strdup_glue(
const char *filename,
int line,
const char *str);
175 ACL_API
char *
acl_strndup_glue(
const char *filename,
int line,
const char *str,
size_t len);
176 ACL_API
void *
acl_memdup_glue(
const char *filename,
int line,
const void *ptr,
size_t len);
177 ACL_API
void acl_free_glue(
const char *filename,
int line,
void *ptr);
HTTP_API void const char * name
ACL_API int acl_mempool_total_allocated(void)
ACL_API void acl_memory_debug_stack(int onoff)
ACL_API void acl_default_memstat(const char *filename, int line, void *ptr, size_t *len, size_t *real_len)
ACL_API void acl_mempool_status(void)
ACL_API char * acl_strdup_glue(const char *filename, int line, const char *str)
ACL_API void acl_default_free(const char *filename, int line, void *ptr)
ACL_API int * acl_memory_debug_start(void)
ACL_API char * acl_strndup_glue(const char *filename, int line, const char *str, size_t len)
ACL_API void * acl_default_calloc(const char *filename, int line, size_t nmemb, size_t size)
ACL_API void acl_memory_debug_stop(void)
ACL_API void * acl_calloc_glue(const char *filename, int line, size_t nmemb, size_t size)
ACL_API void acl_default_set_memlimit(size_t len)
ACL_API void acl_memory_alloc_stat(void)
ACL_API void * acl_default_malloc(const char *filename, int line, size_t size)
ACL_API void * acl_default_realloc(const char *filename, int line, void *ptr, size_t size)
ACL_API void acl_mempool_ctl(int name,...)
ACL_API void acl_free_fn_glue(void *ptr)
ACL_API size_t acl_default_get_memlimit(void)
ACL_API char * acl_default_strndup(const char *filename, int line, const char *str, size_t len)
ACL_API void acl_memory_stat(void)
ACL_API void * acl_realloc_glue(const char *filename, int line, void *ptr, size_t size)
ACL_API char * acl_default_strdup(const char *filename, int line, const char *str)
ACL_API void * acl_default_memdup(const char *filename, int line, const void *ptr, size_t len)
ACL_API void * acl_malloc_glue(const char *filename, int line, size_t size)
ACL_API void acl_default_meminfo(void)
ACL_API void acl_mempool_open(size_t max_size, int use_mutex)
ACL_API void * acl_memdup_glue(const char *filename, int line, const void *ptr, size_t len)
ACL_API void acl_free_glue(const char *filename, int line, void *ptr)
ACL_API void acl_mempool_close(void)