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: 959770 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-95392-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="ByuIFCSq"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41vGgv0KDpz9s3C for ; Tue, 21 Aug 2018 00:40:42 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:to:subject:mime-version:content-type :content-transfer-encoding:message-id:from; q=dns; s=default; b= jMHI76NcqvjCCdcoZQrJNpOhmC/yXIvagerXgjGer2sQoAvHX4n74YCWO8Ttk8n6 GJw1EWK0aAr7KyRvtCCRVuLLkr6Dkzw5vXoYyx8EbWKLF4bvDzAOd1loQ3IgUvPj jPspNNKEfDf746yylxc+O48dtfFJxSqNQieRc+kPGWA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:to:subject:mime-version:content-type :content-transfer-encoding:message-id:from; s=default; bh=nFssEL oqG7qn3R7q0ie3bUhyW+Q=; b=ByuIFCSqKbEf1r1Uy7HrjQZa4H2Sn+5Wm8e1VQ 5C8AbYiswrZmukmiviyNnIKvBbOnr4fDsUga+FAA/SVbPrUTr+hWoAucU/BC0mIl HohC0m/5MDt2gPRvo6OwGLmSwaBLrDTDhRNDtXIOPBAlrqa/zcUvdryL99RD3WRs nEuzM= 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 }