mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
Kernel: Add statvfs & fstatvfs Syscalls
These syscalls fill a statvfs struct with various data about the mount on the VFS.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user