From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30058 invoked by alias); 9 Feb 2020 16:57:25 -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 30041 invoked by uid 9299); 9 Feb 2020 16:57:24 -0000 Date: Sun, 09 Feb 2020 16:57:00 -0000 Message-ID: <20200209165724.30040.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: open_by_handle_at 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: d767ca43b8c6b28efb5ad12051f6629e4ceae642 X-Git-Newrev: 81d33619b5b5e9e6e62700968393407b5a5aa347 X-SW-Source: 2020-q1/txt/msg00317.txt https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=81d33619b5b5e9e6e62700968393407b5a5aa347 commit 81d33619b5b5e9e6e62700968393407b5a5aa347 Author: Florian Weimer Date: Sun Feb 9 16:40:28 2020 +0100 Linux: open_by_handle_at syscall number is always available Due to the built-in tables, __NR_open_by_handle_at is always defined. Diff: --- sysdeps/unix/sysv/linux/open_by_handle_at.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/sysdeps/unix/sysv/linux/open_by_handle_at.c b/sysdeps/unix/sysv/linux/open_by_handle_at.c index f682d8c..6c9c532 100644 --- a/sysdeps/unix/sysv/linux/open_by_handle_at.c +++ b/sysdeps/unix/sysv/linux/open_by_handle_at.c @@ -24,14 +24,5 @@ int open_by_handle_at (int mount_fd, struct file_handle *handle, int flags) { -#ifdef __NR_open_by_handle_at return SYSCALL_CANCEL (open_by_handle_at, mount_fd, handle, flags); -#else - __set_errno (ENOSYS); - return -1; -#endif } - -#ifndef __NR_open_by_handle_at -stub_warning (open_by_handle_at) -#endif