mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:37:36 +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:
parent
004a630bfe
commit
66c1a9be3b
7 changed files with 11 additions and 9 deletions
|
@ -24,7 +24,7 @@ public:
|
|||
virtual ssize_t read(FileDescriptor&, byte*, ssize_t) = 0;
|
||||
virtual ssize_t write(FileDescriptor&, const byte*, ssize_t) = 0;
|
||||
virtual int ioctl(FileDescriptor&, unsigned request, unsigned arg);
|
||||
virtual KResultOr<Region*> mmap(Process&, LinearAddress preferred_laddr, size_t offset, size_t size);
|
||||
virtual KResultOr<Region*> mmap(Process&, LinearAddress preferred_laddr, size_t offset, size_t size, int prot);
|
||||
|
||||
virtual String absolute_path(FileDescriptor&) const = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue