From patchwork Wed May 20 09:15:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 6810 Received: (qmail 84970 invoked by alias); 20 May 2015 09:15:30 -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 84959 invoked by uid 89); 20 May 2015 09:15:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL, BAYES_50, KAM_LAZY_DOMAIN_SECURITY, T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mx2.suse.de From: Andreas Schwab To: libc-alpha@sourceware.org Subject: Fix lseek64 for aarch64 ILP32 X-Yow: YOW!! Now I'm playing with my HOLOGRAPHIC ATOMIC SIMULATION LASER pinball machine!! WORLD PEACE is in the BALANCE!! Date: Wed, 20 May 2015 11:15:26 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 This is needed on top of https://sourceware.org/ml/libc-alpha/2014-10/msg00596.html and http://sourceware.org/ml/libc-alpha/2015-03/msg00586.html to fix the return value of lseek64 in the error case. Without this change it returns 0xffffffff instead of -1. Andreas. * sysdeps/unix/sysv/linux/aarch64/sysdep.c (__syscall_error): Change return type to __SYSCALL_SLONG_TYPE. diff --git a/sysdeps/unix/sysv/linux/aarch64/sysdep.c b/sysdeps/unix/sysv/linux/aarch64/sysdep.c index a50e847..e49c922 100644 --- a/sysdeps/unix/sysv/linux/aarch64/sysdep.c +++ b/sysdeps/unix/sysv/linux/aarch64/sysdep.c @@ -19,12 +19,12 @@ #include #include -long __syscall_error (long err); +__SYSCALL_SLONG_TYPE __syscall_error (long err); hidden_proto (__syscall_error) /* This routine is jumped to by all the syscall handlers, to stash an error number into errno. */ -long +__SYSCALL_SLONG_TYPE __syscall_error (long err) { __set_errno (- err);