1 #include <inttypes.h> 2 typedef uint32_t mpers_ptr_t; 3 typedef 4 struct { 5 int64_t uptime; 6 uint64_t loads[3]; 7 uint64_t totalram; 8 uint64_t freeram; 9 uint64_t sharedram; 10 uint64_t bufferram; 11 uint64_t totalswap; 12 uint64_t freeswap; 13 uint16_t procs; 14 uint16_t pad; 15 unsigned char mpers_filler_1[4]; 16 uint64_t totalhigh; 17 uint64_t freehigh; 18 uint32_t mem_unit; 19 char _f[0]; 20 unsigned char mpers_end_filler_2[4]; 21 } ATTRIBUTE_PACKED mx32_sysinfo_t; 22 #define MPERS_mx32_sysinfo_t mx32_sysinfo_t 23