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

LibC: Convert SO_ constants to enum

I want to add another entry to this list and don't want to
have to think of a number for it.
This commit is contained in:
Nico Weber 2020-09-16 12:29:48 -04:00 committed by Andreas Kling
parent 416d470d07
commit ae5ba4074d
2 changed files with 28 additions and 15 deletions

View file

@ -462,13 +462,16 @@ struct pollfd {
#define SOL_SOCKET 1
#define SO_RCVTIMEO 1
#define SO_SNDTIMEO 2
#define SO_ERROR 4
#define SO_PEERCRED 5
#define SO_REUSEADDR 6
#define SO_BINDTODEVICE 7
#define SO_KEEPALIVE 9
enum {
SO_RCVTIMEO,
SO_SNDTIMEO,
SO_TYPE,
SO_ERROR,
SO_PEERCRED,
SO_REUSEADDR,
SO_BINDTODEVICE,
SO_KEEPALIVE,
};
#define IPPROTO_IP 0
#define IPPROTO_ICMP 1