From 68915f46e66ed65ce2d32009fdfa2f5dca116842 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 10 Dec 2019 21:47:41 +0100 Subject: Some syscalls and userspace stuff sorry for the worse-getting commit messages... --- src/userspace/mlibc/stdlib/liballoc.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/userspace/mlibc/stdlib/liballoc.h (limited to 'src/userspace/mlibc/stdlib/liballoc.h') 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 + +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 -- cgit v1.2.3