summaryrefslogtreecommitdiff
path: root/htl
AgeCommit message (Collapse)Author
2025-11-22htl: move c11 symbols into libc.gfleury
thrd_{create,detach,exit,join}. mtx_{init,destroy,lock,trylock,unlock,timeelock}. cnd_{broadcast,destroy,init,signal,timewait,wait,destroy} tss_{create,delete,get,set}. call_once. Message-ID: <20251121191336.1224485-1-gfleury@disroot.org>
2025-11-22htl: Also use __libc_thread_freeres to clean TLS stateSamuel Thibault
2025-11-21htl: Move pthread_atfork compatibility symbol to libcSamuel Thibault
There is no new symbol version because of the compatibility symbol status.
2025-11-21htl: move pthread_spin_{destroy, lock, init, trylock, unlock) and remove ↵gfleury
_pthread_spin_lock, into libc. Message-ID: <20251120085647.326643-1-gfleury@disroot.org>
2025-11-18htl: move pthread_hurd_cond_timedwait_np, pthread_hurd_cond_wait_np into libc.gfleury
Message-ID: <20251118125044.1160780-3-gfleury@disroot.org>
2025-11-18htl: move pthread_getname_np/setname_np into libc.gfleury
Message-ID: <20251118125044.1160780-2-gfleury@disroot.org>
2025-11-18htl: fix compatibilitygfleury
This fix 91fb9914d867320d65a2abe284fb623d91ae5efb which break a system built with an old glibc Message-ID: <20251118125044.1160780-1-gfleury@disroot.org>
2025-11-17htl: move pthread_create to into libcSamuel Thibault
This is notably needed for the main thread structure to be always initialized so that some pthread functions can work from the main thread without other threads, e.g. pthread_cancel.
2025-11-17htl: Move __pthread_enable/disable_asynccancel into libcSamuel Thibault
This is actually needed before we make pthread_cancel available in libc.
2025-11-14Revert __HAVE_64B_ATOMICS configure checkAdhemerval Zanella
The 53807741fb44edb8e7c094cb5e7d4ff4e92a6ec1 added a configure check for 64-bit atomic operations that were not previously enabled on some 32-bit ABIs. However, the NPTL semaphore code casts a sem_t to a new_sem and issues a 64-bit atomic operation for __HAVE_64B_ATOMICS. Since sem_t has 32-bit alignment on 32-bit architectures, this prevents the use of 64-bit atomics even if the ABI supports them. Assume 64-bit atomic support from __WORDSIZE, which maps to how glibc defines it before the broken change. Also rename __HAVE_64B_ATOMICS to USE_64B_ATOMICS to define better the flag meaning. Checked on x86_64-linux-gnu and i686-linux-gnu. Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
2025-11-13htl: Remove errno and herrno from libpthreadSamuel Thibault
libc already has them.
2025-11-13htl: Drop pthread-functions infrastructureSamuel Thibault
All previously forwarded functions are now called directly (either via local call in libc, or through a __export).t
2025-11-13htl: Move __pthread_cleanup_stack out of libc_pthread_init.cSamuel Thibault
It does not actually need to be extern any more.
2025-11-13htl: move {,_IO_}f{,un,try}lockfile implementation into libcSamuel Thibault
2025-11-12hurd: Drop remnants of cthreadsSamuel Thibault
These are not used in GNU/Hurd since very long now.
2025-08-18htl: move sem_unlink into libc.gfleury
Message-ID: <20250817104023.91919-8-gfleury@disroot.org>
2025-08-18htl: move sem_{clockwait, timedwait, wait, trywait} into libc.gfleury
Message-ID: <20250817104023.91919-7-gfleury@disroot.org>
2025-08-18htl: move sem_post into libc.gfleury
Message-ID: <20250817104023.91919-6-gfleury@disroot.org>
2025-08-18htl: move sem_open, sem_close into libc.gfleury
Message-ID: <20250817104023.91919-5-gfleury@disroot.org>
2025-08-18htl: move sem_init into libc.gfleury
Message-ID: <20250817104023.91919-4-gfleury@disroot.org>
2025-08-18htl: move sem_getvalue into libc.gfleury
Message-ID: <20250817104023.91919-3-gfleury@disroot.org>
2025-08-18htl: move sem_destroy into libc.gfleury
Message-ID: <20250817104023.91919-2-gfleury@disroot.org>
2025-08-16htl: move __pthread_startup into libc.gfleury
Message-ID: <20250815181500.107433-20-gfleury@disroot.org>
2025-08-16htl: move __pthread_setup into libc.gfleury
Message-ID: <20250815181500.107433-19-gfleury@disroot.org>
2025-08-16htl: move pthread_{join, clockjoin_np, timedjoin_np, tryjoin_np} into libc.gfleury
Message-ID: <20250815181500.107433-18-gfleury@disroot.org>
2025-08-16htl: move pthread_exit into libc.gfleury
Message-ID: <20250815181500.107433-17-gfleury@disroot.org>
2025-08-16htl: move pthread_detach into libc.gfleury
Message-ID: <20250815181500.107433-16-gfleury@disroot.org>
2025-08-16htl: move __pthread_sigstate_init into libc.gfleury
Message-ID: <20250815181500.107433-15-gfleury@disroot.org>
2025-08-16htl: move pthread_mutex_transfer_np into libc.gfleury
Message-ID: <20250815181500.107433-14-gfleury@disroot.org>
2025-08-16htl: move pthread_getattr_np into libc.gfleury
Message-ID: <20250815181500.107433-13-gfleury@disroot.org>
2025-08-16htl: move pthread_testcancel into libc.gfleury
Message-ID: <20250815181500.107433-12-gfleury@disroot.org>
2025-08-16htl: move pthread_kill into libc.gfleury
Message-ID: <20250815181500.107433-11-gfleury@disroot.org>
2025-08-16htl: move pthread_cancel, __pthread_do_cancel into libc.gfleury
Message-ID: <20250815181500.107433-10-gfleury@disroot.org>
2025-08-16htl: move __thread_set_pcsptp into libc.gfleury
Message-ID: <20250815181500.107433-9-gfleury@disroot.org>
2025-08-16htl: move pthread_yield into libc.gfleury
Message-ID: <20250815181500.107433-8-gfleury@disroot.org>
2025-08-16htl: move pthread_getcpuclockid into libc.gfleury
Message-ID: <20250815181500.107433-7-gfleury@disroot.org>
2025-08-16htl: move __pthread_thread_{alloc, start, terminate} into libc.gfleury
Message-ID: <20250815181500.107433-6-gfleury@disroot.org>
2025-08-16htl: move __pthread_stack_alloc into libc.gfleury
Message-ID: <20250815181500.107433-5-gfleury@disroot.org>
2025-08-16htl: move __pthread_init_{specific, static_tls}, __pthread_{alloc}, dealloc} ↵gfleury
into libc. Message-ID: <20250815181500.107433-4-gfleury@disroot.org>
2025-08-16htl: move pthread_get/setconcurrency into libc.gfleury
Message-ID: <20250815181500.107433-3-gfleury@disroot.org>
2025-08-16htl: move pthread_setschedprio into libc.gfleury
Message-ID: <20250815181500.107433-2-gfleury@disroot.org>
2025-07-06htl: move __pthread_get_cleanup_stack to libcSamuel Thibault
This fixes the cleanup call from __qsort_r
2025-07-06htl: Drop ptr_pthread_once from pthread_functionsSamuel Thibault
It is unused since ccdb68e829a3 ("htl: move pthread_once into libc")
2025-06-15htl: move pthread_key_*, pthread_get/setspecificgfleury
Signed-off-by: gfleury <gfleury@disroot.org> Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Message-ID: <20250613184440.1660335-1-gfleury@disroot.org>
2025-03-15htl: Make pthread_setcanceltype / state a cancellation pointSamuel Thibault
as expected by tst-cancel32.
2025-03-06htl: Make __pthread_create_internal directly call __pthread_sigmaskSamuel Thibault
__pthread_sigmask will already know to pass our current ss to __sigthreadmask.
2025-03-06htl: Make __pthread_sigmask directly call __sigthreadmaskSamuel Thibault
If no thread was created yet, __pthread_sigstate will not find our ss because self->kernel_thread is still nul, and then change the global sigstate instead of our sigstate! We can directly call __sigthreadmask and skip the (bogus) lookup step.
2025-03-02htl: move pthread_once into libcSamuel Thibault
2025-02-16htl: don't export __pthread_default_rwlockattr anymore.gfleury
since now all symbloy that use it are in libc Message-ID: <20250216145434.7089-11-gfleury@disroot.org>
2025-02-16htl: move pthread_rwlock_init into libc.gfleury
Signed-off-by: gfleury <gfleury@disroot.org> Message-ID: <20250216145434.7089-10-gfleury@disroot.org>