SOURCES: coreutils-futimens.patch (NEW) - rename internal futimens...
sparky
sparky at pld-linux.org
Fri May 18 14:19:38 CEST 2007
Author: sparky Date: Fri May 18 12:19:38 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- rename internal futimens() to cu_futimens() - fixes build with glibc 2.6
---- Files affected:
SOURCES:
coreutils-futimens.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/coreutils-futimens.patch
diff -u /dev/null SOURCES/coreutils-futimens.patch:1.1
--- /dev/null Fri May 18 14:19:38 2007
+++ SOURCES/coreutils-futimens.patch Fri May 18 14:19:33 2007
@@ -0,0 +1,60 @@
+diff -Nur coreutils-6.9.orig/lib/utimens.c coreutils-6.9.futimens/lib/utimens.c
+--- coreutils-6.9.orig/lib/utimens.c 2007-01-18 10:33:34.000000000 +0200
++++ coreutils-6.9.futimens/lib/utimens.c 2007-05-18 15:18:06.000000000 +0300
+@@ -75,7 +75,7 @@
+ Return 0 on success, -1 (setting errno) on failure. */
+
+ int
+-futimens (int fd ATTRIBUTE_UNUSED,
++cu_futimens (int fd ATTRIBUTE_UNUSED,
+ char const *file, struct timespec const timespec[2])
+ {
+ /* Some Linux-based NFS clients are buggy, and mishandle time stamps
+@@ -185,5 +185,5 @@
+ int
+ utimens (char const *file, struct timespec const timespec[2])
+ {
+- return futimens (-1, file, timespec);
++ return cu_futimens (-1, file, timespec);
+ }
+diff -Nur coreutils-6.9.orig/lib/utimens.h coreutils-6.9.futimens/lib/utimens.h
+--- coreutils-6.9.orig/lib/utimens.h 2007-02-23 20:25:21.000000000 +0200
++++ coreutils-6.9.futimens/lib/utimens.h 2007-05-18 15:18:06.000000000 +0300
+@@ -1,3 +1,3 @@
+ #include <time.h>
+-int futimens (int, char const *, struct timespec const [2]);
++int cu_futimens (int, char const *, struct timespec const [2]);
+ int utimens (char const *, struct timespec const [2]);
+diff -Nur coreutils-6.9.orig/src/copy.c coreutils-6.9.futimens/src/copy.c
+--- coreutils-6.9.orig/src/copy.c 2007-03-18 23:36:43.000000000 +0200
++++ coreutils-6.9.futimens/src/copy.c 2007-05-18 15:18:06.000000000 +0300
+@@ -518,7 +518,7 @@
+ timespec[0] = get_stat_atime (src_sb);
+ timespec[1] = get_stat_mtime (src_sb);
+
+- if (futimens (dest_desc, dst_name, timespec) != 0)
++ if (cu_futimens (dest_desc, dst_name, timespec) != 0)
+ {
+ error (0, errno, _("preserving times for %s"), quote (dst_name));
+ if (x->require_preserve)
+diff -Nur coreutils-6.9.orig/src/touch.c coreutils-6.9.futimens/src/touch.c
+--- coreutils-6.9.orig/src/touch.c 2007-03-18 23:36:43.000000000 +0200
++++ coreutils-6.9.futimens/src/touch.c 2007-05-18 15:18:06.000000000 +0300
+@@ -167,7 +167,7 @@
+
+ if (amtime_now)
+ {
+- /* Pass NULL to futimens so it will not fail if we have
++ /* Pass NULL to cu_futimens so it will not fail if we have
+ write access to the file, but don't own it. */
+ t = NULL;
+ }
+@@ -182,7 +182,7 @@
+ t = timespec;
+ }
+
+- ok = (futimens (fd, (fd == STDOUT_FILENO ? NULL : file), t) == 0);
++ ok = (cu_futimens (fd, (fd == STDOUT_FILENO ? NULL : file), t) == 0);
+
+ if (fd == STDIN_FILENO)
+ {
================================================================
More information about the pld-cvs-commit
mailing list