home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / n / bind / bind-4.001 / bind-4~ / bind-4.9.3-BETA9 / named / dmalloc.h < prev    next >
C/C++ Source or Header  |  1993-09-08  |  3KB  |  69 lines

  1. /* dmalloc - debugging layer on top of malloc
  2.  * vix 22mar92 [written]
  3.  *
  4.  * $Id: dmalloc.h,v 4.9.1.2 1993/09/08 00:01:17 vixie Exp $
  5.  */
  6.  
  7. /*
  8.  * ++Copyright++
  9.  * -
  10.  * Copyright (c) 
  11.  *    The Regents of the University of California.  All rights reserved.
  12.  * 
  13.  * Redistribution and use in source and binary forms, with or without
  14.  * modification, are permitted provided that the following conditions
  15.  * are met:
  16.  * 1. Redistributions of source code must retain the above copyright
  17.  *    notice, this list of conditions and the following disclaimer.
  18.  * 2. Redistributions in binary form must reproduce the above copyright
  19.  *    notice, this list of conditions and the following disclaimer in the
  20.  *    documentation and/or other materials provided with the distribution.
  21.  * 3. All advertising materials mentioning features or use of this software
  22.  *    must display the following acknowledgement:
  23.  *     This product includes software developed by the University of
  24.  *     California, Berkeley and its contributors.
  25.  * 4. Neither the name of the University nor the names of its contributors
  26.  *    may be used to endorse or promote products derived from this software
  27.  *    without specific prior written permission.
  28.  * 
  29.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  30.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  31.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  32.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  33.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  34.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  35.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  36.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  37.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  38.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  39.  * SUCH DAMAGE.
  40.  * -
  41.  * Portions Copyright (c) 1993 by Digital Equipment Corporation.
  42.  * 
  43.  * Permission to use, copy, modify, and distribute this software for any
  44.  * purpose with or without fee is hereby granted, provided that the above
  45.  * copyright notice and this permission notice appear in all copies, and that
  46.  * the name of Digital Equipment Corporation not be used in advertising or
  47.  * publicity pertaining to distribution of the document or software without
  48.  * specific, written prior permission.
  49.  * 
  50.  * THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL
  51.  * WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
  52.  * OF MERCHANTABILITY AND FITNESS.   IN NO EVENT SHALL DIGITAL EQUIPMENT
  53.  * CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  54.  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  55.  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
  56.  * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  57.  * SOFTWARE.
  58.  * -
  59.  * --Copyright--
  60.  */
  61.  
  62. #define    malloc(s)    dmalloc(__FILE__, __LINE__, s)
  63. #define    free(p)        dfree(__FILE__, __LINE__, p)
  64. #define    calloc(n, s)    dcalloc(__FILE__, __LINE__, n, s)
  65. #define    realloc(p, s)    drealloc(__FILE__, __LINE__, p, s)
  66.  
  67. char *dmalloc(), *dcalloc(), *drealloc();
  68. void dfree(), dmallocstats();
  69.