summaryrefslogtreecommitdiff
path: root/Kernel/UnixTypes.h
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2020-09-16 12:29:48 -0400
committerAndreas Kling <kling@serenityos.org>2020-09-17 17:23:01 +0200
commitae5ba4074d86de200b08a34f0b5886a910000883 (patch)
tree3e578149e26e51a783e71fcd18f90cabe682e66e /Kernel/UnixTypes.h
parent416d470d07744592f186b65de7074f94edf39824 (diff)
downloadserenity-ae5ba4074d86de200b08a34f0b5886a910000883.zip
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.
Diffstat (limited to 'Kernel/UnixTypes.h')
-rw-r--r--Kernel/UnixTypes.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/Kernel/UnixTypes.h b/Kernel/UnixTypes.h
index 4df6475caf..f6a7862532 100644
--- a/Kernel/UnixTypes.h
+++ b/Kernel/UnixTypes.h
@@ -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