Working port of Little FS
This commit is contained in:
9
kernel/std/include/stdlib.h
Normal file
9
kernel/std/include/stdlib.h
Normal file
@ -0,0 +1,9 @@
|
||||
#ifndef STD_STDLIB_H_
|
||||
#define STD_STDLIB_H_
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
void *malloc(size_t size);
|
||||
void free(void *ptr);
|
||||
|
||||
#endif // STD_STDLIB_H_
|
10
kernel/std/stdlib.c
Normal file
10
kernel/std/stdlib.c
Normal file
@ -0,0 +1,10 @@
|
||||
#include <stdlib.h>
|
||||
#include "dlmalloc/malloc.h"
|
||||
|
||||
void *malloc(size_t size) {
|
||||
return dlmalloc(size);
|
||||
}
|
||||
|
||||
void free(void *ptr) {
|
||||
dlfree(ptr);
|
||||
}
|
Reference in New Issue
Block a user