diff options
Diffstat (limited to 'include/sys/sysinfo.h')
| -rw-r--r-- | include/sys/sysinfo.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/sys/sysinfo.h b/include/sys/sysinfo.h new file mode 100644 index 00000000..dc9ac04b --- /dev/null +++ b/include/sys/sysinfo.h @@ -0,0 +1,21 @@ +#ifndef __SYS_SYSINFO_H +#define __SYS_SYSINFO_H + +struct sysinfo { + long uptime; + unsigned long loads[3]; + unsigned long totalram; + unsigned long freeram; + unsigned long sharedram; + unsigned long bufferram; + unsigned long totalswap; + unsigned long freeswap; + unsigned short procs; + unsigned long totalhigh; + unsigned long freehigh; + unsigned int mem_unit; +}; + +int sysinfo(struct sysinfo *); + +#endif |
