From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31006 invoked by alias); 9 Feb 2020 16:57:41 -0000 Mailing-List: contact glibc-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: , Sender: glibc-cvs-owner@sourceware.org List-Subscribe: Received: (qmail 30989 invoked by uid 9299); 9 Feb 2020 16:57:40 -0000 Date: Sun, 09 Feb 2020 16:57:00 -0000 Message-ID: <20200209165740.30988.qmail@sourceware.org> 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/fw/syscall-cleanups] Linux: epoll_pwait syscall number is always available X-Act-Checkin: glibc X-Git-Author: Florian Weimer X-Git-Refname: refs/heads/fw/syscall-cleanups X-Git-Oldrev: fe7f3fe7f8b42acb6dd6b9b1610a0cb21226021a X-Git-Newrev: 196d8d5ac06764500c7fff6e9a6a26bfe66d587e X-SW-Source: 2020-q1/txt/msg00320.txt https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=196d8d5ac06764500c7fff6e9a6a26bfe66d587e commit 196d8d5ac06764500c7fff6e9a6a26bfe66d587e Author: Florian Weimer Date: Sun Feb 9 16:57:49 2020 +0100 Linux: epoll_pwait syscall number is always available Due to the built-in tables, __NR_epoll_pwait is always defined. Diff: --- 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 fcd2a47..66f0448 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)