mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:18:14 +00:00
Kernel: Use Userspace<T> for the bind syscall, and implementation
This commit is contained in:
parent
2bac7190c8
commit
02660b5d60
7 changed files with 7 additions and 7 deletions
|
@ -63,7 +63,7 @@ int Process::sys$socket(int domain, int type, int protocol)
|
|||
return fd;
|
||||
}
|
||||
|
||||
int Process::sys$bind(int sockfd, const sockaddr* address, socklen_t address_length)
|
||||
int Process::sys$bind(int sockfd, Userspace<const sockaddr*> address, socklen_t address_length)
|
||||
{
|
||||
if (!validate_read(address, address_length))
|
||||
return -EFAULT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue