From 5e0e9b99dc3fc0ecd49d929db0d57c784b66f481 Mon Sep 17 00:00:00 2001 From: svn2git Date: Fri, 1 Jul 1994 00:00:00 -0800 Subject: Release FreeBSD 1.1.5.1 This commit was manufactured to restore the state of the 1.1.5.1-RELEASE image. Releases prior to 5.3-RELEASE are omitting the secure/ and crypto/ subdirs. --- lib/libmalloc/trace.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 lib/libmalloc/trace.h (limited to 'lib/libmalloc/trace.h') diff --git a/lib/libmalloc/trace.h b/lib/libmalloc/trace.h new file mode 100644 index 000000000000..c3826dceca4b --- /dev/null +++ b/lib/libmalloc/trace.h @@ -0,0 +1,19 @@ +#ifndef __TRACE_H__ +#define __TRACE_H__ +extern void __m_install_record proto((univptr_t, const char *)); +extern void __m_delete_record proto((univptr_t)); + +#define RECORD_FILE_AND_LINE(addr, fname, linenum) \ + if (_malloc_leaktrace) { \ + (void) sprintf(_malloc_statsbuf, "%s:%d:", fname, linenum); \ + __m_install_record(addr, _malloc_statsbuf); \ + } else \ + _malloc_leaktrace += 0 + +#define DELETE_RECORD(addr) \ + if (_malloc_leaktrace) \ + __m_delete_record(addr); \ + else \ + _malloc_leaktrace += 0 + +#endif /* __TRACE_H__ */ /* Do not add anything after this line */ -- cgit v1.2.3