diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-10-14 13:16:09 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-10-14 13:16:09 +0200 |
commit | 9f9b4a23823a851d632a0b2e757f1232b5de5620 (patch) | |
tree | 8e17a652ebf0710822b5cee5d52e0cceb3064cd4 /VirtualFileSystem/FullDevice.h | |
parent | fc1facf5c09a92cf49ce2b2db729cac51f6e75e2 (diff) | |
download | serenity-9f9b4a23823a851d632a0b2e757f1232b5de5620.zip |
Add a simple /dev/full.
Diffstat (limited to 'VirtualFileSystem/FullDevice.h')
-rw-r--r-- | VirtualFileSystem/FullDevice.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/VirtualFileSystem/FullDevice.h b/VirtualFileSystem/FullDevice.h new file mode 100644 index 0000000000..ca1743270a --- /dev/null +++ b/VirtualFileSystem/FullDevice.h @@ -0,0 +1,13 @@ +#pragma once + +#include "CharacterDevice.h" + +class FullDevice final : public CharacterDevice { +public: + FullDevice(); + virtual ~FullDevice(); + + ssize_t read(byte* buffer, size_t bufferSize) override; + ssize_t write(const byte* buffer, size_t bufferSize) override; +}; + |