cosmopolitan/tool/build/lib
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
..
apetest.c Write tests for new APE loader and fix bugs 2022-05-22 05:45:38 -07:00
asmdown.c Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
asmdown.h Improve documentation 2020-12-27 07:02:35 -08:00
buffer.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
buffer.h Get binaries closer to running without an o/s 2020-11-02 19:12:47 -08:00
buildlib.mk Make considerably more progress on AARCH64 2023-05-12 22:42:57 -07:00
case.h Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
demangle.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
demangle.h Add fixes performance and static web server 2020-10-05 23:11:49 -07:00
elfwriter.c Rewrite .zip.o file linker 2023-06-10 09:29:44 -07:00
elfwriter.h Rewrite .zip.o file linker 2023-06-10 09:29:44 -07:00
elfwriter_cargoculting.c Change license 2020-12-27 17:18:44 -08:00
elfwriter_yoink.c Get llama.com building as an aarch64 native binary 2023-05-10 04:20:47 -07:00
elfwriter_zip.c Rewrite .zip.o file linker 2023-06-10 09:29:44 -07:00
endian.h Remove some includes 2022-08-18 17:46:34 -07:00
errnos.S Make progress towards aarch64 build 2023-05-10 04:20:46 -07:00
eztls.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
eztls.h Make improvements 2022-03-16 13:40:10 -07:00
getargs.c Remove some includes 2022-08-18 17:46:34 -07:00
getargs.h Improve memory safety 2021-10-13 17:27:13 -07:00
interner.c Rewrite .zip.o file linker 2023-06-10 09:29:44 -07:00
interner.h Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
javadown.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
javadown.h finish intellisense support and sync with upstream 2021-02-03 13:50:08 -05:00
lines.c Fix some build errors 2023-06-05 15:53:44 -07:00
lines.h Add help dialog to Blinkenlights emulator 2021-02-19 17:16:17 -08:00
panel.c Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
panel.h Add minor improvements and cleanup 2020-10-27 03:39:46 -07:00
psk.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
psk.h Secure the testing infrastructure 2021-08-07 13:22:35 -07:00
stripcomponents.c Experiment with making Python go faster 2021-08-18 21:57:11 -07:00
stripcomponents.h Undiamond Python headers 2021-08-12 14:07:40 -07:00