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 --- lib/libc/sys/mount.c | 3 --- lib/libc/sys/sysinfo.c | 7 +++++++ 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 lib/libc/sys/sysinfo.c (limited to 'lib/libc/sys') diff --git a/lib/libc/sys/mount.c b/lib/libc/sys/mount.c index c42dc90e..67f2d9af 100644 --- a/lib/libc/sys/mount.c +++ b/lib/libc/sys/mount.c @@ -1,6 +1,3 @@ - - - #include // for mount #include // for __syscall_5, syscall diff --git a/lib/libc/sys/sysinfo.c b/lib/libc/sys/sysinfo.c new file mode 100644 index 00000000..5af79c60 --- /dev/null +++ b/lib/libc/sys/sysinfo.c @@ -0,0 +1,7 @@ +#include +#include + +int sysinfo(struct sysinfo *info) +{ + return syscall(sysinfo, info); +} -- cgit v1.2.3