cosmopolitan/libc/testlib
Justine Tunney ff77f2a6af
Make improvements
- This change fixes a bug that allowed unbuffered printf() output (to
  streams like stderr) to be truncated. This regression was introduced
  some time between now and the last release.

- POSIX specifies all functions as thread safe by default. This change
  works towards cleaning up our use of the @threadsafe / @threadunsafe
  documentation annotations to reflect that. The goal is (1) to use
  @threadunsafe to document functions which POSIX say needn't be thread
  safe, and (2) use @threadsafe to document functions that we chose to
  implement as thread safe even though POSIX didn't mandate it.

- Tidy up the clock_gettime() implementation. We're now trying out a
  cleaner approach to system call support that aims to maintain the
  Linux errno convention as long as possible. This also fixes bugs that
  existed previously, where the vDSO errno wasn't being translated
  properly. The gettimeofday() system call is now a wrapper for
  clock_gettime(), which reduces bloat in apps that use both.

- The recently-introduced improvements to the execute bit on Windows has
  had bugs fixed. access(X_OK) on a directory on Windows now succeeds.
  fstat() will now perform the MZ/#! ReadFile() operation correctly.

- Windows.h is no longer included in libc/isystem/, because it confused
  PCRE's build system into thinking Cosmopolitan is a WIN32 platform.
  Cosmo's Windows.h polyfill was never even really that good, since it
  only defines a subset of the subset of WIN32 APIs that Cosmo defines.

- The setlongerjmp() / longerjmp() APIs are removed. While they're nice
  APIs that are superior to the standardized setjmp / longjmp functions,
  they weren't superior enough to not be dead code in the monorepo. If
  you use these APIs, please file an issue and they'll be restored.

- The .com appending magic has now been removed from APE Loader.
2023-10-03 06:17:16 -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-09-18 21:04:47 -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