Replace __libc_multiple_threads with __libc_single_threaded
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 7 Jun 2022 16:09:40 +0000 (13:09 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 5 Jul 2022 13:14:47 +0000 (10:14 -0300)
commite070501d12b47e88c1ff8c313f887976fb578938
tree8ee321cfb78050dde3c6e84e9a9da9b6eeaf0963
parentaf1aa36c617d72e80ff6b268bf927b6642d90823
Replace __libc_multiple_threads with __libc_single_threaded

And also fixes the SINGLE_THREAD_P macro for SINGLE_THREAD_BY_GLOBAL,
since header inclusion single-thread.h is in the wrong order, the define
needs to come before including sysdeps/unix/sysdep.h.  The macro
is now moved to a per-arch single-threade.h header.

The SINGLE_THREAD_P is used on some more places.

Checked on aarch64-linux-gnu and x86_64-linux-gnu.
22 files changed:
nptl/Makefile
nptl/allocatestack.c
nptl/libc_multiple_threads.c [deleted file]
nptl/pthread_cancel.c
posix/fork.c
sysdeps/nptl/setxid.h
sysdeps/unix/sysv/linux/aarch64/single-thread.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/aarch64/sysdep.h
sysdeps/unix/sysv/linux/alpha/sysdep.h
sysdeps/unix/sysv/linux/arc/single-thread.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/arc/sysdep.h
sysdeps/unix/sysv/linux/arm/single-thread.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/arm/sysdep.h
sysdeps/unix/sysv/linux/hppa/single-thread.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/hppa/sysdep.h
sysdeps/unix/sysv/linux/microblaze/single-thread.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/microblaze/sysdep.h
sysdeps/unix/sysv/linux/s390/single-thread.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/s390/sysdep.h
sysdeps/unix/sysv/linux/single-thread.h
sysdeps/unix/sysv/linux/x86_64/single-thread.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/x86_64/sysdep.h