cosmopolitan/dsp/tty
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
..
altbuf.c Change license 2020-12-27 17:18:44 -08:00
config.c Validate privileged code relationships 2023-06-08 04:38:06 -07:00
describe.c Change license 2020-12-27 17:18:44 -08:00
hidecursor.c Fix bugs in termios library and cleanup code 2023-06-14 19:30:52 -07:00
ident.c Get LIBC_MEM and LIBC_STDIO building with aarch64 2023-05-10 04:20:47 -07:00
identclear.c Get LIBC_MEM and LIBC_STDIO building with aarch64 2023-05-10 04:20:47 -07:00
internal.h Do some more aarch64 fixups 2023-05-10 04:20:47 -07:00
itoa8.c Make progress towards aarch64 build 2023-05-10 04:20:46 -07:00
itoa8.h Initial import 2020-06-15 07:18:57 -07:00
kcgapalette.c Initial import 2020-06-15 07:18:57 -07:00
ktangopalette.c Initial import 2020-06-15 07:18:57 -07:00
kxtermcubesteps.c Change license 2020-12-27 17:18:44 -08:00
kxtermpalette.c Initial import 2020-06-15 07:18:57 -07:00
mpsadbw.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
quant.h Do some more aarch64 fixups 2023-05-10 04:20:47 -07:00
restore.c Change license 2020-12-27 17:18:44 -08:00
rgb2ansi.c Do some more aarch64 fixups 2023-05-10 04:20:47 -07:00
rgb2ttyf2i.c Do some more aarch64 fixups 2023-05-10 04:20:47 -07:00
rgb2ttyi2f.c Do some more aarch64 fixups 2023-05-10 04:20:47 -07:00
rgb2xterm24.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
rgb2xterm24f.c Do some more aarch64 fixups 2023-05-10 04:20:47 -07:00
savecursor.c Change license 2020-12-27 17:18:44 -08:00
send.c Change license 2020-12-27 17:18:44 -08:00
sendtitle.c Do some more aarch64 fixups 2023-05-10 04:20:47 -07:00
setansipalette.c Change license 2020-12-27 17:18:44 -08:00
setbgfg16.c Change license 2020-12-27 17:18:44 -08:00
setbgfg24.c Change license 2020-12-27 17:18:44 -08:00
setbgfg256.c Change license 2020-12-27 17:18:44 -08:00
setraw.c Make improvements 2022-04-24 10:06:05 -07:00
setrawdeadline.c Change license 2020-12-27 17:18:44 -08:00
setrawmode.c Change license 2020-12-27 17:18:44 -08:00
tty.h Get repository to build with GCC 11 2022-09-13 04:14:55 -07:00
tty.mk Get --ftrace working on aarch64 2023-06-05 23:35:31 -07:00
tty2rgb24.c Change license 2020-12-27 17:18:44 -08:00
tty2rgbf24.c Do some more aarch64 fixups 2023-05-10 04:20:47 -07:00
ttyhisto.c Do some more aarch64 fixups 2023-05-10 04:20:47 -07:00
ttymove.c Fold LIBC_BITS into LIBC_INTRIN 2022-08-11 12:13:18 -07:00
ttyquant.c Make progress towards aarch64 build 2023-05-10 04:20:46 -07:00
ttyraster.c Fold LIBC_BITS into LIBC_INTRIN 2022-08-11 12:13:18 -07:00
ttyraw.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
ttyrgb.h Initial import 2020-06-15 07:18:57 -07:00
windex-avx2.S Get --ftrace working on aarch64 2023-06-05 23:35:31 -07:00
windex-k8.c Fix Clang support 2021-02-06 00:29:09 -08:00
windex-sse4.S Get --ftrace working on aarch64 2023-06-05 23:35:31 -07:00
windex.c Make considerably more progress on AARCH64 2023-05-12 22:42:57 -07:00
windex.h Make considerably more progress on AARCH64 2023-05-12 22:42:57 -07:00
write.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
xtermname.c Change license 2020-12-27 17:18:44 -08:00
xtermname.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00