Skip to contentSkip to conversation

Copy nanosecond stat values for i386

PATCH New Andi Kleen 1 participant 1 message May 31, 2003

lore
Share & tools
lore

Andi Kleen

author
#0 lore raw

PATCH 1/1 Copy nanosecond stat values for i386

A brown paper bag bug, noticed by Ralf Baechtle.

i386 needs to define STAT_HAVE_NSEC too, otherwise it won't copy the nanosecond values to user space.

-Andi

Index: linux/include/asm-i386/stat.h
===================================================================
RCS file: /home/cvs/linux-2.5/include/asm-i386/stat.h,v retrieving revision 1.12

include/asm-i386/stat.h +2 -0
diff -u -u -r1.12 stat.h
@@ -73,4 +73,6 @@
 	unsigned long long	st_ino;
 };
 
+#define STAT_HAVE_NSEC 1
+
 #endif