From patchwork Sun Feb 9 20:20:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 37818 X-Patchwork-Delegate: carlos@redhat.com Received: (qmail 23449 invoked by alias); 9 Feb 2020 20:20:46 -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 23363 invoked by uid 89); 9 Feb 2020 20:20:45 -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-1.mimecast.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581279642; 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=i32OMQwOQqtJg+1S7ZmFTAyixcUtXx7IEuCnq3lxGpw=; b=YMG5G8OZrl7z9FaxaJAOuo395zFQ1thx5Lsm8Ly/RzPQoYQWzScqJlGIPfPonhx+Wb046N TbNpvhSQNcYByDqhMPYOWhCPduoFQ3vNV8BtT5nw8OuMp1qcjvGSPzQVqtC44ECnxAfAeh jvDTVxHczvBvNqeEGKUdJn8brEhGqlg= From: Florian Weimer To: libc-alpha@sourceware.org Subject: [PATCH 14/26] Linux: rt_sigqueueinfo syscall number is always available In-Reply-To: References: X-From-Line: e6509797f897ebeb3592fd21bceb2f0bf986433a Mon Sep 17 00:00:00 2001 Message-Id: Date: Sun, 09 Feb 2020 21:20:37 +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_rt_sigqueueinfo is always defined. sysdeps/pthread/time_routines.c is not updated because it is shared with Hurd. Reviewed-by: Adhemerval Zanella --- sysdeps/unix/sysv/linux/aio_sigqueue.c | 5 ----- sysdeps/unix/sysv/linux/gai_sigqueue.c | 5 ----- 2 files changed, 10 deletions(-) diff --git a/sysdeps/unix/sysv/linux/aio_sigqueue.c b/sysdeps/unix/sysv/linux/aio_sigqueue.c index 5f00582578..2c5a79bef6 100644 --- a/sysdeps/unix/sysv/linux/aio_sigqueue.c +++ b/sysdeps/unix/sysv/linux/aio_sigqueue.c @@ -26,8 +26,6 @@ #include -#ifdef __NR_rt_sigqueueinfo - /* Return any pending signal or wait for one for the given time. */ int __aio_sigqueue (int sig, const union sigval val, pid_t caller_pid) @@ -46,6 +44,3 @@ __aio_sigqueue (int sig, const union sigval val, pid_t caller_pid) return INLINE_SYSCALL (rt_sigqueueinfo, 3, info.si_pid, sig, &info); } -#else -# include -#endif diff --git a/sysdeps/unix/sysv/linux/gai_sigqueue.c b/sysdeps/unix/sysv/linux/gai_sigqueue.c index e8b65a7d67..e4d7260743 100644 --- a/sysdeps/unix/sysv/linux/gai_sigqueue.c +++ b/sysdeps/unix/sysv/linux/gai_sigqueue.c @@ -26,8 +26,6 @@ #include "gai_misc.h" -#ifdef __NR_rt_sigqueueinfo - /* Return any pending signal or wait for one for the given time. */ int __gai_sigqueue (int sig, const union sigval val, pid_t caller_pid) @@ -46,6 +44,3 @@ __gai_sigqueue (int sig, const union sigval val, pid_t caller_pid) return INLINE_SYSCALL (rt_sigqueueinfo, 3, info.si_pid, sig, &info); } -#else -# include -#endif