summaryrefslogtreecommitdiff
path: root/VirtualFileSystem/FullDevice.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-10-14 13:16:09 +0200
committerAndreas Kling <awesomekling@gmail.com>2018-10-14 13:16:09 +0200
commit9f9b4a23823a851d632a0b2e757f1232b5de5620 (patch)
tree8e17a652ebf0710822b5cee5d52e0cceb3064cd4 /VirtualFileSystem/FullDevice.h
parentfc1facf5c09a92cf49ce2b2db729cac51f6e75e2 (diff)
downloadserenity-9f9b4a23823a851d632a0b2e757f1232b5de5620.zip
Add a simple /dev/full.
Diffstat (limited to 'VirtualFileSystem/FullDevice.h')
-rw-r--r--VirtualFileSystem/FullDevice.h13
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;
+};
+