unmake str as submodule
This commit is contained in:
15
src/memory.c
15
src/memory.c
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user