1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:38:11 +00:00

Kernel: Make SharedMemory inherit from File.

This commit is contained in:
Andreas Kling 2019-04-28 22:31:31 +02:00
parent a6d407fec5
commit a104d7cc93
5 changed files with 57 additions and 20 deletions

View file

@ -67,3 +67,24 @@ KResult SharedMemory::truncate(int length)
ASSERT_NOT_REACHED();
return KResult(-ENOTIMPL);
}
String SharedMemory::absolute_path() const
{
return String::format("shm:%u", this);
}
int SharedMemory::read(Process&, byte* buffer, int buffer_size)
{
UNUSED_PARAM(buffer);
UNUSED_PARAM(buffer_size);
// FIXME: Implement.
ASSERT_NOT_REACHED();
}
int SharedMemory::write(Process&, const byte* data, int data_size)
{
UNUSED_PARAM(data);
UNUSED_PARAM(data_size);
// FIXME: Implement.
ASSERT_NOT_REACHED();
}