This file is indexed.

/usr/include/tjutils/tjheap.h is in libodin-dev 1.8.8-1.

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
/***************************************************************************
                          tjheap.h  -  description
                             -------------------
    begin                : Thu Jul 31 2003
    copyright            : (C) 2000-2014 by Thies H. Jochimsen
    email                : thies@jochimsen.de
 ***************************************************************************/

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

#ifndef TJHEAP_H
#define TJHEAP_H

#ifndef TJUTILS_CONFIG_H
#define TJUTILS_CONFIG_H
#include <tjutils/config.h>
#endif

// pointer for external trace function
typedef void (*heaptracefunction)(const char*);


class Heap {
 public:
  static void malloc_stats();
  static void set_trace_function(heaptracefunction func) {tracefunc=func;}

  static heaptracefunction tracefunc;
};


//#ifdef CUSTOM_HEAP

//#include <tjutils/tjcstd.h>

//#ifndef STL_REPLACEMENT
//#include <new>
//#endif


// overloading new/delete if a custom heap (block of static memory) is used

//#ifndef STL_REPLACEMENT
//void* operator new(size_t size) throw (std::bad_alloc);
//#else
//void* operator new(size_t size);
//#endif
//void* operator new[](size_t size);

//void operator delete(void* mptr);
//void operator delete[](void* mptr);

//#endif


#endif