diff --git a/libc/sysv/consts.sh b/libc/sysv/consts.sh index 853b3b4fd..b8095d299 100755 --- a/libc/sysv/consts.sh +++ b/libc/sysv/consts.sh @@ -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_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_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_OOBINLINE 10 0x0100 0x0100 0x0100 0x0100 0x0100 # bsd consensus syscon so SO_SNDBUF 7 0x1001 0x1001 0x1001 0x1001 0x1001 # bsd consensus diff --git a/libc/sysv/consts/SO_LINGER.s b/libc/sysv/consts/SO_LINGER.s index 96aba599d..f3060957b 100644 --- a/libc/sysv/consts/SO_LINGER.s +++ b/libc/sysv/consts/SO_LINGER.s @@ -1,2 +1,2 @@ .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 diff --git a/libc/sysv/consts/TIOCINQ.s b/libc/sysv/consts/TIOCINQ.s index 1bb7190fe..085a2acb6 100644 --- a/libc/sysv/consts/TIOCINQ.s +++ b/libc/sysv/consts/TIOCINQ.s @@ -1,2 +1,2 @@ .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 diff --git a/tool/emacs/cosmo-c-types.el b/tool/emacs/cosmo-c-types.el index 096161cd2..f220d159f 100644 --- a/tool/emacs/cosmo-c-types.el +++ b/tool/emacs/cosmo-c-types.el @@ -80,6 +80,7 @@ "uint_least8_t" "uintptr_t" "ssize_t" + "time_t" "long long int" "unsigned long long" "int8_t"