This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: sendfile64 not impelemented in mips64
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: <yili0568 at gmail dot com>
- Cc: <libc-ports at sourceware dot org>
- Date: Thu, 15 Nov 2012 22:33:55 +0000
- Subject: Re: sendfile64 not impelemented in mips64
- References: <20121115063605.GA24663@gentoo.L3L6.loongson.cn>
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