From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25708 invoked by alias); 22 Nov 2012 02:38:44 -0000 Received: (qmail 25700 invoked by uid 22791); 22 Nov 2012 02:38:43 -0000 X-SWARE-Spam-Status: No, hits=-4.0 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,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, 22 Nov 2012 02:38:18 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1TbMgD-0000RZ-0Q from joseph_myers@mentor.com for libc-ports@sourceware.org; Wed, 21 Nov 2012 18:38:17 -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); Wed, 21 Nov 2012 18:38:16 -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, 22 Nov 2012 02:38:15 +0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.76) (envelope-from ) id 1TbMgA-0006IW-B4 for libc-ports@sourceware.org; Thu, 22 Nov 2012 02:38:14 +0000 Date: Thu, 22 Nov 2012 02:38:00 -0000 From: "Joseph S. Myers" To: Subject: Implement MIPS n64 sendfile64 as alias of sendfile syscall (bug 14822) Message-ID: 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/msg00106.txt.bz2 Bug 14822 notes that MIPS n64 is missing an actual sendfile64 implementation. The n64 syscall interface has only a sendfile syscall (o32 and n32 both have both sendfile and sendfile64 syscalls), and since this function does not have struct stat involved in its interface it's correct for sendfile and sendfile64 to be aliases for n64. Thus this patch fixes this issue by making n64 handle this syscall the same as sysdeps/unix/sysv/linux/wordsize-64. 2012-11-22 Joseph Myers [BZ #14822] * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (sendfile): New syscall entry. * sysdeps/unix/sysv/linux/mips/mips64/n64/sendfile64.c: New file. Copy of ../sysdeps/unix/sysv/linux/wordsize-64/sendfile64.c. diff --git a/ports/sysdeps/unix/sysv/linux/mips/mips64/n64/sendfile64.c b/ports/sysdeps/unix/sysv/linux/mips/mips64/n64/sendfile64.c new file mode 100644 index 0000000..4c451bd --- /dev/null +++ b/ports/sysdeps/unix/sysv/linux/mips/mips64/n64/sendfile64.c @@ -0,0 +1 @@ +/* sendfile64 is alias of sendfile syscall. */ diff --git a/ports/sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list b/ports/sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list index c94fe75..b23a2a1 100644 --- a/ports/sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list +++ b/ports/sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list @@ -8,3 +8,5 @@ fanotify_mark EXTRA fanotify_mark i:iiiis fanotify_mark fstatfs - fstatfs i:ip __fstatfs fstatfs fstatfs64 __fstatfs64 statfs - statfs i:sp __statfs statfs statfs64 __statfs64 + +sendfile - sendfile i:iipi sendfile sendfile64 -- Joseph S. Myers joseph@codesourcery.com