1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 22:17:43 +00:00

Kernel+LibC: Stub out SO_{SND_RCV}BUF

This commit is contained in:
AnotherTest 2021-01-19 01:33:23 +03:30 committed by Andreas Kling
parent 2db4ab80a2
commit 1e79c04616
3 changed files with 10 additions and 0 deletions

View file

@ -374,6 +374,10 @@ KResult LocalSocket::getsockopt(FileDescription& description, int level, int opt
return EFAULT;
switch (option) {
case SO_SNDBUF:
TODO();
case SO_RCVBUF:
TODO();
case SO_PEERCRED: {
if (size < sizeof(ucred))
return EINVAL;

View file

@ -512,6 +512,8 @@ enum {
SO_TYPE,
SO_ERROR,
SO_PEERCRED,
SO_RCVBUF,
SO_SNDBUF,
SO_REUSEADDR,
SO_BINDTODEVICE,
SO_KEEPALIVE,