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