public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] NEWS: Deprecate weak libpthread symbols for single-threaded checks
@ 2020-07-31 10:59 Florian Weimer
  0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2020-07-31 10:59 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=89c255294a5b14dd88e45ed3b2a2a66517ed1a6f

commit 89c255294a5b14dd88e45ed3b2a2a66517ed1a6f
Author: Florian Weimer <fweimer@redhat.com>
Date:   Fri Jul 24 16:50:38 2020 +0200

    NEWS: Deprecate weak libpthread symbols for single-threaded checks
    
    Recommend the new __libc_single_thread variable instead.
    
    Reviewed-by: Carlos O'Donell <carlos@redhat.com>

Diff:
---
 NEWS | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/NEWS b/NEWS
index 83aed60e19..7fb167e650 100644
--- a/NEWS
+++ b/NEWS
@@ -134,6 +134,14 @@ Deprecated and removed features, and other changes affecting compatibility:
   or contents might be overwritten on subsequent calls in the same thread or
   if the thread is terminated.  It makes strerror MT-safe.
 
+* Using weak references to libpthread functions such as pthread_create
+  or pthread_key_create to detect the singled-threaded nature of a
+  program is an obsolescent feature.  Future versions of glibc will
+  define pthread_create within libc.so.6 itself, so such checks will
+  always flag the program as multi-threaded.  Applications should check
+  the __libc_single_threaded variable declared in
+  <sys/single_threaded.h> instead.
+
 * The "files" NSS module no longer supports the "key" database (used for
   secure RPC).  The contents of the /etc/publickey file will be ignored,
   regardless of the settings in /etc/nsswitch.conf.  (This method of


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-31 10:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-31 10:59 [glibc] NEWS: Deprecate weak libpthread symbols for single-threaded checks Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).