mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:37:34 +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:
parent
416d470d07
commit
ae5ba4074d
2 changed files with 28 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue