Kernel: Pass 'prot' argument to File::mmap() and act on it.

Nothing crazy, this just means that PROT_READ allocates readable regions,
and that PROT_WRITE allocates writable ones.
This commit is contained in:
Andreas Kling 2019-05-30 12:38:35 +02:00
commit 66c1a9be3b
Notes: sideshowbarker 2024-07-19 13:50:24 +09:00
7 changed files with 11 additions and 9 deletions

View file

@ -24,7 +24,7 @@ int File::ioctl(FileDescriptor&, unsigned, unsigned)
return -ENOTTY;
}
KResultOr<Region*> File::mmap(Process&, LinearAddress, size_t, size_t)
KResultOr<Region*> File::mmap(Process&, LinearAddress, size_t, size_t, int)
{
return KResult(-ENODEV);
}