[Glibc-bsd-commits] r2975 - trunk/glibc-ports/kfreebsd

Petr Salinger ps-guest at alioth.debian.org
Thu Feb 11 10:24:08 UTC 2010


Author: ps-guest
Date: 2010-02-11 10:24:07 +0000 (Thu, 11 Feb 2010)
New Revision: 2975

Modified:
   trunk/glibc-ports/kfreebsd/open.c
   trunk/glibc-ports/kfreebsd/openat.c
Log:
drop workaround for setting the modification time in open (..O_TRUNC)
at least 8.0 kernel seems be fine and this workaround does not respect "sysctl vfs.timestamp_precision"
it brokes gnulib testsuite




Modified: trunk/glibc-ports/kfreebsd/open.c
===================================================================
--- trunk/glibc-ports/kfreebsd/open.c	2010-02-08 22:31:15 UTC (rev 2974)
+++ trunk/glibc-ports/kfreebsd/open.c	2010-02-11 10:24:07 UTC (rev 2975)
@@ -50,6 +50,9 @@
     LIBC_CANCEL_RESET (oldtype);
   }
 
+#if 0
+/* At least 8.0 kernel seems be fine and this workaround does not respect "sysctl vfs.timestamp_precision" */
+
   if (fd >= 0 && (oflag & O_TRUNC))
     {
       /* Set the modification time.  The kernel ought to do this.  */
@@ -74,6 +77,7 @@
 	}
       __set_errno (saved_errno);
     }
+#endif
 
   return fd;
 }

Modified: trunk/glibc-ports/kfreebsd/openat.c
===================================================================
--- trunk/glibc-ports/kfreebsd/openat.c	2010-02-08 22:31:15 UTC (rev 2974)
+++ trunk/glibc-ports/kfreebsd/openat.c	2010-02-11 10:24:07 UTC (rev 2975)
@@ -259,6 +259,9 @@
     }
 #endif
 
+#if 0
+/* At least 8.0 kernel seems be fine and this workaround does not respect "sysctl vfs.timestamp_precision" */
+
   if (result >= 0 && (oflag & O_TRUNC))
     {
       /* Set the modification time.  The kernel ought to do this.  */
@@ -283,6 +286,7 @@
 	}
       __set_errno (saved_errno);
     }
+#endif
 
   return result;
 }




More information about the Glibc-bsd-commits mailing list