1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:48:12 +00:00

Add a simple /dev/full.

This commit is contained in:
Andreas Kling 2018-10-14 13:16:09 +02:00
parent fc1facf5c0
commit 9f9b4a2382
6 changed files with 85 additions and 0 deletions

View file

@ -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;
};