mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
Fix SO_LINGER on Apple
This commit is contained in:
parent
1429a7b3ef
commit
cf19e3e46a
4 changed files with 4 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue