Kernel/LibC: Implement basic ioctl for network addresses

This commit is contained in:
2024-02-03 01:24:55 +02:00
parent c18f72ceb9
commit e1ffbb710b
13 changed files with 132 additions and 2 deletions

View File

@@ -112,6 +112,8 @@ namespace Kernel
BAN::ErrorOr<void> chown(uid_t, gid_t);
bool has_data() const;
BAN::ErrorOr<long> ioctl(int request, void* arg);
protected:
virtual void on_close_impl() {}
@@ -138,6 +140,8 @@ namespace Kernel
virtual BAN::ErrorOr<void> chown_impl(uid_t, gid_t) { return BAN::Error::from_errno(ENOTSUP); }
virtual bool has_data_impl() const { dwarnln("nonblock not supported"); return true; }
virtual BAN::ErrorOr<long> ioctl_impl(int request, void* arg) { return BAN::Error::from_errno(ENOTSUP); }
protected:
mutable RecursivePrioritySpinLock m_lock;