Index: ossp-pkg/lmtp2nntp/.configure RCS File: /v/ossp/cvs/ossp-pkg/lmtp2nntp/Attic/.configure,v rcsdiff -q -kk '-r1.3' '-r1.4' -u '/v/ossp/cvs/ossp-pkg/lmtp2nntp/Attic/.configure,v' 2>/dev/null --- .configure 2001/08/20 12:17:42 1.3 +++ .configure 2001/08/23 09:12:30 1.4 @@ -6,4 +6,5 @@ ./configure \ --prefix=/tmp/lmtp2nntp \ --with-str=/cw \ + --with-dmalloc=/cw \ --enable-debug Index: ossp-pkg/lmtp2nntp/.dmallocrc RCS File: /v/ossp/cvs/ossp-pkg/lmtp2nntp/.dmallocrc,v co -q -kk -p'1.1' '/v/ossp/cvs/ossp-pkg/lmtp2nntp/.dmallocrc,v' | diff -u /dev/null - -L'ossp-pkg/lmtp2nntp/.dmallocrc' 2>/dev/null --- ossp-pkg/lmtp2nntp/.dmallocrc +++ - 2024-04-24 17:09:48.535191301 +0200 @@ -0,0 +1,20 @@ +## +## Dmalloc Init Script for use with GNU Pth +## Copyright (c) 1999-2001 Ralf S. Engelschall +## + +# no debugging +none none + +# basic debugging +debug1 log-stats, log-non-free, check-fence + +# more logging and some heap checking +debug2 log-stats, log-non-free, log-trans, \ + check-fence, check-heap, check-lists, error-abort + +# good utilities +debug3 log-stats, log-non-free, log-trans, \ + log-admin, check-fence, check-heap, check-lists, realloc-copy, \ + free-blank, error-abort + Index: ossp-pkg/lmtp2nntp/Makefile.in RCS File: /v/ossp/cvs/ossp-pkg/lmtp2nntp/Makefile.in,v rcsdiff -q -kk '-r1.8' '-r1.9' -u '/v/ossp/cvs/ossp-pkg/lmtp2nntp/Makefile.in,v' 2>/dev/null --- Makefile.in 2001/08/20 12:23:00 1.8 +++ Makefile.in 2001/08/23 09:12:30 1.9 @@ -10,7 +10,7 @@ mandir = @mandir@ CC = @CC@ -CFLAGS = @CFLAGS@ +CFLAGS = @CFLAGS@ @DEFS@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ Index: ossp-pkg/lmtp2nntp/README RCS File: /v/ossp/cvs/ossp-pkg/lmtp2nntp/README,v rcsdiff -q -kk '-r1.1' '-r1.2' -u '/v/ossp/cvs/ossp-pkg/lmtp2nntp/README,v' 2>/dev/null --- README 2001/08/20 10:02:44 1.1 +++ README 2001/08/23 09:12:30 1.2 @@ -1,3 +1,8 @@ OSSP lmtp2nntp - Mail to News Gateway + Debugging: + $ ./.configure [wegen --with-dmalloc!] + $ dmalloc -l dmalloc.log + $ dmalloc debug3 + Index: ossp-pkg/lmtp2nntp/acconfig.h RCS File: /v/ossp/cvs/ossp-pkg/lmtp2nntp/Attic/acconfig.h,v co -q -kk -p'1.1' '/v/ossp/cvs/ossp-pkg/lmtp2nntp/Attic/acconfig.h,v' | diff -u /dev/null - -L'ossp-pkg/lmtp2nntp/acconfig.h' 2>/dev/null --- ossp-pkg/lmtp2nntp/acconfig.h +++ - 2024-04-24 17:09:48.546255769 +0200 @@ -0,0 +1,3 @@ + +#undef DMALLOC + Index: ossp-pkg/lmtp2nntp/argz.c RCS File: /v/ossp/cvs/ossp-pkg/lmtp2nntp/Attic/argz.c,v rcsdiff -q -kk '-r1.1' '-r1.2' -u '/v/ossp/cvs/ossp-pkg/lmtp2nntp/Attic/argz.c,v' 2>/dev/null --- argz.c 2001/07/25 15:02:57 1.1 +++ argz.c 2001/08/23 09:12:30 1.2 @@ -24,6 +24,13 @@ #include "argz.h" +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif +#if defined(HAVE_DMALLOC_H) && defined(DMALLOC) +#include "dmalloc.h" +#endif + /* Find the length of STRING, but scan at most MAXLEN characters. If no '\0' terminator is found in that many characters, return MAXLEN. */ static size_t my_strnlen(const char *string, size_t maxlen) Index: ossp-pkg/lmtp2nntp/configure.ac RCS File: /v/ossp/cvs/ossp-pkg/lmtp2nntp/configure.ac,v rcsdiff -q -kk '-r1.6' '-r1.7' -u '/v/ossp/cvs/ossp-pkg/lmtp2nntp/configure.ac,v' 2>/dev/null --- configure.ac 2001/08/21 09:35:04 1.6 +++ configure.ac 2001/08/23 09:12:30 1.7 @@ -21,6 +21,9 @@ AC_MSG_RESULT(not found) AC_MSG_ERROR([lmtp2nntp requires libstr!]) ]) + +AC_CHECK_EXTLIB([Dmalloc Library], dmalloc, dmalloc_debug, dmalloc.h, AC_DEFINE(DMALLOC)) + AC_CHECK_LIB(socket, getprotobyname) AC_CHECK_LIB(nsl, gethostbyname) AC_CHECK_FUNCS(inet_pton inet_aton) Index: ossp-pkg/lmtp2nntp/lmtp.c RCS File: /v/ossp/cvs/ossp-pkg/lmtp2nntp/Attic/lmtp.c,v rcsdiff -q -kk '-r1.14' '-r1.15' -u '/v/ossp/cvs/ossp-pkg/lmtp2nntp/Attic/lmtp.c,v' 2>/dev/null --- lmtp.c 2001/08/23 07:54:06 1.14 +++ lmtp.c 2001/08/23 09:12:30 1.15 @@ -36,6 +36,13 @@ #include "lmtp.h" +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif +#if defined(HAVE_DMALLOC_H) && defined(DMALLOC) +#include "dmalloc.h" +#endif + /* maximum LMTP protocol line length */ #define LMTP_LINE_MAXLEN 1024 Index: ossp-pkg/lmtp2nntp/lmtp2nntp.c RCS File: /v/ossp/cvs/ossp-pkg/lmtp2nntp/Attic/lmtp2nntp.c,v rcsdiff -q -kk '-r1.26' '-r1.27' -u '/v/ossp/cvs/ossp-pkg/lmtp2nntp/Attic/lmtp2nntp.c,v' 2>/dev/null --- lmtp2nntp.c 2001/08/23 08:36:53 1.26 +++ lmtp2nntp.c 2001/08/23 09:12:30 1.27 @@ -23,6 +23,12 @@ #include "shpat_match.h" /* own headers */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif +#if defined(HAVE_DMALLOC_H) && defined(DMALLOC) +#include "dmalloc.h" +#endif #include "lmtp.h" #include "nntp.h" #include "sa.h" Index: ossp-pkg/lmtp2nntp/msg.c RCS File: /v/ossp/cvs/ossp-pkg/lmtp2nntp/Attic/msg.c,v rcsdiff -q -kk '-r1.8' '-r1.9' -u '/v/ossp/cvs/ossp-pkg/lmtp2nntp/Attic/msg.c,v' 2>/dev/null --- msg.c 2001/08/23 08:36:53 1.8 +++ msg.c 2001/08/23 09:12:30 1.9 @@ -5,6 +5,13 @@ #include "argz.h" #include +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif +#if defined(HAVE_DMALLOC_H) && defined(DMALLOC) +#include "dmalloc.h" +#endif + msg_t *msg_create(void) { msg_t *msg; Index: ossp-pkg/lmtp2nntp/nntp.c RCS File: /v/ossp/cvs/ossp-pkg/lmtp2nntp/Attic/nntp.c,v rcsdiff -q -kk '-r1.14' '-r1.15' -u '/v/ossp/cvs/ossp-pkg/lmtp2nntp/Attic/nntp.c,v' 2>/dev/null --- nntp.c 2001/08/23 09:00:22 1.14 +++ nntp.c 2001/08/23 09:12:30 1.15 @@ -39,6 +39,13 @@ #include "nntp.h" #include "str.h" +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif +#if defined(HAVE_DMALLOC_H) && defined(DMALLOC) +#include "dmalloc.h" +#endif + #ifndef FALSE #define FALSE (1 != 1) #endif Index: ossp-pkg/lmtp2nntp/sa.c RCS File: /v/ossp/cvs/ossp-pkg/lmtp2nntp/Attic/sa.c,v rcsdiff -q -kk '-r1.3' '-r1.4' -u '/v/ossp/cvs/ossp-pkg/lmtp2nntp/Attic/sa.c,v' 2>/dev/null --- sa.c 2001/08/20 11:28:29 1.3 +++ sa.c 2001/08/23 09:12:30 1.4 @@ -42,7 +42,13 @@ #include #include +#ifdef HAVE_CONFIG_H #include "config.h" +#endif +#if defined(HAVE_DMALLOC_H) && defined(DMALLOC) +#include "dmalloc.h" +#endif + #include "sa.h" #if !defined(AF_LOCAL) && defined(AF_UNIX) Index: ossp-pkg/lmtp2nntp/shpat_match.c RCS File: /v/ossp/cvs/ossp-pkg/lmtp2nntp/Attic/shpat_match.c,v rcsdiff -q -kk '-r1.2' '-r1.3' -u '/v/ossp/cvs/ossp-pkg/lmtp2nntp/Attic/shpat_match.c,v' 2>/dev/null --- shpat_match.c 2001/08/12 13:49:51 1.2 +++ shpat_match.c 2001/08/23 09:12:30 1.3 @@ -49,6 +49,13 @@ #include #include +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif +#if defined(HAVE_DMALLOC_H) && defined(DMALLOC) +#include "dmalloc.h" +#endif + #include "shpat_match.h" #define EOS '\0' Index: ossp-pkg/lmtp2nntp/trace.c RCS File: /v/ossp/cvs/ossp-pkg/lmtp2nntp/Attic/trace.c,v rcsdiff -q -kk '-r1.2' '-r1.3' -u '/v/ossp/cvs/ossp-pkg/lmtp2nntp/Attic/trace.c,v' 2>/dev/null --- trace.c 2001/08/20 11:28:30 1.2 +++ trace.c 2001/08/23 09:12:30 1.3 @@ -2,6 +2,13 @@ #include #include +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif +#if defined(HAVE_DMALLOC_H) && defined(DMALLOC) +#include "dmalloc.h" +#endif + #include "trace.h" #ifndef _POSIX_PATH_MAX