From patchwork Tue Mar 22 20:30:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aurelien Jarno X-Patchwork-Id: 11475 Received: (qmail 6448 invoked by alias); 22 Mar 2016 20:30:50 -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 6435 invoked by uid 89); 22 Mar 2016 20:30:50 -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, T_RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=INLINE_SYSCALL, inline_syscall, 27, 9, sk:inline_ X-HELO: hall.aurel32.net From: Aurelien Jarno To: libc-alpha@sourceware.org Cc: Aurelien Jarno Subject: [PATCH 1/2] Remove __NR_openat Date: Tue, 22 Mar 2016 21:30:39 +0100 Message-Id: <1458678640-29310-1-git-send-email-aurelien@aurel32.net> With the 2.6.32 minimum kernel on x86 and 3.2 on other architectures, __NR_openat is always defined. Changelog: * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]: Make code unconditional. --- ChangeLog | 5 +++++ sysdeps/unix/sysv/linux/dl-openat64.c | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 36360d9..c403722 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2016-03-22 Aurelien Jarno + + * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]: + Make code unconditional. + 2016-03-22 Samuel Thibault * malloc/Makefile ($(objpfx)tst-malloc-backtrace, diff --git a/sysdeps/unix/sysv/linux/dl-openat64.c b/sysdeps/unix/sysv/linux/dl-openat64.c index 1138779..75c2439 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 }