mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
8b33204f37
* third_party: Add libcxxabi Added libcxxabi from LLVM 17.0.6 The library implements the Itanium C++ exception handling ABI. * third_party/libcxxabi: Enable __cxa_thread_atexit Enable `__cxa_thread_atexit` from libcxxabi. `__cxa_thread_atexit_impl` is still implemented by the cosmo libc. The original `__cxa_thread_atexit` has been removed. * third_party/libcxx: Build with exceptions Build libcxx with exceptions enabled. - Removed `_LIBCPP_NO_EXCEPTIONS` from `__config`. - Switched the exception implementation to `libcxxabi`. These two files are taken from the same `libcxx` version as mentioned in `README.cosmo`. - Removed `new_handler_fallback` in favor of `libcxxabi` implementation. - Enable `-fexceptions` and `-frtti` for `libcxx`. - Removed `THIRD_PARTY_LIBCXX` dependency from `libcxxabi` and `libunwind`. These libraries do not use any runtime `libcxx` functions, just headers. * libc: Remove remaining redundant cxa functions - `__cxa_pure_virtual` in `libcxxabi` is also a stub similar to the existing one. - `__cxa_guard_*` from `libcxxabi` is used instead of the ones from Android. Now there should be no more duplicate implementations. `__cxa_thread_atexit_impl`, `__cxa_atexit`, and related supporting functions, are still left to other libraries as in `libcxxabi`. `libcxxabi` is also now added to `cosmopolitan.a` to make up for the removed functions. Affected in-tree libraries (`third_party/double-conversion`) have been updated. |
||
---|---|---|
.. | ||
__cxa_thread_atexit_impl.c | ||
alarm.c | ||
BUILD.mk | ||
freebsd.internal.h | ||
getitimer.c | ||
itimer.c | ||
itimer.internal.h | ||
makecontext.c | ||
mktls.c | ||
openbsd.internal.h | ||
posixthread.internal.h | ||
pt.internal.h | ||
pthread_atfork.c | ||
pthread_attr_destroy.c | ||
pthread_attr_getdetachstate.c | ||
pthread_attr_getguardsize.c | ||
pthread_attr_getinheritsched.c | ||
pthread_attr_getschedparam.c | ||
pthread_attr_getschedpolicy.c | ||
pthread_attr_getscope.c | ||
pthread_attr_getsigmask_np.c | ||
pthread_attr_getstack.c | ||
pthread_attr_getstacksize.c | ||
pthread_attr_init.c | ||
pthread_attr_setdetachstate.c | ||
pthread_attr_setguardsize.c | ||
pthread_attr_setinheritsched.c | ||
pthread_attr_setschedparam.c | ||
pthread_attr_setschedpolicy.c | ||
pthread_attr_setscope.c | ||
pthread_attr_setsigmask_np.c | ||
pthread_attr_setstack.c | ||
pthread_attr_setstacksize.c | ||
pthread_barrier_destroy.c | ||
pthread_barrier_init.c | ||
pthread_barrier_wait.c | ||
pthread_barrierattr_destroy.c | ||
pthread_barrierattr_getpshared.c | ||
pthread_barrierattr_init.c | ||
pthread_barrierattr_setpshared.c | ||
pthread_cancel.c | ||
pthread_cond_broadcast.c | ||
pthread_cond_destroy.c | ||
pthread_cond_init.c | ||
pthread_cond_signal.c | ||
pthread_cond_timedwait.c | ||
pthread_cond_wait.c | ||
pthread_condattr_destroy.c | ||
pthread_condattr_getpshared.c | ||
pthread_condattr_init.c | ||
pthread_condattr_setpshared.c | ||
pthread_create.c | ||
pthread_detach.c | ||
pthread_equal.c | ||
pthread_exit.c | ||
pthread_getaffinity_np.c | ||
pthread_getattr_np.c | ||
pthread_getname_np.c | ||
pthread_getschedparam.c | ||
pthread_getspecific.c | ||
pthread_getthreadid_np.c | ||
pthread_getunique_np.c | ||
pthread_join.c | ||
pthread_key_create.c | ||
pthread_key_delete.c | ||
pthread_keys.c | ||
pthread_kill.c | ||
pthread_once.c | ||
pthread_orphan_np.c | ||
pthread_reschedule.c | ||
pthread_rwlock_destroy.c | ||
pthread_rwlock_init.c | ||
pthread_rwlock_rdlock.c | ||
pthread_rwlock_tryrdlock.c | ||
pthread_rwlock_trywrlock.c | ||
pthread_rwlock_unlock.c | ||
pthread_rwlock_wrlock.c | ||
pthread_rwlockattr_destroy.c | ||
pthread_rwlockattr_getpshared.c | ||
pthread_rwlockattr_init.c | ||
pthread_rwlockattr_setpshared.c | ||
pthread_self.c | ||
pthread_setaffinity_np.c | ||
pthread_setcanceltype.c | ||
pthread_setname_np.c | ||
pthread_setschedparam.c | ||
pthread_setschedparam_freebsd.c | ||
pthread_setschedprio.c | ||
pthread_sigmask.c | ||
pthread_timedjoin_np.c | ||
pthread_tryjoin_np.c | ||
pthread_ungarbage.c | ||
pthread_zombify.c | ||
README.md | ||
sem_destroy.c | ||
sem_getvalue.c | ||
sem_init.c | ||
sem_open.c | ||
sem_post.c | ||
sem_timedwait.c | ||
sem_trywait.c | ||
sem_wait.c | ||
semaphore.h | ||
setitimer.c | ||
thread.h | ||
thread2.h | ||
tls.h | ||
tls2.internal.h | ||
ualarm.c | ||
xnu.internal.h |
Cosmpolitan POSIX Threads Library
Cosmopolitan Libc implements threading as it is written in The Open Group Base Specifications Issue 7, 2018 edition IEEE Std 1003.1-2017 (Revision of IEEE Std 1003.1-2008) in addition to GNU extensions.