Kernel/LibC: Implement very basic msync

This commit is contained in:
2023-11-22 22:44:06 +02:00
parent ab9954fe73
commit 60e755210c
9 changed files with 75 additions and 12 deletions

View File

@@ -61,6 +61,7 @@ __BEGIN_DECLS
#define SYS_UNLINK 58
#define SYS_READLINK 59
#define SYS_READLINKAT 60
#define SYS_MSYNC 61
__END_DECLS

View File

@@ -22,3 +22,8 @@ int munmap(void* addr, size_t len)
{
return syscall(SYS_MUNMAP, addr, len);
}
int msync(void* addr, size_t len, int flags)
{
return syscall(SYS_MSYNC, addr, len, flags);
}