This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: MIPS N64 kernel_stat fix


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]