aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/lib/stdlib/liballoc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/lib/stdlib/liballoc.h')
-rw-r--r--src/kernel/lib/stdlib/liballoc.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/kernel/lib/stdlib/liballoc.h b/src/kernel/lib/stdlib/liballoc.h
new file mode 100644
index 0000000..6ed9efb
--- /dev/null
+++ b/src/kernel/lib/stdlib/liballoc.h
@@ -0,0 +1,24 @@
+#ifndef MELVIX_ALLOC_H
+#define MELVIX_ALLOC_H
+
+#include <stddef.h>
+
+#define PREFIX(func) k ## func
+
+int liballoc_lock();
+
+int liballoc_unlock();
+
+void *liballoc_alloc(size_t);
+
+int liballoc_free(void *, size_t);
+
+void *PREFIX(malloc)(size_t);
+
+void *PREFIX(realloc)(void *, size_t);
+
+void *PREFIX(calloc)(size_t, size_t);
+
+void PREFIX(free)(void *);
+
+#endif