Sender: rich AT phekda DOT freeserve DOT co DOT uk Message-ID: <3EA5212A.E77C6B2C@phekda.freeserve.co.uk> Date: Tue, 22 Apr 2003 12:02:02 +0100 From: Richard Dawe X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.23 i586) X-Accept-Language: de,fr MIME-Version: 1.0 To: djgpp-workers AT delorie DOT com Subject: Re: nmalloc revisited References: <10304211406 DOT AA25239 AT clio DOT rice DOT edu> <3EA41578 DOT 9E69308C AT yahoo DOT com> <4098-Tue22Apr2003105330+0300-eliz AT elta DOT co DOT il> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Hello. Eli Zaretskii wrote: > > > Date: Mon, 21 Apr 2003 11:59:53 -0400 > > From: CBFalconer [snip] > > typedef enum (DBG_OFF = 0, DBG_HOOKS = 1, DBG_VERIFY = 2, > > DBG_AUTOVERIFY = 6, DBG_CATCH = 14, > > DBG_FREENULL = 16) DBGKIND; > > > > and free the code from dependance on arbitrary magic numbers. > > I don't have access to a Unix box from where I type this: could > someone please look on Linux or SunOS/Solaris and see if they have > simple numbers, like 0, 1, 2, 3, etc. for malloc debug levels? I couldn't see any hooks in glibc 2.1.3 (on Redhat 6.2). Perhaps glibc 2.2 (e.g.: on Redhat 7, 8) or 2.3 (e.g.: on Redhat 9) do. If I boot Redhat 8 sometime, I'll take a look at it. I don't have access to Unix or any other Linuces at the moment. > > DBGKIND malloc_debug(DBGKIND level); > > This should be compatible to libmalloc.a on Unix systems, so again, > please someone look at man pages on such a system and tell what is > the prototype of malloc_debug, if there is any. glibc 2.1.3 doesn't seem to have this function. It does have mallinfo, though. Bye, Rich =] -- Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]