glibc/misc/sys
Florian Weimer 706ad1e7af Add the __libc_single_threaded variable
The variable is placed in libc.so, and it can be true only in
an outer libc, not libcs loaded via dlmopen or static dlopen.
Since thread creation from inner namespaces does not work,
pthread_create can update __libc_single_threaded directly.

Using __libc_early_init and its initial flag, implementation of this
variable is very straightforward.  A future version may reset the flag
during fork (but not in an inner namespace), or after joining all
threads except one.

Reviewed-by: DJ Delorie <dj@redhat.com>
2020-07-06 11:15:58 +02:00
..
auxv.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
cdefs.h improve out-of-bounds checking with GCC 10 attribute access [BZ #25219] 2020-05-04 11:21:50 -06:00
dir.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
file.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ioctl.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
mman.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
param.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
queue.h [BZ #5779] 2008-03-05 05:50:39 +00:00
select.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
single_threaded.h Add the __libc_single_threaded variable 2020-07-06 11:15:58 +02:00
syslog.h Rename __LONG_DOUBLE_USES_FLOAT128 to __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 2020-04-30 08:52:08 -05:00
sysmacros.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
uio.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
xattr.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00