review/correct/cleanup posix linux PR

This commit is contained in:
Laytan committed 2024-09-30 16:00:46 +02:00
1 parent c1a67f37e6
commit 5cd1784d41
15 files changed
+265 -332

No files matched your search

+2 -10
View File
@@ -323,11 +323,7 @@ when ODIN_OS == .NetBSD {
when ODIN_OS == .Darwin || ODIN_OS == .FreeBSD || ODIN_OS == .NetBSD || ODIN_OS == .OpenBSD || ODIN_OS == .Linux {
when ODIN_OS == .Linux {
socklen_t :: distinct c.uint32_t
} else {
socklen_t :: distinct c.uint
}
socklen_t :: distinct c.uint
_sa_family_t :: distinct c.uint8_t
@@ -518,11 +514,7 @@ when ODIN_OS == .Darwin || ODIN_OS == .FreeBSD || ODIN_OS == .NetBSD || ODIN_OS
}
// The maximum backlog queue length for listen().
when ODIN_OS == .Linux {
SOMAXCONN :: 4096
} else {
SOMAXCONN :: 128
}
SOMAXCONN :: 128
when ODIN_OS == .Linux {
MSG_CTRUNC :: 0x008