mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:48:10 +00:00
Kernel: Rename "descriptor" to "description" where appropriate.
Now that FileDescription is called that, variables of that type should not be called "descriptor". This is kinda wordy but we'll get used to it.
This commit is contained in:
parent
1c5677032a
commit
c1bbd40b9e
17 changed files with 285 additions and 285 deletions
|
@ -46,18 +46,18 @@ bool SlavePTY::can_write(FileDescription&) const
|
|||
return m_master->can_write_from_slave();
|
||||
}
|
||||
|
||||
bool SlavePTY::can_read(FileDescription& descriptor) const
|
||||
bool SlavePTY::can_read(FileDescription& description) const
|
||||
{
|
||||
if (m_master->is_closed())
|
||||
return true;
|
||||
return TTY::can_read(descriptor);
|
||||
return TTY::can_read(description);
|
||||
}
|
||||
|
||||
ssize_t SlavePTY::read(FileDescription& descriptor, byte* buffer, ssize_t size)
|
||||
ssize_t SlavePTY::read(FileDescription& description, byte* buffer, ssize_t size)
|
||||
{
|
||||
if (m_master->is_closed())
|
||||
return 0;
|
||||
return TTY::read(descriptor, buffer, size);
|
||||
return TTY::read(description, buffer, size);
|
||||
}
|
||||
|
||||
void SlavePTY::close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue