Kernel: Implement SYS_SYNC and add sync executable to userspace

You can (and have to) manually sync disk after writes to it.
This commit is contained in:
2023-09-11 01:26:27 +03:00
parent b0c22b61ec
commit 5fae3cec2a
14 changed files with 84 additions and 3 deletions

View File

@@ -183,6 +183,11 @@ int chdir(const char* path)
return syscall(SYS_SET_PWD, path);
}
void sync(void)
{
syscall(SYS_SYNC);
}
pid_t getpid(void)
{
return syscall(SYS_GET_PID);