Kernel/LibC: Implement very basic msync
This commit is contained in:
@@ -61,6 +61,7 @@ __BEGIN_DECLS
|
||||
#define SYS_UNLINK 58
|
||||
#define SYS_READLINK 59
|
||||
#define SYS_READLINKAT 60
|
||||
#define SYS_MSYNC 61
|
||||
|
||||
__END_DECLS
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user