diff options
author | Justin <sw1tchbl4d3@sw1tchbl4d3.com> | 2021-05-19 11:31:43 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-19 21:33:29 +0200 |
commit | 1c3badede3183e3f649d656dc0f64e093a1cd128 (patch) | |
tree | 60b85efe49bbb3347002ab613a2018e2610383e5 /Kernel/API/Syscall.h | |
parent | 721a867c65435b62d4ba4575156ab5d4ba22af04 (diff) | |
download | serenity-1c3badede3183e3f649d656dc0f64e093a1cd128.zip |
Kernel: Add statvfs & fstatvfs Syscalls
These syscalls fill a statvfs struct with various data
about the mount on the VFS.
Diffstat (limited to 'Kernel/API/Syscall.h')
-rw-r--r-- | Kernel/API/Syscall.h | 10 |
1 files changed, 9 insertions, 1 deletions
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(); |