From ec769a83bde09c76bd6ad9ee7f391036dba5cd97 Mon Sep 17 00:00:00 2001 From: Kacper Date: Fri, 12 Dec 2025 15:16:01 +0100 Subject: Add clear command, add sysinfo system call --- include/sys/sysinfo.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 include/sys/sysinfo.h (limited to 'include/sys') 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 -- cgit v1.2.3