summaryrefslogtreecommitdiff
path: root/Kernel/SharedMemory.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-04-28 22:31:31 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-04-28 22:31:31 +0200
commita104d7cc93e3c306b36227ee200d5f0ab0787dd3 (patch)
tree83d3fd109a77513cabd399786a50b03a370acba2 /Kernel/SharedMemory.cpp
parenta6d407fec5b85963043521aa186fd09b1e815b5e (diff)
downloadserenity-a104d7cc93e3c306b36227ee200d5f0ab0787dd3.zip
Kernel: Make SharedMemory inherit from File.
Diffstat (limited to 'Kernel/SharedMemory.cpp')
-rw-r--r--Kernel/SharedMemory.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/Kernel/SharedMemory.cpp b/Kernel/SharedMemory.cpp
index c2239624eb..698efbf8db 100644
--- a/Kernel/SharedMemory.cpp
+++ b/Kernel/SharedMemory.cpp
@@ -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();
+}