mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
7b26b42769
This makes breaking changes to add underscores to many non-standard
function names provided by the c library. MODE=tiny is now tinier and
we now use smaller locks that are better for tiny apps in this mode.
Some headers have been renamed to be in the same folder as the build
package, so it'll be easier to know which build dependency is needed.
Certain old misguided interfaces have been removed. Intel intrinsics
headers are now listed in libc/isystem (but not in the amalgamation)
to help further improve open source compatibility. Header complexity
has also been reduced. Lastly, more shell scripts are now available.
Compared to
|
||
---|---|---|
.. | ||
atomic.h | ||
atomic.internal.h | ||
common.c | ||
common.internal.h | ||
counter.h | ||
cv.h | ||
debug.h | ||
dll.c | ||
dll.h | ||
futex.c | ||
futex.internal.h | ||
LICENSE.txt | ||
malloc.c | ||
malloc.internal.h | ||
mu.c | ||
mu.h | ||
mu_semaphore.c | ||
mu_semaphore.h | ||
mu_semaphore.internal.h | ||
mu_semaphore_futex.c | ||
mu_semaphore_win32.c | ||
mu_wait.h | ||
note.h | ||
nsync.mk | ||
once.h | ||
panic.c | ||
races.internal.h | ||
README.md | ||
time.c | ||
time.h | ||
wait_s.internal.h | ||
waiter.h | ||
waiter_per_thread.c | ||
yield.c |
*NSYNC
The THIRD_PARTY_NSYNC
and LIBC_THREAD
packages include source code
from *NSYNC. Here's the latest upstream synchronization point:
git@github.com:google/nsync
ac5489682760393fe21bd2a8e038b528442412a7 (1.25.0)
Author: Mike Burrows <m3b@google.com>
Date: Wed Jun 1 16:47:52 2022 -0700
NSYNC uses the Apache 2.0 license. We made the following local changes:
-
Write custom
nsync_malloc_()
somalloc()
can use *NSYNC. -
Rewrite
futex()
wrapper to support old Linux kernels and OpenBSD. -
Normalize sources to Cosmopolitan style conventions; *NSYNC upstream supports dozens of compilers and operating systems, at compile-time. Since Cosmo solves portability at runtime instead, most of the build config toil has been removed, in order to help the NSYNC source code be more readable and hackable.