diff options
| author | sumuel <samuel@yakubos.org> | 2026-08-17 20:44:55 +0000 |
|---|---|---|
| committer | sumuel <samuel@yakubos.org> | 2026-08-17 20:44:55 +0000 |
| commit | 76424950e373d3b04ac3dd13019151bfba3e8423 (patch) | |
| tree | 4c3cfdbda039e592b9186be3e28f8d7cfd439e8a /src/detection/memory/memory_sunos.c | |
Add the files
Diffstat (limited to 'src/detection/memory/memory_sunos.c')
| -rw-r--r-- | src/detection/memory/memory_sunos.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/detection/memory/memory_sunos.c b/src/detection/memory/memory_sunos.c new file mode 100644 index 0000000..7dfdeab --- /dev/null +++ b/src/detection/memory/memory_sunos.c @@ -0,0 +1,9 @@ +#include "memory.h" +#include <unistd.h> + +const char* ffDetectMemory(FFMemoryResult* ram) { + ram->bytesTotal = (uint64_t) sysconf(_SC_PHYS_PAGES) * instance.state.platform.sysinfo.pageSize; + ram->bytesUsed = ram->bytesTotal - (uint64_t) sysconf(_SC_AVPHYS_PAGES) * instance.state.platform.sysinfo.pageSize; + + return NULL; +} |