msqid_ds/semid_ds/shmid_ds and time fields

Anton Blanchard anton at samba.org
Sun Oct 6 11:02:26 EST 2002



> Can anyone point me to the kernel discussions about adding sub-seconds to
> structs used in these syscalls?

Its beginning. Andi just posted this to linux-kernel with the subject:
[PATCH] struct timespec for stat

diff -burp -X ../KDIFX linux/include/asm-ppc64/stat.h linux-2.5.40-work/include/asm-ppc64/stat.h
--- linux/include/asm-ppc64/stat.h	2002-09-25 00:59:27.000000000 +0200
+++ linux-2.5.40-work/include/asm-ppc64/stat.h	2002-10-05 18:46:15.000000000 +0200
@@ -36,15 +36,17 @@ struct stat {
 	unsigned long  	st_blksize;
 	unsigned long  	st_blocks;
 	unsigned long  	st_atime;
-	unsigned long  	__unused1;
+	unsigned long  	st_atime_nsec;
 	unsigned long  	st_mtime;
-	unsigned long  	__unused2;
+	unsigned long  	st_mtime_nsec;
 	unsigned long  	st_ctime;
-	unsigned long  	__unused3;
+	unsigned long  	st_ctime_nsec;
 	unsigned long  	__unused4;
 	unsigned long  	__unused5;
 };

+#define STAT_HAVE_NSEC 1
+
 /* This matches struct stat64 in glibc2.1. */
 struct stat64 {
 	unsigned long st_dev; 		/* Device.  */
@@ -60,11 +62,11 @@ struct stat64 {

 	long st_blocks;			/* Number 512-byte blocks allocated. */
 	int   st_atime;			/* Time of last access.  */
-	unsigned int  __unused1;
+	int   st_atime_nsec;
 	int   st_mtime;			/* Time of last modification.  */
-	unsigned int  __unused2;
+	int   st_mtime_nsec;
 	int   st_ctime;			/* Time of last status change.  */
-	unsigned int   __unused3;
+	int   st_ctime_nsec;
 	unsigned int   __unused4;
 	unsigned int   __unused5;
 };

** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list