Kernel/LibC: Implement getsockname for ipv4 sockets

This commit is contained in:
2024-06-17 20:54:45 +03:00
parent 511fc870a1
commit cad55a4da5
11 changed files with 64 additions and 1 deletions

View File

@@ -62,3 +62,8 @@ int socket(int domain, int type, int protocol)
{
return syscall(SYS_SOCKET, domain, type, protocol);
}
int getsockname(int socket, struct sockaddr* __restrict address, socklen_t* __restrict address_len)
{
return syscall(SYS_GETSOCKNAME, socket, address, address_len);
}