diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-12 15:16:01 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-12 15:16:01 +0100 |
| commit | ec769a83bde09c76bd6ad9ee7f391036dba5cd97 (patch) | |
| tree | 29569c1c7ae8124765b382bf51d62626230e63a3 /lib/libc/sys | |
| parent | 169daa11155988a210fac949297381743f3cb400 (diff) | |
Add clear command, add sysinfo system call
Diffstat (limited to 'lib/libc/sys')
| -rw-r--r-- | lib/libc/sys/mount.c | 3 | ||||
| -rw-r--r-- | lib/libc/sys/sysinfo.c | 7 |
2 files changed, 7 insertions, 3 deletions
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 <sys/mount.h> // for mount #include <syscall.h> // 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 <sys/sysinfo.h> +#include <syscall.h> + +int sysinfo(struct sysinfo *info) +{ + return syscall(sysinfo, info); +} |
