aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChristian C <cc@localhost>2025-04-01 20:46:17 -0700
committerChristian C <cc@localhost>2025-04-01 20:46:17 -0700
commitec7436a01deb8e28743de47ad98950c914d6da2a (patch)
tree765212b89d5c9740408d3d8bda8e1daacf55890e /include
parenta18cea2fef7aa1545c9a984b60919541b26a6f84 (diff)
Global Allocator Checking
Diffstat (limited to 'include')
-rw-r--r--include/lib/mem/galloc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/lib/mem/galloc.h b/include/lib/mem/galloc.h
new file mode 100644
index 0000000..8c773cd
--- /dev/null
+++ b/include/lib/mem/galloc.h
@@ -0,0 +1,11 @@
+#ifndef INC_LIB_MEM_GALLOC_H
+#define INC_LIB_MEM_GALLOC_H
+
+#include <sys/types.h>
+
+void *g_malloc(size_t size);
+void *g_calloc(size_t n_memb, size_t size);
+void g_free(void *);
+ssize_t g_outstanding_allocations();
+
+#endif