summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-12 15:16:01 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-12 15:16:01 +0100
commitec769a83bde09c76bd6ad9ee7f391036dba5cd97 (patch)
tree29569c1c7ae8124765b382bf51d62626230e63a3 /include
parent169daa11155988a210fac949297381743f3cb400 (diff)
Add clear command, add sysinfo system call
Diffstat (limited to 'include')
-rw-r--r--include/sys/sysinfo.h21
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