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.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/kernel/lib/stdlib/liballoc.h b/src/kernel/lib/stdlib/liballoc.h
index 6ed9efb..37a1624 100644
--- a/src/kernel/lib/stdlib/liballoc.h
+++ b/src/kernel/lib/stdlib/liballoc.h
@@ -3,8 +3,6 @@
#include <stddef.h>
-#define PREFIX(func) k ## func
-
int liballoc_lock();
int liballoc_unlock();
@@ -13,12 +11,20 @@ void *liballoc_alloc(size_t);
int liballoc_free(void *, size_t);
-void *PREFIX(malloc)(size_t);
+void *kmalloc(size_t);
+
+void *krealloc(void *, size_t);
+
+void *kcalloc(size_t, size_t);
+
+void kfree(void *);
+
+void *umalloc(size_t);
-void *PREFIX(realloc)(void *, size_t);
+void *urealloc(void *, size_t);
-void *PREFIX(calloc)(size_t, size_t);
+void *ucalloc(size_t, size_t);
-void PREFIX(free)(void *);
+void ufree(void *);
#endif