OSSP CVS Repository

ossp - Check-in [753]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 753
Date: 2001-Aug-23 11:12:30 (local)
2001-Aug-23 09:12:30 (UTC)
User:rse
Branch:
Comment: Add DMalloc support
Tickets:
Inspections:
Files:
ossp-pkg/lmtp2nntp/.configure      1.3 -> 1.4     1 inserted, 0 deleted
ossp-pkg/lmtp2nntp/.dmallocrc      added-> 1.1
ossp-pkg/lmtp2nntp/Makefile.in      1.8 -> 1.9     1 inserted, 1 deleted
ossp-pkg/lmtp2nntp/README      1.1 -> 1.2     5 inserted, 0 deleted
ossp-pkg/lmtp2nntp/acconfig.h      added-> 1.1
ossp-pkg/lmtp2nntp/argz.c      1.1 -> 1.2     7 inserted, 0 deleted
ossp-pkg/lmtp2nntp/configure.ac      1.6 -> 1.7     3 inserted, 0 deleted
ossp-pkg/lmtp2nntp/lmtp.c      1.14 -> 1.15     7 inserted, 0 deleted
ossp-pkg/lmtp2nntp/lmtp2nntp.c      1.26 -> 1.27     6 inserted, 0 deleted
ossp-pkg/lmtp2nntp/msg.c      1.8 -> 1.9     7 inserted, 0 deleted
ossp-pkg/lmtp2nntp/nntp.c      1.14 -> 1.15     7 inserted, 0 deleted
ossp-pkg/lmtp2nntp/sa.c      1.3 -> 1.4     6 inserted, 0 deleted
ossp-pkg/lmtp2nntp/shpat_match.c      1.2 -> 1.3     7 inserted, 0 deleted
ossp-pkg/lmtp2nntp/trace.c      1.2 -> 1.3     7 inserted, 0 deleted

ossp-pkg/lmtp2nntp/.configure 1.3 -> 1.4

--- .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


ossp-pkg/lmtp2nntp/.dmallocrc -> 1.1

*** /dev/null    Sat Nov 23 01:37:08 2024
--- -    Sat Nov 23 01:37:08 2024
***************
*** 0 ****
--- 1,20 ----
+ ##
+ ##  Dmalloc Init Script for use with GNU Pth
+ ##  Copyright (c) 1999-2001 Ralf S. Engelschall <rse@engelschall.com>
+ ##
+ 
+ # 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
+ 


ossp-pkg/lmtp2nntp/Makefile.in 1.8 -> 1.9

--- 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@
 


ossp-pkg/lmtp2nntp/README 1.1 -> 1.2

--- 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
+


ossp-pkg/lmtp2nntp/acconfig.h -> 1.1

*** /dev/null    Sat Nov 23 01:37:08 2024
--- -    Sat Nov 23 01:37:08 2024
***************
*** 0 ****
--- 1,3 ----
+ 
+ #undef DMALLOC
+ 


ossp-pkg/lmtp2nntp/argz.c 1.1 -> 1.2

--- 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)


ossp-pkg/lmtp2nntp/configure.ac 1.6 -> 1.7

--- 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)


ossp-pkg/lmtp2nntp/lmtp.c 1.14 -> 1.15

--- 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
 


ossp-pkg/lmtp2nntp/lmtp2nntp.c 1.26 -> 1.27

--- 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"


ossp-pkg/lmtp2nntp/msg.c 1.8 -> 1.9

--- 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 <stdio.h>
 
+#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;


ossp-pkg/lmtp2nntp/nntp.c 1.14 -> 1.15

--- 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


ossp-pkg/lmtp2nntp/sa.c 1.3 -> 1.4

--- 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 <sys/socket.h>
 #include <arpa/inet.h>
 
+#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)


ossp-pkg/lmtp2nntp/shpat_match.c 1.2 -> 1.3

--- 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 <string.h>
 #include <stdio.h>
 
+#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'


ossp-pkg/lmtp2nntp/trace.c 1.2 -> 1.3

--- 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 <errno.h>
 #include <limits.h>
 
+#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

CVSTrac 2.0.1