1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:57:44 +00:00

Kernel: Fix a bad printf, and stub out SO_ERROR a bit more fully

links requests SO_ERROR, so in not supporting it, things were unhappy.
Supporting this properly looks a little messy. I guess Socket will need
an m_error member it sets everywhere it returns an error. Or Syscall
could set it, perhaps, but I don't know if that's the right thing to
do, so let's just stub this for now and file a bug.
This commit is contained in:
Robin Burchell 2019-05-29 21:59:50 +02:00 committed by Andreas Kling
parent 3ffb2ad4e0
commit a906098579
2 changed files with 10 additions and 1 deletions

View file

@ -335,6 +335,8 @@ struct pollfd {
#define SO_RCVTIMEO 1
#define SO_SNDTIMEO 2
#define SO_KEEPALIVE 3
#define SO_ERROR 4
#define IPPROTO_ICMP 1
#define IPPROTO_TCP 6