Kernel: Rename has_hangup -> has_hungup
This commit is contained in:
@@ -73,7 +73,7 @@ namespace Kernel::ACPI
|
||||
bool can_read_impl() const override { return true; }
|
||||
bool can_write_impl() const override { return false; }
|
||||
bool has_error_impl() const override { return false; }
|
||||
bool has_hangup_impl() const override { return false; }
|
||||
bool has_hungup_impl() const override { return false; }
|
||||
|
||||
private:
|
||||
BatteryInfoInode(AML::Namespace& acpi_namespace, AML::Scope&& battery_path, AML::NameString&& method, size_t index, ino_t ino, const TmpInodeInfo& info)
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace Kernel
|
||||
CHECK_EVENT_BIT(EPOLLIN, can_read);
|
||||
CHECK_EVENT_BIT(EPOLLOUT, can_write);
|
||||
CHECK_EVENT_BIT(EPOLLERR, has_error);
|
||||
CHECK_EVENT_BIT(EPOLLHUP, has_hangup);
|
||||
CHECK_EVENT_BIT(EPOLLHUP, has_hungup);
|
||||
#undef CHECK_EVENT_BIT
|
||||
|
||||
if (events == 0)
|
||||
|
||||
@@ -250,10 +250,10 @@ namespace Kernel
|
||||
return has_error_impl();
|
||||
}
|
||||
|
||||
bool Inode::has_hangup() const
|
||||
bool Inode::has_hungup() const
|
||||
{
|
||||
LockGuard _(m_mutex);
|
||||
return has_hangup_impl();
|
||||
return has_hungup_impl();
|
||||
}
|
||||
|
||||
BAN::ErrorOr<long> Inode::ioctl(int request, void* arg)
|
||||
|
||||
@@ -272,7 +272,7 @@ namespace Kernel
|
||||
return m_send_window.data_size < m_send_window.buffer->size();
|
||||
}
|
||||
|
||||
bool TCPSocket::has_hangup_impl() const
|
||||
bool TCPSocket::has_hungup_impl() const
|
||||
{
|
||||
return m_has_connected && m_state != State::Established;
|
||||
}
|
||||
|
||||
@@ -301,7 +301,7 @@ namespace Kernel
|
||||
return true;
|
||||
}
|
||||
|
||||
bool UnixDomainSocket::has_hangup_impl() const
|
||||
bool UnixDomainSocket::has_hungup_impl() const
|
||||
{
|
||||
if (m_info.has<ConnectionInfo>())
|
||||
{
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace Kernel
|
||||
bool can_read_impl() const override { return false; }
|
||||
bool can_write_impl() const override { return false; }
|
||||
bool has_error_impl() const override { return false; }
|
||||
bool has_hangup_impl() const override { return false; }
|
||||
bool has_hungup_impl() const override { return false; }
|
||||
|
||||
private:
|
||||
DevTTY(mode_t mode, uid_t uid, gid_t gid)
|
||||
|
||||
Reference in New Issue
Block a user