Kernel: Rename has_hangup -> has_hungup

This commit is contained in:
2025-05-17 12:39:23 +03:00
parent 553c76ab0f
commit 0e0d7016b3
30 changed files with 39 additions and 39 deletions

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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;
}

View File

@@ -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>())
{

View File

@@ -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)