cosmopolitan/test/libc
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
..
calls Make improvements 2023-10-03 06:17:16 -07:00
dns Make improvements 2023-09-18 21:04:47 -07:00
fmt Make improvements 2023-10-03 06:17:16 -07:00
intrin Make improvements 2023-09-18 21:04:47 -07:00
log Make improvements 2023-09-18 21:04:47 -07:00
mem Make improvements 2023-09-18 21:04:47 -07:00
nexgen32e Make improvements 2023-09-18 21:04:47 -07:00
proc Make improvements 2023-10-03 06:17:16 -07:00
release Refactor fatcosmocc into a single file 2023-08-14 22:26:17 -07:00
runtime Add siglongjmp() for aarch64 2023-09-21 10:10:20 -07:00
sock Make improvements 2023-09-18 21:04:47 -07:00
stdio Fix some zipos directory related bugs 2023-09-19 02:30:42 -07:00
str Remove Windows executable path guessing logic 2023-09-21 08:13:50 -07:00
thread Make improvements 2023-09-21 07:30:39 -07:00
time Make improvements 2023-10-03 06:17:16 -07:00
tinymath Fix strtod NaN handling / fix SIGSEGV in testlib/showerror (#901) 2023-09-27 00:16:36 -07:00
x Make improvements 2023-09-18 21:04:47 -07:00
xed Make improvements 2023-09-06 12:34:59 -07:00
test.mk Make improvements 2023-09-18 21:04:47 -07:00