pike.git / src / dmalloc.h

version» Context lines:

pike.git/src/dmalloc.h:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: dmalloc.h,v 1.61 2006/08/05 22:30:15 mast Exp $ + || $Id: dmalloc.h,v 1.62 2006/08/09 01:55:45 mast Exp $   */      #ifndef DMALLOC_H   #define DMALLOC_H      PMOD_EXPORT extern void *debug_xalloc(size_t);   PMOD_EXPORT extern void debug_xfree(void *);   PMOD_EXPORT extern void *debug_xmalloc(size_t);   PMOD_EXPORT extern void *debug_xcalloc(size_t,size_t);   PMOD_EXPORT extern void *debug_xrealloc(void *,size_t);
pike.git/src/dmalloc.h:75: Inside #if defined(DEBUG_MALLOC)
  PMOD_EXPORT void dmalloc_free(void *p);   PMOD_EXPORT int debug_malloc_touch_fd(int, LOCATION);   PMOD_EXPORT int debug_malloc_register_fd(int, LOCATION);   PMOD_EXPORT void debug_malloc_accept_leak_fd(int);   PMOD_EXPORT int debug_malloc_close_fd(int, LOCATION);   PMOD_EXPORT int dmalloc_mark_as_free(void*,int);      PMOD_EXPORT void *debug_malloc_update_location(void *, LOCATION);   PMOD_EXPORT void *debug_malloc_update_location_ptr(void *, ptrdiff_t, LOCATION);   void search_all_memheaders_for_references(void); - void cleanup_memhdrs(void); - void cleanup_debug_malloc(void); +       /* Beware! names of named memory regions are never ever freed!! /Hubbe */   PMOD_EXPORT void *debug_malloc_name(void *p, const char *fn, int line);   PMOD_EXPORT int debug_malloc_copy_names(void *p, void *p2);   char *dmalloc_find_name(void *p);      /* glibc 2.1 defines this as a macro. */   #ifdef strdup   #undef strdup   #endif