From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16198 invoked by alias); 15 Nov 2012 22:34:05 -0000 Received: (qmail 16033 invoked by uid 22791); 15 Nov 2012 22:34:04 -0000 X-SWARE-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 15 Nov 2012 22:33:59 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1TZ80V-00064w-11 from joseph_myers@mentor.com ; Thu, 15 Nov 2012 14:33:59 -0800 Received: from SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 15 Nov 2012 14:33:58 -0800 Received: from digraph.polyomino.org.uk (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.1.289.1; Thu, 15 Nov 2012 22:33:57 +0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.76) (envelope-from ) id 1TZ80R-0007Kl-Vn; Thu, 15 Nov 2012 22:33:55 +0000 Date: Thu, 15 Nov 2012 22:34:00 -0000 From: "Joseph S. Myers" To: CC: Subject: Re: sendfile64 not impelemented in mips64 In-Reply-To: <20121115063605.GA24663@gentoo.L3L6.loongson.cn> Message-ID: References: <20121115063605.GA24663@gentoo.L3L6.loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org X-SW-Source: 2012-11/txt/msg00045.txt.bz2 MIPS n64 does not use sysdeps/unix/sysv/linux/wordsize-64 because of differences between struct stat and struct stat64. To determine whether some aspect of the sysdeps/unix/sysv/linux/wordsize-64 implementation of some function should be copied for n64 you need to examine the interface to the function, and the associated underlying syscall in the Linux kernel, to determine whether such copying is correct in the particular case. Depending on the userspace interface to the function, and the kernel syscall interface, in the particular case, it may or may not be appropriate to handle n32 like n64 as well. It would make sense for someone to go through everything in sysdeps/unix/sysv/linux/wordsize-64, with reference to the MIPS syscall interface, to work out what is correct and what is optimal for both n64 and n32 for each function. -- Joseph S. Myers joseph@codesourcery.com