diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-23 05:13:17 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-23 05:14:00 +0100 |
commit | 754037874c692769c703f86bfa7af641e1346139 (patch) | |
tree | d88a26977532a288eed2f61ef61526931713fa4f /VirtualFileSystem/FullDevice.cpp | |
parent | 19104570cc286b608f6f8c22002ed4a8965b4648 (diff) | |
download | serenity-754037874c692769c703f86bfa7af641e1346139.zip |
Move VFS sources into Kernel/.
Diffstat (limited to 'VirtualFileSystem/FullDevice.cpp')
-rw-r--r-- | VirtualFileSystem/FullDevice.cpp | 34 |
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; -} - |