From patchwork Wed Nov 18 19:55:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 41101 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 11823393C87E; Wed, 18 Nov 2020 19:56:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 11823393C87E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1605729365; bh=gAAZxXS0idn8Sj6JUqIiDH9QtW9qud3wzzvaFbQExxs=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=DVne0NSGEugaXCKFAO5ZLeudcFK1PmEvJvT3STP+TCGZKx2wfysLSx+0vRzICJsNg Je5cov2+7XYZftJNY39mCrH7hHYRFvuKTFqRZ8NU3dDcdZWCqvu/etVhZ8yY1TpBcp drpXtSfccDvGLMDQIcFlXp+TYAf14nuKQtzpAd70= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-qk1-x743.google.com (mail-qk1-x743.google.com [IPv6:2607:f8b0:4864:20::743]) by sourceware.org (Postfix) with ESMTPS id 6440C3854800 for ; Wed, 18 Nov 2020 19:56:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 6440C3854800 Received: by mail-qk1-x743.google.com with SMTP id v143so3105004qkb.2 for ; Wed, 18 Nov 2020 11:56:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gAAZxXS0idn8Sj6JUqIiDH9QtW9qud3wzzvaFbQExxs=; b=dIocf/g3HzuAgxUJKBdoClyQbN6jClGHDlk7zSn2H43unsR3iR7dWT+4ZuI4CydXt4 dgpMSvuKDFq+lksaYeyZPBlnPI/fO5tDMH8b6ysjTJE1mJELGp3cDw2VcU+AEx5KYT5M QCpGwaoCZr10ViJ73XoRt/aXhg0l8AoQJOhzCqexiNoByeCCAN8g0fuJX0Fe1wS5k2HX pcmJoK6Nbm0/gepd8oka+DElH9fOtXBEctxrbOSQB+tOaWaGGNctevm02Y5DePKknJg9 NqSm28iYY9cTLzHJ0blhgDjLzvd+s42RnOEgB7QtITpM54NXgPivBluezf3LmWZaAi0p Cj8g== X-Gm-Message-State: AOAM5315Gc3EcZRs7dFb0+vgD0zmNsEcBdgWvBQhgkGWrbPXfYu1u7mJ TRxkQstjSpvTAXZVamUGbABTHs8kTUfqMA== X-Google-Smtp-Source: ABdhPJzTmuRFh0qEiQdMEF16iqBAIlnum1yitoe4LF0Vs2ZJvtoJUGooTZo+T0c1PvYJ9moJvostzA== X-Received: by 2002:a37:40c:: with SMTP id 12mr6217078qke.363.1605729359801; Wed, 18 Nov 2020 11:55:59 -0800 (PST) Received: from localhost.localdomain ([177.194.48.209]) by smtp.googlemail.com with ESMTPSA id f27sm6538775qtv.95.2020.11.18.11.55.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Nov 2020 11:55:59 -0800 (PST) To: libc-alpha@sourceware.org Subject: [PATCH 01/28] Remove generic pthread linuxism on POSIX timer_routine Date: Wed, 18 Nov 2020 16:55:25 -0300 Message-Id: <20201118195552.2687336-2-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201118195552.2687336-1-adhemerval.zanella@linaro.org> References: <20201118195552.2687336-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-13.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Adhemerval Zanella via Libc-alpha From: Adhemerval Zanella Netto Reply-To: Adhemerval Zanella Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" Linux already provide a full implementation, so no need to check if __NR_rt_sigqueueinfo is defined. No semantic changes expected. --- sysdeps/pthread/timer_routines.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/sysdeps/pthread/timer_routines.c b/sysdeps/pthread/timer_routines.c index 05e83d7d52..97f9a2c50c 100644 --- a/sysdeps/pthread/timer_routines.c +++ b/sysdeps/pthread/timer_routines.c @@ -300,30 +300,11 @@ thread_expire_timer (struct thread_node *self, struct timer_node *timer) break; case SIGEV_SIGNAL: -#ifdef __NR_rt_sigqueueinfo - { - siginfo_t info; - - /* First, clear the siginfo_t structure, so that we don't pass our - stack content to other tasks. */ - memset (&info, 0, sizeof (siginfo_t)); - /* We must pass the information about the data in a siginfo_t - value. */ - info.si_signo = timer->event.sigev_signo; - info.si_code = SI_TIMER; - info.si_pid = timer->creator_pid; - info.si_uid = getuid (); - info.si_value = timer->event.sigev_value; - - INLINE_SYSCALL (rt_sigqueueinfo, 3, info.si_pid, info.si_signo, &info); - } -#else if (pthread_kill (self->captured, timer->event.sigev_signo) != 0) { if (pthread_kill (self->id, timer->event.sigev_signo) != 0) abort (); } -#endif break; case SIGEV_THREAD: