Re: fstat seems broken on sparc64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Jan Engelhardt <jengelh@xxxxxxxxxx>
Date: Mon, 14 Dec 2009 00:57:08 +0100 (CET)

> It is because arch/sparc/include/stat.h does not define STAT_HAVE_NSEC 
> for 64-bit sparc, even though there's nsec in struct stat64.
> That leads to fs/stat.c not copying the subsecond parts to userspace (in 
> function cp_new_stat).

cp_new_stat() handles "struct stat", not "struct stat64"

cp_new_stat64() does that, and it unconditionally fills in
the nsec parts.
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux