1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:27:35 +00:00

Kernel+LibC: Implement getsockname() syscall.

This commit is contained in:
Andreas Kling 2019-05-19 19:55:27 +02:00
parent 0eb788d641
commit 212a263f0a
6 changed files with 36 additions and 0 deletions

View file

@ -272,6 +272,8 @@ static dword handle(RegisterDump& regs, dword function, dword arg1, dword arg2,
return current->process().sys$mknod((const char*)arg1, (mode_t)arg2, (dev_t)arg3);
case Syscall::SC_writev:
return current->process().sys$writev((int)arg1, (const struct iovec*)arg2, (int)arg3);
case Syscall::SC_getsockname:
return current->process().sys$getsockname((int)arg1, (sockaddr*)arg2, (socklen_t*)arg3);
default:
kprintf("<%u> int0x82: Unknown function %u requested {%x, %x, %x}\n", current->process().pid(), function, arg1, arg2, arg3);
break;