forked from pool/coreutils
50 lines
1.5 KiB
Diff
50 lines
1.5 KiB
Diff
|
--- lib/utimens.c
|
||
|
+++ lib/utimens.c
|
||
|
@@ -75,8 +75,8 @@
|
||
|
Return 0 on success, -1 (setting errno) on failure. */
|
||
|
|
||
|
int
|
||
|
-futimens (int fd ATTRIBUTE_UNUSED,
|
||
|
- char const *file, struct timespec const timespec[2])
|
||
|
+gl_futimens (int fd ATTRIBUTE_UNUSED,
|
||
|
+ char const *file, struct timespec const timespec[2])
|
||
|
{
|
||
|
/* Some Linux-based NFS clients are buggy, and mishandle time stamps
|
||
|
of files in NFS file systems in some cases. We have no
|
||
|
@@ -185,5 +185,5 @@
|
||
|
int
|
||
|
utimens (char const *file, struct timespec const timespec[2])
|
||
|
{
|
||
|
- return futimens (-1, file, timespec);
|
||
|
+ return gl_futimens (-1, file, timespec);
|
||
|
}
|
||
|
--- lib/utimens.h
|
||
|
+++ lib/utimens.h
|
||
|
@@ -1,3 +1,3 @@
|
||
|
#include <time.h>
|
||
|
-int futimens (int, char const *, struct timespec const [2]);
|
||
|
+int gl_futimens (int, char const *, struct timespec const [2]);
|
||
|
int utimens (char const *, struct timespec const [2]);
|
||
|
--- src/copy.c
|
||
|
+++ src/copy.c
|
||
|
@@ -616,7 +616,7 @@
|
||
|
timespec[0] = get_stat_atime (src_sb);
|
||
|
timespec[1] = get_stat_mtime (src_sb);
|
||
|
|
||
|
- if (futimens (dest_desc, dst_name, timespec) != 0)
|
||
|
+ if (gl_futimens (dest_desc, dst_name, timespec) != 0)
|
||
|
{
|
||
|
error (0, errno, _("preserving times for %s"), quote (dst_name));
|
||
|
if (x->require_preserve)
|
||
|
--- src/touch.c
|
||
|
+++ src/touch.c
|
||
|
@@ -182,7 +182,7 @@
|
||
|
t = timespec;
|
||
|
}
|
||
|
|
||
|
- ok = (futimens (fd, (fd == STDOUT_FILENO ? NULL : file), t) == 0);
|
||
|
+ ok = (gl_futimens (fd, (fd == STDOUT_FILENO ? NULL : file), t) == 0);
|
||
|
|
||
|
if (fd == STDIN_FILENO)
|
||
|
{
|