From patchwork Mon Aug 20 14:40:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 28980 Received: (qmail 85635 invoked by alias); 20 Aug 2018 14:40:36 -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 85626 invoked by uid 89); 20 Aug 2018 14:40:36 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Date: Mon, 20 Aug 2018 16:40:32 +0200 To: libc-alpha@sourceware.org Subject: [PATCH] __readlink_chk: Assume HAVE_INLINED_SYSCALLS User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Message-Id: <20180820144032.DC8D94028A147@oldenburg.str.redhat.com> From: fweimer@redhat.com (Florian Weimer) HAVE_INLINED_SYSCALLS is always defined on Linux. 2018-08-20 Florian Weimer * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove HAVE_INLINED_SYSCALLS conditionals diff --git a/sysdeps/unix/sysv/linux/generic/readlink_chk.c b/sysdeps/unix/sysv/linux/generic/readlink_chk.c index 9240408a6b..5075e06dd1 100644 --- a/sysdeps/unix/sysv/linux/generic/readlink_chk.c +++ b/sysdeps/unix/sysv/linux/generic/readlink_chk.c @@ -19,10 +19,8 @@ #include #include #include -#ifdef HAVE_INLINED_SYSCALLS # include # include -#endif ssize_t @@ -31,9 +29,5 @@ __readlink_chk (const char *path, void *buf, size_t len, size_t buflen) if (len > buflen) __chk_fail (); -#ifdef HAVE_INLINED_SYSCALLS return INLINE_SYSCALL (readlinkat, 4, AT_FDCWD, path, buf, len); -#else - return __readlink (path, buf, len); -#endif }