cosmopolitan/libc/testlib
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
..
almostequal.c Change license 2020-12-27 17:18:44 -08:00
almostequalf.c Change license 2020-12-27 17:18:44 -08:00
almostequallongdouble.c Remove testonly keyword 2022-09-05 08:41:43 -07:00
aspect.internal.h Make improvements 2023-09-18 21:04:47 -07:00
bench.h Make improvements 2023-06-03 08:12:22 -07:00
bench.S Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
benchrunner.c Make improvements 2023-10-08 08:59:53 -07:00
binequals.c Make important improvements 2022-09-14 22:39:08 -07:00
blocktronics.h Improve performance of bitscanning intrinsics 2021-06-15 06:29:51 -07:00
blocktronics.S Make progress towards aarch64 build 2023-05-10 04:20:46 -07:00
blocktronics.txt Remove trailing whitespace from all files (#497) 2022-07-20 20:31:16 -07:00
clearxmmregisters.c Get LIBC_MEM and LIBC_STDIO building with aarch64 2023-05-10 04:20:47 -07:00
contains.c Remove testonly keyword 2022-09-05 08:41:43 -07:00
endswith.c Replace COSMO define with _COSMO_SOURCE 2023-08-13 20:55:04 -07:00
extract.c Improve AARCH64 execution 2023-09-11 14:46:46 -07:00
ezbench.h Fix warnings 2023-09-01 20:50:18 -07:00
ezbenchcontrol.c Make improvements 2023-10-03 06:17:16 -07:00
ezbenchreport.c Make improvements 2023-09-18 21:04:47 -07:00
ezbenchwarn.c Make improvements 2023-09-18 21:04:47 -07:00
fastrandomstring.h Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
fixture.S Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
fixturerunner.c Make improvements 2023-09-18 21:04:47 -07:00
formatbinaryasglyphs.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
formatbinaryashex.c Remove testonly keyword 2022-09-05 08:41:43 -07:00
formatbool.c Change license 2020-12-27 17:18:44 -08:00
formatfloat.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
formatint.c Make improvements 2023-09-18 21:04:47 -07:00
formatrange.c Make improvements 2023-09-06 12:34:59 -07:00
formatstr.c Make improvements 2023-09-18 21:04:47 -07:00
getcore.c Get LIBC_MEM and LIBC_STDIO building with aarch64 2023-05-10 04:20:47 -07:00
geterrno.c Unbloat the build 2022-08-11 00:15:29 -07:00
getinterrupts.c Make numerous improvements 2021-09-28 01:52:34 -07:00
globals.c Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
hexequals.c Replace COSMO define with _COSMO_SOURCE 2023-08-13 20:55:04 -07:00
hyperion.h Make improvements to redbean 2021-07-10 15:19:37 -07:00
hyperion.S Make progress towards aarch64 build 2023-05-10 04:20:46 -07:00
hyperion.txt Initial import 2020-06-15 07:18:57 -07:00
incrementfailed.c Make blink support conditionally linkable into APE 2023-06-17 07:55:35 -07:00
memoryexists.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
moby.h Make improvements to redbean 2021-07-10 15:19:37 -07:00
moby.S Make progress towards aarch64 build 2023-05-10 04:20:46 -07:00
moby.txt Make improvements to redbean 2021-07-10 15:19:37 -07:00
polluteregisters.S Make improvements 2023-06-03 08:12:22 -07:00
runner.c Make improvements 2023-09-18 21:04:47 -07:00
seterrno.c Unbloat the build 2022-08-11 00:15:29 -07:00
shoulddebugbreak.c Change license 2020-12-27 17:18:44 -08:00
showerror.c Fix strtod NaN handling / fix SIGSEGV in testlib/showerror (#901) 2023-09-27 00:16:36 -07:00
startswith.c Replace COSMO define with _COSMO_SOURCE 2023-08-13 20:55:04 -07:00
strcaseequals.c Get repository to build with GCC 11 2022-09-13 04:14:55 -07:00
strequals.c Get repository to build with GCC 11 2022-09-13 04:14:55 -07:00
strerror.c Unbloat the build 2022-08-11 00:15:29 -07:00
subprocess.h Greatly expand system() shell code features 2022-10-11 21:30:31 -07:00
testcase.S Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
testlib.h Make improvements 2023-09-18 21:04:47 -07:00
testlib.mk Fix some zipos directory related bugs 2023-09-19 02:30:42 -07:00
testmain.c Make improvements 2023-09-18 21:04:47 -07:00
testrunner.c Make improvements 2023-09-18 21:04:47 -07:00
thunks.c Get LIBC_TESTLIB building on AARCH64 2023-05-11 19:57:09 -07:00
tmptest.c Make improvements 2023-09-18 21:04:47 -07:00
viewables.h Do some string library work 2022-08-20 22:17:14 -07:00
viewables.S Make progress towards aarch64 build 2023-05-10 04:20:46 -07:00
viewables.txt Do some string library work 2022-08-20 22:17:14 -07:00
waitforexit.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
waitforterm.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
yield.c Make improvements 2023-09-18 21:04:47 -07:00