[uClibc-cvs] svn commit: trunk/uClibc/libc/sysdeps/linux/common

vapier at uclibc.org vapier at uclibc.org
Fri Jul 15 22:58:12 UTC 2005


Author: vapier
Date: 2005-07-15 16:58:11 -0600 (Fri, 15 Jul 2005)
New Revision: 10833

Log:
add support for passing nano seconds (if arch supports it)

Modified:
   trunk/uClibc/libc/sysdeps/linux/common/xstatconv.c


Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/common/xstatconv.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/xstatconv.c	2005-07-15 22:27:21 UTC (rev 10832)
+++ trunk/uClibc/libc/sysdeps/linux/common/xstatconv.c	2005-07-15 22:58:11 UTC (rev 10833)
@@ -48,9 +48,14 @@
     buf->st_atime = kbuf->st_atime;
     buf->st_mtime = kbuf->st_mtime;
     buf->st_ctime = kbuf->st_ctime;
+#ifdef STAT_HAVE_NSEC
+	buf->st_atime_nsec = kbuf->st_atime_nsec;
+	buf->st_mtime_nsec = kbuf->st_mtime_nsec;
+	buf->st_ctime_nsec = kbuf->st_ctime_nsec;
+#endif
 }
 
-#if defined __UCLIBC_HAS_LFS__
+ #if defined(__UCLIBC_HAS_LFS__)
 void __xstat64_conv(struct kernel_stat64 *kbuf, struct stat64 *buf)
 {
     /* Convert to current kernel version of `struct stat64'.  */
@@ -70,6 +75,10 @@
     buf->st_atime = kbuf->st_atime;
     buf->st_mtime = kbuf->st_mtime;
     buf->st_ctime = kbuf->st_ctime;
+#ifdef STAT_HAVE_NSEC
+	buf->st_atime_nsec = kbuf->st_atime_nsec;
+	buf->st_mtime_nsec = kbuf->st_mtime_nsec;
+	buf->st_ctime_nsec = kbuf->st_ctime_nsec;
+#endif
 }
 #endif
-




More information about the uClibc-cvs mailing list