mirror of
https://github.com/RGBCube/serenity
synced 2025-06-28 16:42:12 +00:00
Kernel: Rename FileDescription => OpenFileDescription
Dr. POSIX really calls these "open file description", not just "file description", so let's call them exactly that. :^)
This commit is contained in:
parent
dbd639a2d8
commit
4a9c18afb9
135 changed files with 680 additions and 680 deletions
|
@ -22,13 +22,13 @@ InodeWatcher::~InodeWatcher()
|
|||
(void)close();
|
||||
}
|
||||
|
||||
bool InodeWatcher::can_read(const FileDescription&, size_t) const
|
||||
bool InodeWatcher::can_read(const OpenFileDescription&, size_t) const
|
||||
{
|
||||
MutexLocker locker(m_lock);
|
||||
return !m_queue.is_empty();
|
||||
}
|
||||
|
||||
KResultOr<size_t> InodeWatcher::read(FileDescription&, u64, UserOrKernelBuffer& buffer, size_t buffer_size)
|
||||
KResultOr<size_t> InodeWatcher::read(OpenFileDescription&, u64, UserOrKernelBuffer& buffer, size_t buffer_size)
|
||||
{
|
||||
MutexLocker locker(m_lock);
|
||||
if (m_queue.is_empty())
|
||||
|
@ -81,7 +81,7 @@ KResult InodeWatcher::close()
|
|||
return KSuccess;
|
||||
}
|
||||
|
||||
String InodeWatcher::absolute_path(const FileDescription&) const
|
||||
String InodeWatcher::absolute_path(const OpenFileDescription&) const
|
||||
{
|
||||
return String::formatted("InodeWatcher:({})", m_wd_to_watches.size());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue