mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 18:07:35 +00:00
Kernel+LibC: Stub out SO_{SND_RCV}BUF
This commit is contained in:
parent
2db4ab80a2
commit
1e79c04616
3 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -512,6 +512,8 @@ enum {
|
|||
SO_TYPE,
|
||||
SO_ERROR,
|
||||
SO_PEERCRED,
|
||||
SO_RCVBUF,
|
||||
SO_SNDBUF,
|
||||
SO_REUSEADDR,
|
||||
SO_BINDTODEVICE,
|
||||
SO_KEEPALIVE,
|
||||
|
|
|
@ -103,6 +103,8 @@ enum {
|
|||
SO_TYPE,
|
||||
SO_ERROR,
|
||||
SO_PEERCRED,
|
||||
SO_RCVBUF,
|
||||
SO_SNDBUF,
|
||||
SO_REUSEADDR,
|
||||
SO_BINDTODEVICE,
|
||||
SO_KEEPALIVE,
|
||||
|
@ -119,6 +121,8 @@ enum {
|
|||
#define SO_KEEPALIVE SO_KEEPALIVE
|
||||
#define SO_TIMESTAMP SO_TIMESTAMP
|
||||
#define SO_BROADCAST SO_BROADCAST
|
||||
#define SO_SNDBUF SO_SNDBUF
|
||||
#define SO_RCVBUF SO_RCVBUF
|
||||
|
||||
enum {
|
||||
SCM_TIMESTAMP,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue