mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-04-25 14:04:02 +00:00
Kernel: Memory-mapped files now have the absolute path as their name.
It's generated when the mapping is first created, so it won't update if the file moves. Maybe that's something we should support, too.
This commit is contained in:
@@ -89,7 +89,7 @@ int SharedMemory::write(FileDescriptor&, const byte* data, int data_size)
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
KResultOr<Region*> SharedMemory::mmap(Process& process, LinearAddress laddr, size_t offset, size_t size, int prot)
|
||||
KResultOr<Region*> SharedMemory::mmap(Process& process, FileDescriptor&, LinearAddress laddr, size_t offset, size_t size, int prot)
|
||||
{
|
||||
if (!vmo())
|
||||
return KResult(-ENODEV);
|
||||
|
||||
Reference in New Issue
Block a user