|
Packit |
6f02de |
|
|
Packit |
6f02de |
|
|
Packit |
6f02de |
/* DEBUG -- where "appropriate in lsof.h */
|
|
Packit |
6f02de |
#define calloc next_calloc
|
|
Packit |
6f02de |
#define free next_free
|
|
Packit |
6f02de |
#define malloc next_malloc
|
|
Packit |
6f02de |
#define realloc next_realloc
|
|
Packit |
6f02de |
#include <stdlib.h>
|
|
Packit |
6f02de |
#undef calloc
|
|
Packit |
6f02de |
#undef free
|
|
Packit |
6f02de |
#undef malloc
|
|
Packit |
6f02de |
#undef realloc
|
|
Packit |
6f02de |
#define calloc(n, s) lsofcalloc(__FILE__, __LINE__, n, s)
|
|
Packit |
6f02de |
#define free(p) lsoffree(__FILE__, __LINE__, p)
|
|
Packit |
6f02de |
#define malloc(s) lsofmalloc(__FILE__, __LINE__, s)
|
|
Packit |
6f02de |
#define realloc(p, s) lsofrealloc(__FILE__, __LINE__, p, s)
|
|
Packit |
6f02de |
extern void *lsofcalloc(char *f, int l, size_t n, size_t s);
|
|
Packit |
6f02de |
extern void lsoffree(char *f, int l, void *p);
|
|
Packit |
6f02de |
extern void *lsofmalloc(char *f, int l, size_t s);
|
|
Packit |
6f02de |
extern void *lsofrealloc(char *f, int l, void *p, size_t s);
|
|
Packit |
6f02de |
extern int DBMon;
|
|
Packit |
6f02de |
/* end DEBUG section for lsof.h */
|