tudocomp
– The TU Dortmund Compression Framework
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Functions
_
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
v
w
z
Variables
+
Typedefs
b
c
d
f
i
l
m
n
o
p
q
s
u
v
Enumerations
Enumerator
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
+
Variables
_
a
b
c
d
e
g
h
i
l
m
n
o
p
r
s
t
u
w
x
y
+
Typedefs
a
c
d
e
h
i
k
l
n
p
r
s
t
v
Enumerations
+
Related Functions
a
b
d
g
i
l
o
s
u
+
Files
File List
+
File Members
+
All
_
a
d
f
g
i
l
m
o
p
s
t
u
w
+
Functions
_
f
o
u
Variables
Typedefs
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
malloc.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#ifndef _GNU_SOURCE
4
#define _GNU_SOURCE
5
#endif
6
7
#include <cstdlib>
8
9
#ifndef STATS_DISABLED
10
12
namespace
malloc_callback {
13
void
on_alloc(
size_t
);
14
void
on_free(
size_t
);
15
}
17
18
#endif
19
20
#ifndef __CYGWIN__ // this does not work in Cygwin
21
#ifndef __MACH__ // Temporary disable on OS X
22
23
extern
"C"
void
*
__libc_malloc
(
size_t
);
24
extern
"C"
void
__libc_free
(
void
*);
25
extern
"C"
void
*
__libc_realloc
(
void
*,
size_t
);
26
27
#endif
28
#endif
__libc_free
void __libc_free(void *)
__libc_malloc
void * __libc_malloc(size_t)
__libc_realloc
void * __libc_realloc(void *, size_t)
include
tudocomp_stat
malloc.hpp
Generated by
1.8.13