cosmopolitan/tool/net
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
..
demo FIx link in gensvg demo (#723) 2023-01-28 09:12:13 -08:00
tiny Fix bugs with recent change 2022-04-16 10:40:23 -07:00
.init.lua Add SSL to redbean 2021-06-24 13:20:50 -07:00
counters.inc Make fixes and improvements 2022-10-19 07:19:19 -07:00
definitions.lua Make improvements 2023-06-03 08:12:22 -07:00
dig.c Restart CI for New Technology and UBSAN hunting 2022-03-21 04:32:57 -07:00
echo.c Make improvements 2022-11-07 02:26:06 -08:00
favicon.ico Make major improvements to redbean and libraries 2021-04-18 12:34:15 -07:00
fetch.inc Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
help.txt Fix bugs in termios library and cleanup code 2023-06-14 19:30:52 -07:00
largon2.c WIP: Correct all typos (#498) 2022-07-20 14:01:15 -07:00
lfinger.c Add tcp syn packet fingerprinting to redbean 2022-07-17 02:43:49 -07:00
lfinger.h Add tcp syn packet fingerprinting to redbean 2022-07-17 02:43:49 -07:00
lfuncs.c Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
lfuncs.h Make improvements 2023-06-03 08:12:22 -07:00
ljson.c Rewrite .zip.o file linker 2023-06-10 09:29:44 -07:00
ljson.h Further improve JSON serialization 2022-07-11 23:06:49 -07:00
lmaxmind.c Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
lpath.c Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
lpath.h Make improvements 2022-07-21 03:36:42 -07:00
lre.c Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
lsqlite3.c Fix redbean SQLite to report results on failure to open db (#760) 2023-03-05 14:26:56 -08:00
luacheck.h Run clang-format on most sources 2023-04-27 05:44:32 -07:00
net.mk Validate privileged code relationships 2023-06-08 04:38:06 -07:00
redbean-original.c Remove plenty of makefile misconfigurations 2022-07-21 09:20:59 -07:00
redbean-static.c Remove plenty of makefile misconfigurations 2022-07-21 09:20:59 -07:00
redbean-unsecure.c Remove plenty of makefile misconfigurations 2022-07-21 09:20:59 -07:00
redbean.c Fix bugs in termios library and cleanup code 2023-06-14 19:30:52 -07:00
redbean.png Make improvements 2020-09-14 00:02:34 -07:00
sandbox.h Introduce #include <cosmo.h> to toolchain users 2023-06-09 18:03:05 -07:00
wb.c Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00