diff options
author | Marvin Borner | 2019-11-22 22:17:54 +0100 |
---|---|---|
committer | Marvin Borner | 2019-11-22 22:17:54 +0100 |
commit | 4b178c0feb4c415be36be0e4c0def8c447ed42af (patch) | |
tree | 694f0226b419ec5b043830e12f96aa5e09c9305f /src/mlibc/stdlib/liballoc.h | |
parent | 0ba991750314310a5e53b0d8135aef5b1352b261 (diff) |
Added the most awesome c lib
Diffstat (limited to 'src/mlibc/stdlib/liballoc.h')
-rw-r--r-- | src/mlibc/stdlib/liballoc.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/mlibc/stdlib/liballoc.h b/src/mlibc/stdlib/liballoc.h new file mode 100644 index 0000000..6ed9efb --- /dev/null +++ b/src/mlibc/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 |