mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
devfs now correctly manages sizes of files.
This fixes a regression caused by the RAM fix a few commits ago.
This commit is contained in:
parent
ce9787a439
commit
3f50a335bb
1 changed files with 6 additions and 0 deletions
|
@ -50,6 +50,7 @@ namespace Sortix
|
|||
virtual ssize_t Write(const byte* src, size_t count);
|
||||
virtual bool IsReadable();
|
||||
virtual bool IsWritable();
|
||||
virtual bool IsType(unsigned type);
|
||||
|
||||
};
|
||||
|
||||
|
@ -85,6 +86,11 @@ namespace Sortix
|
|||
return true;
|
||||
}
|
||||
|
||||
bool DevLogTTY::IsType(unsigned type)
|
||||
{
|
||||
return type == Device::TTY || BaseClass::IsType(type);
|
||||
}
|
||||
|
||||
class DevNull : public DevStream
|
||||
{
|
||||
public:
|
||||
|
|
Loading…
Add table
Reference in a new issue