summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wrap.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/wrap.c b/src/wrap.c
new file mode 100644
index 0000000..524d6d2
--- /dev/null
+++ b/src/wrap.c
@@ -0,0 +1,21 @@
+#include "mapalloc.h"
+
+void *malloc(size_t n)
+{
+ return map_malloc(n);
+}
+
+void *calloc(size_t n, size_t e)
+{
+ return map_calloc(n, e);
+}
+
+void *realloc(void *p, size_t n)
+{
+ return map_realloc(p, n);
+}
+
+void free(void *p)
+{
+ map_free(p);
+}