cosmopolitan/ape
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
..
public Improve open source compatibility 2022-09-08 03:19:35 -07:00
aarch64.lds Rewrite .zip.o file linker 2023-06-10 09:29:44 -07:00
ape-m1.c Get threads working well on MacOS Arm64 2023-06-04 01:57:10 -07:00
ape.internal.h Get aarch64 hello world working 2023-05-10 04:20:47 -07:00
ape.lds Fix bugs in termios library and cleanup code 2023-06-14 19:30:52 -07:00
ape.mk Rewrite .zip.o file linker 2023-06-10 09:29:44 -07:00
ape.S Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
apeinstall.sh Introduce new jartsr=' ape prefix 2022-11-10 21:18:32 -08:00
apeuninstall.sh Introduce new jartsr=' ape prefix 2022-11-10 21:18:32 -08:00
blink-aarch64.gz Incorporate Blink 1.0.0 release 2023-06-04 11:07:31 -07:00
blink-darwin-arm64.gz Incorporate Blink 1.0.0 release 2023-06-04 11:07:31 -07:00
idata.internal.h Get LIBC_RUNTIME and LIBC_CALLS building on aarch64 2023-05-10 04:20:47 -07:00
loader-elf.S Introduce #include <cosmo.h> to toolchain users 2023-06-09 18:03:05 -07:00
loader-macho.lds Write tests for new APE loader and fix bugs 2022-05-22 05:45:38 -07:00
loader-macho.S Make progress towards aarch64 build 2023-05-10 04:20:46 -07:00
loader.c Introduce native support for MacOS ARM64 2023-05-20 04:17:03 -07:00
loader.h Introduce #include <cosmo.h> to toolchain users 2023-06-09 18:03:05 -07:00
loader.lds Add .PLEDGE/.CPU/.MEMORY/etc. to Landlock Make 1.2 2022-08-14 20:16:44 -07:00
macros.internal.h [metal] Fix bug: do not initialize IDT & TSS if unneeded (#654) 2022-10-10 20:54:46 -07:00
mz.ansi Initial import 2020-06-15 07:18:57 -07:00
notice.inc Initial import 2020-06-15 07:18:57 -07:00
relocations.h Optimize memory layout 2022-09-12 04:26:52 -07:00
sections.internal.h Rewrite .zip.o file linker 2023-06-10 09:29:44 -07:00