Kernel/LibC: Implement super basic select
This does not really even block but it works... :D
This commit is contained in:
@@ -34,6 +34,10 @@ namespace Kernel
|
||||
virtual BAN::ErrorOr<size_t> read_impl(off_t, BAN::ByteSpan) override;
|
||||
virtual BAN::ErrorOr<size_t> write_impl(off_t, BAN::ConstByteSpan) override;
|
||||
|
||||
virtual bool can_read_impl() const override { return !m_buffer.empty(); }
|
||||
virtual bool can_write_impl() const override { return true; }
|
||||
virtual bool has_error_impl() const override { return false; }
|
||||
|
||||
private:
|
||||
Pipe(const Credentials&);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user