From patchwork Sun Feb 9 20:21:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 37828 X-Patchwork-Delegate: carlos@redhat.com Received: (qmail 29672 invoked by alias); 9 Feb 2020 20:21:33 -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 29512 invoked by uid 89); 9 Feb 2020 20:21:32 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.9 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=1581279689; 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=1a43IVyEsZ+OhxkOAK4eeWs0Rq1o3PhF/xJG2zlT8wk=; b=RZYyPGNnGQZNZO+CqfixEqLXhkIVZQx3HTrq+b3ajUMOoaGUqUr2Lc4WTBYo1kBB75RtUa OG38EYKunL2W8RXAr04nTGND2Z9Gq33rzX3RWIktmtc99OXTa2WoPwS0THxHmjJz57pZh5 SCQ6DFXMH53OBsBoL79pcJmNYlID2jA= From: Florian Weimer To: libc-alpha@sourceware.org Subject: [PATCH 24/26] Linux: epoll_pwait syscall number is always available In-Reply-To: References: X-From-Line: 196d8d5ac06764500c7fff6e9a6a26bfe66d587e Mon Sep 17 00:00:00 2001 Message-Id: <196d8d5ac06764500c7fff6e9a6a26bfe66d587e.1581279333.git.fweimer@redhat.com> Date: Sun, 09 Feb 2020 21:21:24 +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_epoll_pwait is always defined. Reviewed-by: Adhemerval Zanella --- sysdeps/unix/sysv/linux/epoll_pwait.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/sysdeps/unix/sysv/linux/epoll_pwait.c b/sysdeps/unix/sysv/linux/epoll_pwait.c index fcd2a47d85..66f04482c7 100644 --- a/sysdeps/unix/sysv/linux/epoll_pwait.c +++ b/sysdeps/unix/sysv/linux/epoll_pwait.c @@ -23,8 +23,6 @@ #include #include -#ifdef __NR_epoll_pwait - /* Wait for events on an epoll instance "epfd". Returns the number of triggered events returned in "events" buffer. Or -1 in case of error with the "errno" variable set to the specific error code. The @@ -42,18 +40,4 @@ int epoll_pwait (int epfd, struct epoll_event *events, return SYSCALL_CANCEL (epoll_pwait, epfd, events, maxevents, timeout, set, _NSIG / 8); } - -#else - -int epoll_pwait (int epfd, struct epoll_event *events, - int maxevents, int timeout, - const sigset_t *set) -{ - __set_errno (ENOSYS); - return -1; -} -stub_warning (epoll_pwait) - -#endif - libc_hidden_def (epoll_pwait)