Kernel: Make NullDevice (/dev/null) seekable

This commit is contained in:
Andreas Kling 2021-08-03 10:36:48 +02:00
parent 821a6e8b4c
commit 26d7261347
Notes: sideshowbarker 2024-07-18 07:33:01 +09:00

View file

@ -30,6 +30,7 @@ private:
virtual bool can_write(const FileDescription&, size_t) const override { return true; }
virtual bool can_read(const FileDescription&, size_t) const override;
virtual StringView class_name() const override { return "NullDevice"; }
virtual bool is_seekable() const override { return true; }
};
}