mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:57:35 +00:00
LibCore: Return EBADF
on unsupported stream operations
This commit is contained in:
parent
e65767c2e7
commit
1ca62de558
6 changed files with 9 additions and 8 deletions
|
@ -70,6 +70,8 @@ private:
|
|||
|
||||
/// The base, abstract class for stream operations. This class defines the
|
||||
/// operations one can perform on every stream in LibCore.
|
||||
/// Operations without a sensible default that are unsupported by an implementation
|
||||
/// of a Stream should return EBADF as an error.
|
||||
class Stream {
|
||||
public:
|
||||
/// Reads into a buffer, with the maximum size being the size of the buffer.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue