cosmopolitan/tool/scripts
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
..
asmexpr Pay off more technical debt 2022-09-12 23:36:56 -07:00
awk1 Pay off more technical debt 2022-09-12 23:36:56 -07:00
awk2 Pay off more technical debt 2022-09-12 23:36:56 -07:00
awk3 Pay off more technical debt 2022-09-12 23:36:56 -07:00
awk4 Pay off more technical debt 2022-09-12 23:36:56 -07:00
awk5 Pay off more technical debt 2022-09-12 23:36:56 -07:00
awk6 Pay off more technical debt 2022-09-12 23:36:56 -07:00
awk7 Pay off more technical debt 2022-09-12 23:36:56 -07:00
awk8 Pay off more technical debt 2022-09-12 23:36:56 -07:00
bf Pay off more technical debt 2022-09-12 23:36:56 -07:00
bloat Pay off more technical debt 2022-09-12 23:36:56 -07:00
cosmoc++ Fix bugs in termios library and cleanup code 2023-06-14 19:30:52 -07:00
cosmocc Fix bugs in termios library and cleanup code 2023-06-14 19:30:52 -07:00
explain-deps.py Fix Landlock Make so it can read pattern rule vars 2022-08-13 17:23:05 -07:00
ezgdb Pay off more technical debt 2022-09-12 23:36:56 -07:00
find-autonomous-objects Initial import 2020-06-15 07:18:57 -07:00
fix-third-party.py Implement POSIX threads API 2022-09-05 08:27:15 -07:00
get-deps.py Pay off more technical debt 2022-09-12 23:36:56 -07:00
grep Pay off more technical debt 2022-09-12 23:36:56 -07:00
loc Pay off more technical debt 2022-09-12 23:36:56 -07:00
man2txt Change support vector to Windows 8+ 2022-09-15 03:55:05 -07:00
obj Pay off more technical debt 2022-09-12 23:36:56 -07:00
pb Pay off more technical debt 2022-09-12 23:36:56 -07:00
pe Pay off more technical debt 2022-09-12 23:36:56 -07:00
performance Pay off more technical debt 2022-09-12 23:36:56 -07:00
po Pay off more technical debt 2022-09-12 23:36:56 -07:00
powersave Pay off more technical debt 2022-09-12 23:36:56 -07:00
px Pay off more technical debt 2022-09-12 23:36:56 -07:00
re Pay off more technical debt 2022-09-12 23:36:56 -07:00
renameheader Pay off more technical debt 2022-09-12 23:36:56 -07:00
resurrect-file WIP: Correct all typos (#498) 2022-07-20 14:01:15 -07:00
wut Pay off more technical debt 2022-09-12 23:36:56 -07:00