1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:08:10 +00:00

Kernel: Use Userspace<T> for the sendto syscall, and Socket implementation

Note that the data member is of type ImmutableBufferArgument, which has
no Userspace<T> usage. I left it alone for now, to be fixed in a future
change holistically for all usages.
This commit is contained in:
Brian Gianforcaro 2020-08-17 23:49:35 -07:00 committed by Andreas Kling
parent d4dae49dcd
commit 9f9b05ba0f
9 changed files with 16 additions and 13 deletions

View file

@ -202,7 +202,7 @@ KResultOr<size_t> Socket::write(FileDescription& description, size_t, const u8*
{
if (is_shut_down_for_writing())
return -EPIPE;
return sendto(description, data, size, 0, nullptr, 0);
return sendto(description, data, size, 0, {}, 0);
}
KResult Socket::shutdown(int how)