unmake str as submodule

This commit is contained in:
2025-03-19 21:57:27 +02:00
parent 3ecd88fe72
commit cf8b57cd57
6 changed files with 1175 additions and 14 deletions

View File

@@ -4,15 +4,22 @@
#include "logger.h"
#include "types.h"
static
str read_memory_maps_self() {
void hi_clear_memreg(struct sc_array_memreg *regions)
{
MemoryRegions *reg;
sc_array_foreach(regions, *reg) {
}
}
HiloadResult read_memory_maps_self(struct sc_array_memreg *regions) {
str memory_str = str_null;
HiloadResult res = read_stream_to_str(&memory_str, "/proc/self/maps");
if (res == HILOAD_FAIL)
return str_null;
return HILOAD_FAIL;
sc_log_debug("Memory Map\n-- /proc/self/maps:\n%s\n", str_ptr(memory_str));
return memory_str;
return HILOAD_OK;
}