cosmopolitan/third_party
Justine Tunney 791f79fcb3
Make improvements
- We now serialize the file descriptor table when spawning / executing
  processes on Windows. This means you can now inherit more stuff than
  just standard i/o. It's needed by bash, which duplicates the console
  to file descriptor #255. We also now do a better job serializing the
  environment variables, so you're less likely to encounter E2BIG when
  using your bash shell. We also no longer coerce environ to uppercase

- execve() on Windows now remotely controls its parent process to make
  them spawn a replacement for itself. Then it'll be able to terminate
  immediately once the spawn succeeds, without having to linger around
  for the lifetime as a shell process for proxying the exit code. When
  process worker thread running in the parent sees the child die, it's
  given a handle to the new child, to replace it in the process table.

- execve() and posix_spawn() on Windows will now provide CreateProcess
  an explicit handle list. This allows us to remove handle locks which
  enables better fork/spawn concurrency, with seriously correct thread
  safety. Other codebases like Go use the same technique. On the other
  hand fork() still favors the conventional WIN32 inheritence approach
  which can be a little bit messy, but is *controlled* by guaranteeing
  perfectly clean slates at both the spawning and execution boundaries

- sigset_t is now 64 bits. Having it be 128 bits was a mistake because
  there's no reason to use that and it's only supported by FreeBSD. By
  using the system word size, signal mask manipulation on Windows goes
  very fast. Furthermore @asyncsignalsafe funcs have been rewritten on
  Windows to take advantage of signal masking, now that it's much more
  pleasant to use.

- All the overlapped i/o code on Windows has been rewritten for pretty
  good signal and cancelation safety. We're now able to ensure overlap
  data structures are cleaned up so long as you don't longjmp() out of
  out of a signal handler that interrupted an i/o operation. Latencies
  are also improved thanks to the removal of lots of "busy wait" code.
  Waits should be optimal for everything except poll(), which shall be
  the last and final demon we slay in the win32 i/o horror show.

- getrusage() on Windows is now able to report RUSAGE_CHILDREN as well
  as RUSAGE_SELF, thanks to aggregation in the process manager thread.
2023-10-08 08:59:53 -07:00
..
aarch64 Upgrade to Cosmopolitan GCC 11.2.0 for aarch64 2023-06-05 02:07:28 -07:00
argon2 Make the Windows Console work better 2023-09-07 18:27:22 -07:00
awk Make improvements 2023-09-18 21:04:47 -07:00
bzip2 Fix warnings 2023-09-01 20:50:18 -07:00
chibicc Make improvements 2023-10-03 06:17:16 -07:00
compiler_rt Make improvements 2023-09-06 12:34:59 -07:00
ctags Make improvements 2023-09-18 21:04:47 -07:00
dlmalloc Make improvements 2023-09-18 21:04:47 -07:00
double-conversion Fix warnings 2023-09-01 20:50:18 -07:00
finger Get rid of kmalloc() 2023-09-11 21:56:00 -07:00
gcc Make cosmocc capable of cross compilation 2023-08-13 14:40:22 -07:00
gdtoa Fix strtod NaN handling / fix SIGSEGV in testlib/showerror (#901) 2023-09-27 00:16:36 -07:00
getopt Fix getopt again 2023-08-15 20:06:19 -07:00
ggml Make improvements 2023-10-08 08:59:53 -07:00
hiredis Make improvements 2023-09-06 12:34:59 -07:00
intel Fix some build errors 2023-06-05 15:53:44 -07:00
libcxx Include missing symbols in <cstdint> for C++ 2023-10-03 08:19:09 -07:00
linenoise Implement basic canonical mode for Windows 2023-10-03 22:36:22 -07:00
lua Make improvements 2023-10-08 08:59:53 -07:00
lz4cli Make progress towards aarch64 build 2023-05-10 04:20:46 -07:00
make Improve stack overflow recovery 2023-10-04 07:35:17 -07:00
maxmind Brush up some more code 2023-07-10 10:17:26 -07:00
mbedtls Temporarily disable test_suite_x509parse.com 2023-10-02 13:49:16 -07:00
musl Make improvements 2023-10-08 08:59:53 -07:00
nsync Make improvements 2023-10-08 08:59:53 -07:00
puff Make improvements 2023-09-18 21:04:47 -07:00
python Make improvements 2023-10-08 08:59:53 -07:00
qemu Fix MODE=aarch64 build 2023-06-08 05:17:37 -07:00
quickjs Make improvements 2023-09-18 21:04:47 -07:00
radpajama Make improvements 2023-10-08 08:59:53 -07:00
regex Make the Windows Console work better 2023-09-07 18:27:22 -07:00
sed Remove IMAGE_BASE_VIRTUAL 2023-09-12 01:21:36 -07:00
smallz4 Clean up more code 2023-06-18 01:00:05 -07:00
sqlite3 Make improvements 2023-10-03 06:17:16 -07:00
stb Fix warnings 2023-09-01 20:50:18 -07:00
tidy Remove VM variable 2023-09-12 01:27:30 -07:00
tr Remove old stack code and improve dirstream 2023-08-16 07:54:40 -07:00
unzip Fix warnings 2023-09-01 20:50:18 -07:00
vqsort Overhaul process spawning 2023-09-10 08:17:44 -07:00
xed Make improvements 2023-09-18 21:04:47 -07:00
xxhash Make improvements 2023-10-08 08:59:53 -07:00
zip Make improvements 2023-10-03 06:17:16 -07:00
zlib Remove IMAGE_BASE_VIRTUAL 2023-09-12 01:21:36 -07:00
zstd Make improvements 2023-10-08 08:59:53 -07:00
third_party.mk Move demangling utility to stdio 2023-07-07 10:47:50 -07:00