From patchwork Tue Dec 29 22:31:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aurelien Jarno X-Patchwork-Id: 561648 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 9F705140BA3 for ; Wed, 30 Dec 2015 09:32:44 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b=JDEdZsfo; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; q=dns; s= default; b=mnVc4NtemQ8mTtveo4umhB9z73jTeqrZBZS03ciIUt7ZD8WzNYgJm Mteu4tR6EkqwG/ou+C5ARqVHc+n+600TwEL7/YTaWNCYs0Gl6gTu9vN720qLvps1 3lyxjV3TtQBv+mp4HOyqCsXRmjpWEZKhAlWuITAObjqMYj6wcPAQQY= 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:from:to:cc:subject:date:message-id; s=default; bh=qiOH5XRXC6xuOk1e9DKTWi+P5zI=; b=JDEdZsfoF0doZ5QzjB7Wk2MnfPgk b0wldQ691K77OIbn8rPxiezLI25rk8wb6HFOkqo8wxrBnx+pZvhFjAWVyuq0xIIc MTXrlPQ5s8AcA0doabalOlxH8JfqM6lSowtfiqkWIUfD9PkfdqcO+jRiDzqoUYki X13xMjhqARjzbdk= Received: (qmail 87608 invoked by alias); 29 Dec 2015 22:32:13 -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 87517 invoked by uid 89); 29 Dec 2015 22:32:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.5 required=5.0 tests=BAYES_05, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=275, 279, H*r:TLS1.2, dfd X-HELO: hall.aurel32.net From: Aurelien Jarno To: libc-alpha@sourceware.org Cc: Aurelien Jarno Subject: [PATCH] dl-openat64: always use openat Date: Tue, 29 Dec 2015 23:31:47 +0100 Message-Id: <1451428309-24160-1-git-send-email-aurelien@aurel32.net> Since we require at least a 2.6.32 Linux kernel, the openat syscall is always available. Remove the corresponding compatibility code. * sysdeps/unix/sysv/linux/dl-openat64.c [!__NR_openat] (openat64): Remove. --- ChangeLog | 5 +++++ sysdeps/unix/sysv/linux/dl-openat64.c | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index f3f26d7..0fb5434 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-12-29 Aurelien Jarno + + * sysdeps/unix/sysv/linux/dl-openat64.c [!__NR_openat] (openat64): + Remove compatibility code. + 2015-12-23 Torvald Riegel [BZ #13690] diff --git a/sysdeps/unix/sysv/linux/dl-openat64.c b/sysdeps/unix/sysv/linux/dl-openat64.c index 7eea0ca..95cd7c0 100644 --- a/sysdeps/unix/sysv/linux/dl-openat64.c +++ b/sysdeps/unix/sysv/linux/dl-openat64.c @@ -27,9 +27,5 @@ openat64 (int dfd, const char *file, int oflag, ...) { assert (!__OPEN_NEEDS_MODE (oflag)); -#ifdef __NR_openat return INLINE_SYSCALL (openat, 3, dfd, file, oflag | O_LARGEFILE); -#else - return INLINE_SYSCALL_ERROR_RETURN_VALUE (ENOSYS); -#endif }