From 1c3badede3183e3f649d656dc0f64e093a1cd128 Mon Sep 17 00:00:00 2001 From: Justin Date: Wed, 19 May 2021 11:31:43 +0200 Subject: Kernel: Add statvfs & fstatvfs Syscalls These syscalls fill a statvfs struct with various data about the mount on the VFS. --- Kernel/API/Syscall.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Kernel/API/Syscall.h') diff --git a/Kernel/API/Syscall.h b/Kernel/API/Syscall.h index 80f6ce9747..6d9edf4247 100644 --- a/Kernel/API/Syscall.h +++ b/Kernel/API/Syscall.h @@ -22,6 +22,7 @@ struct timespec; struct sockaddr; struct siginfo; struct stat; +struct statvfs; typedef u32 socklen_t; } @@ -177,7 +178,9 @@ namespace Kernel { S(anon_create) \ S(msyscall) \ S(readv) \ - S(emuctl) + S(emuctl) \ + S(statvfs) \ + S(fstatvfs) namespace Syscall { @@ -458,6 +461,11 @@ struct SC_inode_watcher_add_watch_params { u32 event_mask; }; +struct SC_statvfs_params { + StringArgument path; + struct statvfs* buf; +}; + void initialize(); int sync(); -- cgit v1.2.3