lib: micro-c: implement sbrk emulation and dlmalloc

This commit is contained in:
2026-02-23 18:46:02 +00:00
parent 562a729c25
commit c39e0b206a
6 changed files with 112 additions and 9 deletions

4
lib/ulibc/stdlib/abort.c Normal file
View File

@@ -0,0 +1,4 @@
void abort(void)
{
/* TODO */
}

View File

@@ -589,7 +589,15 @@ MAX_RELEASE_CHECK_RATE default: 4095 unless not HAVE_MMAP
#endif /* DARWIN */
#if defined(__mango__)
#define LACKS_SYS_TYPES_H
#include <stddef.h>
#define LACKS_SYS_TYPES_H 1
#define NO_MALLOC_STATS 1
#define HAVE_MORECORE 1
#define HAVE_MMAP 0
#define LACKS_TIME_H 1
#define LACKS_SCHED_H 1
#define LACKS_SYS_PARAM_H 1
#define MALLOC_FAILURE_ACTION
#endif
#ifndef LACKS_SYS_TYPES_H