diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-04-28 22:31:31 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-04-28 22:31:31 +0200 |
commit | a104d7cc93e3c306b36227ee200d5f0ab0787dd3 (patch) | |
tree | 83d3fd109a77513cabd399786a50b03a370acba2 /Kernel/SharedMemory.cpp | |
parent | a6d407fec5b85963043521aa186fd09b1e815b5e (diff) | |
download | serenity-a104d7cc93e3c306b36227ee200d5f0ab0787dd3.zip |
Kernel: Make SharedMemory inherit from File.
Diffstat (limited to 'Kernel/SharedMemory.cpp')
-rw-r--r-- | Kernel/SharedMemory.cpp | 21 |
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(); +} |