Fix SO_LINGER on Apple

This commit is contained in:
Justine Tunney 2023-02-02 20:05:22 -08:00
parent 1429a7b3ef
commit cf19e3e46a
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
4 changed files with 4 additions and 3 deletions

View file

@ -665,7 +665,7 @@ syscon so SO_KEEPALIVE 9 8 8 8 8 8 # bsd consensus
syscon so SO_DONTROUTE 5 0x10 0x10 0x10 0x10 0x10 # bsd consensus syscon so SO_DONTROUTE 5 0x10 0x10 0x10 0x10 0x10 # bsd consensus
syscon so SO_BROADCAST 6 0x20 0x20 0x20 0x20 0x20 # socket is configured for broadcast messages; bsd consensus syscon so SO_BROADCAST 6 0x20 0x20 0x20 0x20 0x20 # socket is configured for broadcast messages; bsd consensus
syscon so SO_USELOOPBACK 0 0x40 0x40 0x40 0x40 0x40 # bsd consensus syscon so SO_USELOOPBACK 0 0x40 0x40 0x40 0x40 0x40 # bsd consensus
syscon so SO_LINGER 13 0x80 0x80 0x80 0x80 0x80 # takes struct linger; causes close() return value to actually mean something; bsd consensus syscon so SO_LINGER 13 0x1080 0x80 0x80 0x80 0x80 # takes struct linger; causes close() return value to actually mean something; SO_LINGER_SEC on XNU; bsd consensus
syscon so SO_DONTLINGER 0 0 0 0 0 ~0x80 # disables so_linger on windows syscon so SO_DONTLINGER 0 0 0 0 0 ~0x80 # disables so_linger on windows
syscon so SO_OOBINLINE 10 0x0100 0x0100 0x0100 0x0100 0x0100 # bsd consensus syscon so SO_OOBINLINE 10 0x0100 0x0100 0x0100 0x0100 0x0100 # bsd consensus
syscon so SO_SNDBUF 7 0x1001 0x1001 0x1001 0x1001 0x1001 # bsd consensus syscon so SO_SNDBUF 7 0x1001 0x1001 0x1001 0x1001 0x1001 # bsd consensus

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/consts/syscon.internal.inc" .include "o/libc/sysv/consts/syscon.internal.inc"
.syscon so,SO_LINGER,13,0x80,0x80,0x80,0x80,0x80 .syscon so,SO_LINGER,13,0x1080,0x80,0x80,0x80,0x80

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/consts/syscon.internal.inc" .include "o/libc/sysv/consts/syscon.internal.inc"
.syscon ioctl,TIOCINQ,0x541b,0x4004667f,0x4004667f,0x4004667f,0x4004667f,0x4004667f .syscon termios,TIOCINQ,0x541b,0x4004667f,0x4004667f,0x4004667f,0x4004667f,0x4004667f

View file

@ -80,6 +80,7 @@
"uint_least8_t" "uint_least8_t"
"uintptr_t" "uintptr_t"
"ssize_t" "ssize_t"
"time_t"
"long long int" "long long int"
"unsigned long long" "unsigned long long"
"int8_t" "int8_t"