mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:48:12 +00:00
Add basic character device support. Start with null and zero.
This commit is contained in:
parent
fa3b11ac64
commit
93556d6743
14 changed files with 157 additions and 2 deletions
13
VirtualFileSystem/NullDevice.h
Normal file
13
VirtualFileSystem/NullDevice.h
Normal file
|
@ -0,0 +1,13 @@
|
|||
#pragma once
|
||||
|
||||
#include "CharacterDevice.h"
|
||||
|
||||
class NullDevice final : public CharacterDevice {
|
||||
public:
|
||||
NullDevice();
|
||||
virtual ~NullDevice();
|
||||
|
||||
ssize_t read(byte* buffer, size_t bufferSize) override;
|
||||
ssize_t write(const byte* buffer, size_t bufferSize) override;
|
||||
};
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue