From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2178) id 38DA23860C3C; Fri, 31 Jul 2020 10:59:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 38DA23860C3C Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Florian Weimer To: glibc-cvs@sourceware.org Subject: [glibc] NEWS: Deprecate weak libpthread symbols for single-threaded checks X-Act-Checkin: glibc X-Git-Author: Florian Weimer X-Git-Refname: refs/heads/master X-Git-Oldrev: 20fb7452c04221608be1359cc100387db3e36356 X-Git-Newrev: 89c255294a5b14dd88e45ed3b2a2a66517ed1a6f Message-Id: <20200731105955.38DA23860C3C@sourceware.org> Date: Fri, 31 Jul 2020 10:59:55 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Jul 2020 10:59:55 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=89c255294a5b14dd88e45ed3b2a2a66517ed1a6f commit 89c255294a5b14dd88e45ed3b2a2a66517ed1a6f Author: Florian Weimer 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 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 + 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