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

@@ -952,6 +952,13 @@ namespace Kernel
return TRY(inode->recvfrom(arguments));
}
BAN::ErrorOr<long> Process::sys_ioctl(int fildes, int request, void* arg)
{
LockGuard _(m_lock);
auto inode = TRY(m_open_file_descriptors.inode_of(fildes));
return TRY(inode->ioctl(request, arg));
}
BAN::ErrorOr<long> Process::sys_pipe(int fildes[2])
{
LockGuard _(m_lock);