From patchwork Sun Feb 9 20:20:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 37820 X-Patchwork-Delegate: carlos@redhat.com Received: (qmail 24661 invoked by alias); 9 Feb 2020 20:20:55 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 24553 invoked by uid 89); 9 Feb 2020 20:20:54 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy= X-HELO: us-smtp-delivery-1.mimecast.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581279651; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XvonJlW2wTDmIFyoH2bcF+NluIREy9ncEXNBjzW4I08=; b=euAH9T5v6xf7NwFcKHRRflXjxOkpPCY3qnIFLcwPLk5uny2LWGQTmUL8vpq9wARMrBJuFd DhOkwb4rw3zq19WzWm33m85OCfUS7Dk0I94Qj9WVpUK3GqMt1bBWW2GIgRHeFH1yix2qp+ oEJLzvoa/GpI+CR/wTYzetWxq1VMUWE= From: Florian Weimer To: libc-alpha@sourceware.org Subject: [PATCH 16/26] Linux: set_tid_address syscall number is always available In-Reply-To: References: X-From-Line: c108ce5c715d767bc13e181ddc9f944e7aa3b962 Mon Sep 17 00:00:00 2001 Message-Id: Date: Sun, 09 Feb 2020 21:20:46 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Due to the built-in tables, __NR_set_tid_address is always defined. Reviewed-by: Adhemerval Zanella --- sysdeps/unix/sysv/linux/nscd_setup_thread.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sysdeps/unix/sysv/linux/nscd_setup_thread.c b/sysdeps/unix/sysv/linux/nscd_setup_thread.c index 6e14918be0..a49676f4b4 100644 --- a/sysdeps/unix/sysv/linux/nscd_setup_thread.c +++ b/sysdeps/unix/sysv/linux/nscd_setup_thread.c @@ -25,7 +25,6 @@ int setup_thread (struct database_dyn *db) { -#ifdef __NR_set_tid_address /* Only supported when NPTL is used. */ char buf[100]; if (confstr (_CS_GNU_LIBPTHREAD_VERSION, buf, sizeof (buf)) >= sizeof (buf) @@ -43,7 +42,6 @@ setup_thread (struct database_dyn *db) So, set the field to a nonzero value which indicates that nscd is certainly running and clients can skip the test. */ return db->head->nscd_certainly_running = 1; -#endif return 0; }