This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: MIPS N64 kernel_stat fix
- From: Daniel Jacobowitz <drow at false dot org>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: libc-ports at sourceware dot org
- Date: Fri, 2 Jun 2006 11:29:42 -0400
- Subject: Re: MIPS N64 kernel_stat fix
- References: <Pine.LNX.4.64.0605251245110.8355@digraph.polyomino.org.uk>
On Thu, May 25, 2006 at 12:45:49PM +0000, Joseph S. Myers wrote:
> [sent to correct list this time...]
>
> The Linux kernel stat structure for MIPS always uses 32-bit fields for
> seconds and nanoseconds, even on N64 where the userspace timespec
> structure uses 64-bit fields, so you can't use struct timespec in struct
> kernel_stat. This patch makes kernel_stat use individual 32-bit fields
> again. Tested mips64el-linux (O32, N32, N64).
>
> 2006-05-25 Joseph Myers <joseph@codesourcery.com>
>
> * sysdeps/unix/sysv/linux/mips/kernel_stat.h (struct kernel_stat):
> Don't use struct timespec.
> * sysdeps/unix/sysv/linux/mips/xstatconv.c (__xstat_conv,
> __xstat64_conv): Copy individual timespec fields.
Looks right to me; never noticed since only block size and block count
are after these fields. Committed.
--
Daniel Jacobowitz
CodeSourcery