aruu

[MIRROR] Actual replacement for Busybox | suckless
git clone https://git.daat.foo/aruu.git
Log | Files | Refs | README | LICENSE

sysinfo.h (649B)


      1 #ifndef SYSINFO_H
      2 #define SYSINFO_H
      3 
      4 #include <stddef.h>
      5 #include <sys/types.h>
      6 
      7 struct MemInfo {
      8   unsigned long long total;
      9   unsigned long long free;      /* not used at all */
     10   unsigned long long available; /* free plus what the kernel can take back */
     11   unsigned long long shared;
     12   unsigned long long buffers;
     13   unsigned long long cached; /* page cache and reclaimable slab */
     14   unsigned long long totalswap;
     15   unsigned long long freeswap;
     16 };
     17 
     18 int     get_uptime(long *);
     19 int     get_loads(double *);
     20 int     get_meminfo(struct MemInfo *);
     21 ssize_t get_dmesg(char *, size_t);
     22 int     clear_dmesg(void);
     23 int     set_console_level(int);
     24 
     25 #endif