aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-02-10htl: Make joining self return EDEADLKSamuel Thibault
2020-02-10pthread: Move most barrier tests from nptl to sysdeps/pthreadSamuel Thibault
So they can be checked with htl too.
2020-02-10htl: Fix barrier_wait with one threadSamuel Thibault
2020-02-10pthread: Move most sem tests from nptl to sysdeps/pthreadSamuel Thibault
So they can be checked with htl too.
2020-02-10htl: Make sem_wait/sem_timedwait interruptibleSamuel Thibault
2020-02-10htl: Make sem_open return ENOSYSSamuel Thibault
instead of EOPNOTSUPP, which is for sockets.
2020-02-10htl: Add support for semaphore maximum valueSamuel Thibault
2020-02-10pthread: Move key tests from nptl to sysdeps/pthreadSamuel Thibault
So they can be checked with htl too.
2020-02-10hurd: Make nanosleep a cancellation pointSamuel Thibault
2020-02-10htl: Add support for libc cancellation pointsSamuel Thibault
2020-02-10htl: clean __pthread_get_cleanup_stack hidden protoSamuel Thibault
2020-02-09htl: XFAIL rwlock tests which need pshared supportSamuel Thibault
2020-02-09pthread: Move some rwlock tests from nptl to sysdeps/pthreadSamuel Thibault
So they can be checked with htl too.
2020-02-09pthread: Move most once tests from nptl to sysdeps/pthreadSamuel Thibault
So they can be checked with htl too.
2020-02-09htl: support cancellation during pthread_onceSamuel Thibault
2020-02-09pthread: Move most cond tests from nptl to sysdeps/pthreadSamuel Thibault
So they can be checked with htl too.
2020-02-09htl: make pthread_cond_destroy return EBUSY on waitersSamuel Thibault
2020-02-09htl: Report missing mutex lock on pthread_cond_*waitSamuel Thibault
2020-02-09htl: Fix linking static testcasesSamuel Thibault
They need libpthread.a
2020-02-09htl: Move __register_atfork from forward to own fileSamuel Thibault
Since we need it also in the static linking case.
2020-02-09pthread: Move some attr tests from nptl to sysdeps/pthreadSamuel Thibault
So they can be checked with htl too.
2020-02-09htl: Fix default guard sizeSamuel Thibault
When it is not hardcoded by the architecture with PAGESIZE, we need to use the dynamic values from __vm_page_size.
2020-02-09pthread: Move most mutex tests from nptl to sysdeps/pthreadSamuel Thibault
So they can be checked with htl too. XFAIL tst-mutex4, for which support is still missing in htl.
2020-02-09pthread: Move spin tests from nptl to sysdeps/pthreadSamuel Thibault
So they can be checked with htl too.
2020-02-09htl: make pthread_spin_lock really spinSamuel Thibault
__spin_lock would actually use gsync_wait to block, which is not what pthread_spin_lock is about.
2020-02-09htl: Avoid check-installed-headers looking at inlinesSamuel Thibault
2020-02-09htl: Do not put spin_lock inlines in public headersSamuel Thibault
They were not getting used anyway. Also do not make libsupport use them, it would make tests using it have to be made to link against libmachuser for gsync_wait.
2020-02-09pthread: Move basic tests from nptl to sysdeps/pthreadSamuel Thibault
So they can be checked with htl too.
2020-02-09htl: Fix calling pthread_exit in the child of a forkSamuel Thibault
We need to reset the threads counter, otherwise pthread_exit() would not call exit(0).
2020-02-09x86: Remove <bits/select.h> and use the generic versionFlorian Weimer
Particularly on CPUs without ERMS, the string instructions are slow, so it is unclear whether this architecture-specific implementation is in fact an optimization.
2020-02-09C11 threads: Move implementation to sysdeps/pthreadSamuel Thibault
so it gets shared by nptl and htl. Also add htl versions of thrd_current and thrd_yield. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2020-02-09htl: Add C11 threads types definitionsSamuel Thibault
2020-02-09C11 threads: make thrd_join more portableSamuel Thibault
by making a __pthread_join call instead of an equivalent __pthread_clockjoin_ex call. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2020-02-09C11 threads: Fix thrd_t / pthread_t compatibility assertionSamuel Thibault
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2020-02-09C11 threads: do not require PTHREAD_DESTRUCTOR_ITERATIONSSamuel Thibault
It is optional in POSIX. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2020-02-09nptl: Move nptl-specific types to separate headerSamuel Thibault
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2020-02-09htl: Make __PTHREAD_ONCE_INIT more flexibleSamuel Thibault
by moving its (struct __pthread_once) cast into PTHREAD_ONCE_INIT. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2020-02-09htl: Add support for C11 threads behaviorSamuel Thibault
Essentially properly calling the thread function which returns an int instead of a void*. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2020-02-09htl: Add missing internal functions declarationsSamuel Thibault
2020-02-09htl: Rename _pthread_mutex_init/destroy to __pthread_mutex_init/destroySamuel Thibault
2020-02-09htl: Move internal mutex/rwlock symbols to GLIBC_PRIVATESamuel Thibault
Their prototypes have never been made public, and they are not used outside libc (checked on the whole Debian archive)
2020-02-09Linux: Add io/tst-o_path-locks testFlorian Weimer
The O_PATH-based fchmodat emulation will rely on the fact that closing an O_PATH descriptor never releases POSIX advisory locks, so this commit adds a test case for this behavior.
2020-02-09support: Add the xlstat functionFlorian Weimer
2020-02-09htl: Remove duplicate filesSamuel Thibault
The generic versions have the same content.
2020-02-09htl: Remove unused filesSamuel Thibault
These have never been used.
2020-02-07resolv: Fix CNAME chaining in resolv/tst-resolv-ai_idn-common.cFlorian Weimer
The second CNAME record optionally generated by the response function used the question name, not the redirected name from the first CNAME. This breaks the chain and results in failures of these IDNA tests if CNAME owner names are checked as expected (which the current implementation does not do).
2020-02-07Remove a comment claiming that sin/cos round correctly.Wilco Dijkstra
2020-02-07y2038: linux: Provide __settimeofday64 implementationLukasz Majewski
This patch provides new __settimeofday64 explicit 64 bit function for setting 64 bit time in the kernel (by internally calling __clock_settime64). Moreover, a 32 bit version - __settimeofday has been refactored to internally use __settimeofday64. The __settimeofday is now supposed to be used on systems still supporting 32 bit time (__TIMESIZE != 64) - hence the necessary conversion of struct timeval to 64 bit struct __timespec64. Internally the settimeofday uses __settimeofday64. This patch is necessary for having architectures with __WORDSIZE == 32 Y2038 safe. Build tests: ./src/scripts/build-many-glibcs.py glibcs Run-time tests: - Run specific tests on ARM/x86 32bit systems (qemu): https://github.com/lmajewski/meta-y2038 and run tests: https://github.com/lmajewski/y2038-tests/commits/master Above tests were performed with Y2038 redirection applied as well as without to test proper usage of both __settimeofday64 and __settimeofday. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2020-02-07y2038: Provide conversion helpers for struct __timeval64Lukasz Majewski
Those functions allow easy conversion between Y2038 safe, glibc internal struct __timeval64 and other time related data structures (like struct timeval or struct __timespec64). Build tests: ./src/scripts/build-many-glibcs.py glibcs Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2020-02-07y2038: alpha: Rename valid_timeval64_to_timeval to valid_timeval_to_timeval32Lukasz Majewski
The name 'valid_timeval64_to_timeval' suggest conversion of struct __timeval64 to struct timeval (as in ./include/time.h). As on the alpha the struct timeval supports 64 bit time, it seems more feasible to emphasis struct timeval32 in the conversion function name. Hence the helper function naming change to 'valid_timeval_to_timeval32'. Build tests: ./src/scripts/build-many-glibcs.py glibcs Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>