cosmopolitan/tool/emacs
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
..
c.lang Introduce #include <cosmo.h> to toolchain users 2023-06-09 18:03:05 -07:00
cosmo-asm-mode.el Create ELF aliases for identical symbols 2023-06-06 03:33:49 -07:00
cosmo-c-builtins.el Rewrite .zip.o file linker 2023-06-10 09:29:44 -07:00
cosmo-c-constants.el Fiddle around with Mach-O 2023-05-20 04:13:49 -07:00
cosmo-c-keywords.el Get GCC to mostly build with Cosmo 2023-06-09 06:41:34 -07:00
cosmo-c-types.el Make some system call fixes 2023-02-12 22:16:34 -08:00
cosmo-cpp-constants.el Introduce #include <cosmo.h> to toolchain users 2023-06-09 18:03:05 -07:00
cosmo-format.el Avoid running clang-format on ggml.c 2023-05-10 14:59:33 -07:00
cosmo-platform-constants.el Update tests and CPU detection for Blink 2023-01-18 00:56:09 -08:00
cosmo-stuff.el Fix bugs in termios library and cleanup code 2023-06-14 19:30:52 -07:00
cosmo.el Add NES emulator 2020-07-02 13:46:08 -07:00
ctest-mode.el Add SSL to redbean 2021-06-24 13:20:50 -07:00
javadown.el Auto-generate some documentation 2020-12-26 02:09:07 -08:00
key.py Get GCC to mostly build with Cosmo 2023-06-09 06:41:34 -07:00
ld-script.el Make improvements 2022-05-28 00:28:09 -07:00
optinfo-mode.el Initial import 2020-06-15 07:18:57 -07:00
protobuf-mode.el Initial import 2020-06-15 07:18:57 -07:00