This file is indexed.

/usr/include/maloc/vmem.h is in libmaloc-dev 0.2-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
/*
 * ***************************************************************************
 * MALOC = < Minimal Abstraction Layer for Object-oriented C >
 * Copyright (C) 1994--2000  Michael Holst
 * 
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation; either version 2 of the License, or (at your
 * option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 675 Mass Ave, Cambridge, MA 02139, USA.
 * 
 * rcsid="$Id: vmem.h,v 1.9 2002/10/01 21:29:45 mholst Exp $"
 * ***************************************************************************
 */

/*
 * ***************************************************************************
 * File:     vmem.h    < vmem.c >
 *
 * Purpose:  Class Vmem: A safer, object-oriented, malloc/free object.
 *
 * Author:   Michael Holst
 * ***************************************************************************
 */

#ifndef _VMEM_H_
#define _VMEM_H_

#include <maloc/maloc_base.h>

/*
 * ***************************************************************************
 * Class Vmem: Parameters and datatypes
 * ***************************************************************************
 */

/*
 * ***************************************************************************
 * Class Vmem: Definition
 * ***************************************************************************
 */

typedef struct Vmem {

    char name[80];      /* name of class we are managing malloc areas for   */

    int mallocBytes;    /* total size of all current malloc areas of class  */
    int freeBytes;      /* total size of all freed malloc areas of class    */
    int highWater;      /* high-water malloc bytemark for this class        */
    int mallocAreas;    /* total number of individual malloc areas          */

} Vmem;

/*
 * ***************************************************************************
 * Class Vmem: Inlineable methods (vmem.c)
 * ***************************************************************************
 */

#if !defined(VINLINE_MALOC)
#else /* if defined(VINLINE_MALOC) */
#endif /* if !defined(VINLINE_MALOC) */

/*
 * ***************************************************************************
 * Class Vmem: Non-Inlineable methods (vmem.c)
 * ***************************************************************************
 */

VEXTERNC int Vmem_bytesTotal(void);
VEXTERNC int Vmem_mallocBytesTotal(void);
VEXTERNC int Vmem_freeBytesTotal(void);
VEXTERNC int Vmem_highWaterTotal(void);
VEXTERNC int Vmem_mallocAreasTotal(void);
VEXTERNC void Vmem_printTotal(void);

VEXTERNC Vmem* Vmem_ctor(char *name);
VEXTERNC void Vmem_dtor(Vmem **thee);

VEXTERNC void *Vmem_malloc(Vmem *thee, int num, int size);
VEXTERNC void Vmem_free(Vmem *thee, int num, int size, void **ram);
VEXTERNC void *Vmem_realloc(Vmem *thee, int num, int size, void **ram,
    int newNum);

VEXTERNC int Vmem_bytes(Vmem *thee);
VEXTERNC int Vmem_mallocBytes(Vmem *thee);
VEXTERNC int Vmem_freeBytes(Vmem *thee);
VEXTERNC int Vmem_highWater(Vmem *thee);
VEXTERNC int Vmem_mallocAreas(Vmem *thee);
VEXTERNC void Vmem_print(Vmem *thee);

#endif /* _VMEM_H_ */