cosmopolitan/test/libc/fmt
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
..
atoi_test.c Greatly expand system() shell code features 2022-10-11 21:30:31 -07:00
basename_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
dirname_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
fmt_test.c Fix printf precision/field width being limited by internal buffer size (#799) 2023-04-04 14:16:34 -04:00
formatbinary64_test.c Unbloat the build 2022-08-11 00:15:29 -07:00
formatflex64_test.c Unbloat the build 2022-08-11 00:15:29 -07:00
formathex64_test.c Unbloat the build 2022-08-11 00:15:29 -07:00
formatint64_test.c Do code cleanup use duff device linenoise i/o 2022-04-22 18:56:52 -07:00
formatint64thousands_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
formatoctal32_test.c Do code cleanup use duff device linenoise i/o 2022-04-22 18:56:52 -07:00
formatoctal64_test.c Polish redbean serialization 2022-04-29 06:10:10 -07:00
fprintf_test.c Fix vfprintf and derived functions not handling write errors (#798) 2023-03-31 09:57:29 -04:00
imaxdiv_test.c Add imaxdiv, wcscoll, getdtablesize (#639) 2022-10-05 07:14:58 -07:00
itoa64radix16_test.c Change license 2020-12-27 17:18:44 -08:00
joinpaths_test.c Make improvements 2022-07-21 03:36:42 -07:00
lengthuint64_test.c Create ELF aliases for identical symbols 2023-06-06 03:33:49 -07:00
palandprintf_test.c Fix bugs in termios library and cleanup code 2023-06-14 19:30:52 -07:00
printf_uppercase_e_static_yoink_test.c Fix PFLINK mechanism for uppercase float conversion specifiers (#796) 2023-03-29 22:18:59 -04:00
printf_uppercase_f_static_yoink_test.c Fix PFLINK mechanism for uppercase float conversion specifiers (#796) 2023-03-29 22:18:59 -04:00
printf_uppercase_g_static_yoink_test.c Fix PFLINK mechanism for uppercase float conversion specifiers (#796) 2023-03-29 22:18:59 -04:00
sizetol_test.c Make improvements 2022-08-15 15:20:36 -07:00
sleb128_test.c Productionize new APE loader and more 2021-10-02 08:27:03 -07:00
snprintf_test.c Fix printf precision/field width being limited by internal buffer size (#799) 2023-04-04 14:16:34 -04:00
sprintf_s.inc Further refine printf long double change (#66) 2021-02-27 13:30:17 -08:00
sprintf_s_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
sscanf_test.c Fix scanf x specifier with string of 0 (#793) 2023-04-15 06:25:35 -07:00
strerror_r_test.c Fold LIBC_BITS into LIBC_INTRIN 2022-08-11 12:13:18 -07:00
stripexts_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
test.mk Fix vfprintf and derived functions not handling write errors (#798) 2023-03-31 09:57:29 -04:00
timevaltofiletime_test.c Get more Python tests passing (#141) 2021-08-16 15:26:31 -07:00
uleb64_test.c Add Compress() and Uncompress() to redbean 2022-05-16 16:49:20 -07:00
uleb128_test.c Productionize new APE loader and more 2021-10-02 08:27:03 -07:00
zleb64_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00