summaryrefslogtreecommitdiff
path: root/VirtualFileSystem/FullDevice.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-23 05:13:17 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-23 05:14:00 +0100
commit754037874c692769c703f86bfa7af641e1346139 (patch)
treed88a26977532a288eed2f61ef61526931713fa4f /VirtualFileSystem/FullDevice.cpp
parent19104570cc286b608f6f8c22002ed4a8965b4648 (diff)
downloadserenity-754037874c692769c703f86bfa7af641e1346139.zip
Move VFS sources into Kernel/.
Diffstat (limited to 'VirtualFileSystem/FullDevice.cpp')
-rw-r--r--VirtualFileSystem/FullDevice.cpp34
1 files changed, 0 insertions, 34 deletions
diff --git a/VirtualFileSystem/FullDevice.cpp b/VirtualFileSystem/FullDevice.cpp
deleted file mode 100644
index d9e94303fb..0000000000
--- a/VirtualFileSystem/FullDevice.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-#include "FullDevice.h"
-#include "Limits.h"
-#include <LibC/errno_numbers.h>
-#include <AK/StdLibExtras.h>
-#include <AK/kstdio.h>
-
-FullDevice::FullDevice()
- : CharacterDevice(1, 7)
-{
-}
-
-FullDevice::~FullDevice()
-{
-}
-
-bool FullDevice::can_read(Process&) const
-{
- return true;
-}
-
-ssize_t FullDevice::read(Process&, byte* buffer, size_t bufferSize)
-{
- size_t count = min(GoodBufferSize, bufferSize);
- memset(buffer, 0, count);
- return count;
-}
-
-ssize_t FullDevice::write(Process&, const byte*, size_t bufferSize)
-{
- if (bufferSize == 0)
- return 0;
- return -ENOSPC;
-}
-