cosmopolitan/libc/mem
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
..
_gc_free.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
alg.h Make improvements 2023-09-06 12:34:59 -07:00
aligned_alloc.c Make improvements 2023-10-03 06:17:16 -07:00
alloca.h Remove some dead code 2023-07-03 02:48:29 -07:00
arraylist.internal.h Fold LIBC_ALG into LIBC_MEM 2022-08-13 08:32:34 -07:00
arraylist2.internal.h Fold LIBC_ALG into LIBC_MEM 2022-08-13 08:32:34 -07:00
bisect.internal.h Fold LIBC_ALG into LIBC_MEM 2022-08-13 08:32:34 -07:00
bisectcarleft.internal.h Fold LIBC_ALG into LIBC_MEM 2022-08-13 08:32:34 -07:00
bsearch.c Fold LIBC_ALG into LIBC_MEM 2022-08-13 08:32:34 -07:00
bsearch_r.c Fold LIBC_ALG into LIBC_MEM 2022-08-13 08:32:34 -07:00
bulk_free.c Get LIBC_MEM and LIBC_STDIO building with aarch64 2023-05-10 04:20:47 -07:00
calloc.c Make improvements 2023-10-03 06:17:16 -07:00
critbit0.h Remove old stack code and improve dirstream 2023-08-16 07:54:40 -07:00
critbit0_allprefixed.c Fold LIBC_ALG into LIBC_MEM 2022-08-13 08:32:34 -07:00
critbit0_clear.c Fix small matters and improve sysconf() 2023-08-17 00:32:11 -07:00
critbit0_contains.c Fold LIBC_ALG into LIBC_MEM 2022-08-13 08:32:34 -07:00
critbit0_delete.c Fold LIBC_ALG into LIBC_MEM 2022-08-13 08:32:34 -07:00
critbit0_emplace.c Fix warnings 2023-09-01 20:50:18 -07:00
critbit0_get.c Fold LIBC_ALG into LIBC_MEM 2022-08-13 08:32:34 -07:00
critbit0_insert.c Remove old stack code and improve dirstream 2023-08-16 07:54:40 -07:00
free.c Make improvements 2023-10-03 06:17:16 -07:00
gc.c Make improvements 2023-10-03 06:17:16 -07:00
gc.h Pay off more technical debt 2022-09-12 23:36:56 -07:00
gc.internal.h Pay off more technical debt 2022-09-12 23:36:56 -07:00
get_current_dir_name.c Make improvements 2023-10-03 06:17:16 -07:00
heapsort.c Import OpenBSD sorting algorithms 2022-09-06 17:52:26 -07:00
hook.internal.h Get LIBC_MEM and LIBC_STDIO building with aarch64 2023-05-10 04:20:47 -07:00
hook_realloc_in_place.c Make improvements 2023-10-03 06:17:16 -07:00
internal.h Make improvements 2023-09-21 07:30:39 -07:00
mallinfo.c Improve synchronization 2022-04-15 15:31:55 -07:00
malloc.c Make improvements 2023-10-03 06:17:16 -07:00
malloc_inspect_all.c Improve synchronization 2022-04-15 15:31:55 -07:00
malloc_trim.c Get LIBC_MEM and LIBC_STDIO building with aarch64 2023-05-10 04:20:47 -07:00
malloc_usable_size.c Make improvements 2023-10-03 06:17:16 -07:00
mallopt.c Get us closer to building busybox 2023-06-18 04:13:45 -07:00
mem.h Make improvements 2023-09-06 12:34:59 -07:00
mem.mk Make improvements 2023-09-18 21:04:47 -07:00
memalign.c Make improvements 2023-10-03 06:17:16 -07:00
mergesort.c Import OpenBSD sorting algorithms 2022-09-06 17:52:26 -07:00
posix_memalign.c Make improvements 2023-10-03 06:17:16 -07:00
putenv.c Make improvements 2023-09-21 07:30:39 -07:00
pvalloc.c Make improvements 2023-10-03 06:17:16 -07:00
qsort.c Polyfill IPv6 on non-Linux 2022-09-08 06:06:22 -07:00
radix_sort_int32.c Make fatcosmocc good enough to build ncurses 6.4 2023-08-12 22:30:05 -07:00
radix_sort_int64.c Make fatcosmocc good enough to build ncurses 6.4 2023-08-12 22:30:05 -07:00
realloc.c Make improvements 2023-10-03 06:17:16 -07:00
reallocarray.c Make improvements 2023-10-03 06:17:16 -07:00
realpath.c Make improvements 2023-09-06 22:48:05 -07:00
reverse.internal.h Fold LIBC_ALG into LIBC_MEM 2022-08-13 08:32:34 -07:00
setenv.c Make improvements 2023-09-21 07:30:39 -07:00
shuffle.internal.h Fold LIBC_ALG into LIBC_MEM 2022-08-13 08:32:34 -07:00
sortedints.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
sortedints.internal.h Make fixes and improvements 2022-10-19 07:19:19 -07:00
strdup.c Make improvements 2023-10-03 06:17:16 -07:00
strndup.c Make improvements 2023-10-03 06:17:16 -07:00
valloc.c Make improvements 2023-10-03 06:17:16 -07:00
wcsdup.c Make improvements 2023-10-03 06:17:16 -07:00