mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user