mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
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.
This commit is contained in:
2
sysdeps/unix/sysv/linux/arc/single-thread.h
Normal file
2
sysdeps/unix/sysv/linux/arc/single-thread.h
Normal file
@ -0,0 +1,2 @@
|
||||
#define SINGLE_THREAD_BY_GLOBAL
|
||||
#include_next <single-thread.h>
|
@ -132,8 +132,6 @@ L (call_syscall_err): ASM_LINE_SEP \
|
||||
|
||||
#else /* !__ASSEMBLER__ */
|
||||
|
||||
# define SINGLE_THREAD_BY_GLOBAL 1
|
||||
|
||||
# if IS_IN (libc)
|
||||
extern long int __syscall_error (long int);
|
||||
hidden_proto (__syscall_error)
|
||||
|
Reference in New Issue
Block a user