cosmopolitan/third_party
Justine Tunney 4778cd4d27
Fix bugs in termios library and cleanup code
This change fixes an issue with the tcflow() magic numbers that was
causing bash to freeze up on Linux. While auditing termios polyfills,
several other issues were identified with XNU/BSD compatibility.

Out of an abundance of caution this change undefines as much surface
area from libc/calls/struct/termios.h as possible, so that autoconf
scripts are less likely to detect non-POSIX teletypewriter APIs that
haven't been polyfilled by Cosmopolitan.

This is a *breaking change* for your static archives in /opt/cosmos if
you use the cosmocc toolchain. That's because this change disables the
ioctl() undiamonding trick for code outside the monorepo, specifically
because it'll lead to brittle ABI breakages like this. If you're using
the cosmocc toolchain, you'll need to rebuild libraries like ncurses,
readline, etc. Yes diamonds cause bloat. To work around that, consider
using tcgetwinsize() instead of ioctl(TIOCGWINSZ) since it'll help you
avoid pulling every single ioctl-related polyfill into the linkage.

The cosmocc script was specifying -DNDEBUG for some reason. It's fixed.
2023-06-14 19:30:52 -07:00
..
aarch64 Upgrade to Cosmopolitan GCC 11.2.0 for aarch64 2023-06-05 02:07:28 -07:00
argon2 Get --ftrace working on aarch64 2023-06-05 23:35:31 -07:00
awk Validate privileged code relationships 2023-06-08 04:38:06 -07:00
bzip2 Get --ftrace working on aarch64 2023-06-05 23:35:31 -07:00
chibicc Rewrite .zip.o file linker 2023-06-10 09:29:44 -07:00
compiler_rt Make considerably more progress on AARCH64 2023-05-12 22:42:57 -07:00
ctags There must be only one clock() 2023-05-10 06:16:01 -07:00
dlmalloc Rewrite .zip.o file linker 2023-06-10 09:29:44 -07:00
double-conversion Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
finger Fix Landlock Make so it can read pattern rule vars 2022-08-13 17:23:05 -07:00
gcc Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
gdtoa Get --ftrace working on aarch64 2023-06-05 23:35:31 -07:00
getopt Introduce #include <cosmo.h> to toolchain users 2023-06-09 18:03:05 -07:00
ggml Fix stack abuse in llama.cc 2023-06-08 07:12:26 -07:00
hiredis Fix MODE=asan build regression 2023-01-08 05:47:18 -08:00
intel Fix some build errors 2023-06-05 15:53:44 -07:00
libcxx Get --ftrace working on aarch64 2023-06-05 23:35:31 -07:00
linenoise Fix bugs in termios library and cleanup code 2023-06-14 19:30:52 -07:00
lua Fix bugs in termios library and cleanup code 2023-06-14 19:30:52 -07:00
lz4cli Make progress towards aarch64 build 2023-05-10 04:20:46 -07:00
make Fix missing includes 2023-06-09 18:11:53 -07:00
maxmind Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
mbedtls Rewrite .zip.o file linker 2023-06-10 09:29:44 -07:00
musl Fix some build errors 2023-06-05 15:53:44 -07:00
nsync Validate privileged code relationships 2023-06-08 04:38:06 -07:00
puff Get GCC to mostly build with Cosmo 2023-06-09 06:41:34 -07:00
python Fix bugs in termios library and cleanup code 2023-06-14 19:30:52 -07:00
qemu Fix MODE=aarch64 build 2023-06-08 05:17:37 -07:00
quickjs Fix bugs in termios library and cleanup code 2023-06-14 19:30:52 -07:00
radpajama Introduce support for GGJT v3 file format 2023-06-03 15:46:21 -07:00
regex Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
sed Create ELF aliases for identical symbols 2023-06-06 03:33:49 -07:00
smallz4 Pay off more technical debt 2022-09-12 23:36:56 -07:00
sqlite3 Fix stack abuse in llama.cc 2023-06-08 07:12:26 -07:00
stb Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
tidy Port a lot more code to AARCH64 2023-05-14 09:37:26 -07:00
tr Fix MODE=opt build 2022-10-14 16:49:16 -07:00
unzip Fix bugs in termios library and cleanup code 2023-06-14 19:30:52 -07:00
vqsort Make progress towards aarch64 build 2023-05-10 04:20:46 -07:00
xed Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
zip Create ELF aliases for identical symbols 2023-06-06 03:33:49 -07:00
zlib Get --ftrace working on aarch64 2023-06-05 23:35:31 -07:00
third_party.mk Get radpajama to build 2023-05-13 20:44:36 -07:00