From fa0a2b4e7c81f57aecc1d94df00588a4dd5c281d Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 10 Jan 2017 07:48:37 -0800 Subject: Merge from gnulib This incorporates: 2017-01-09 maint: time stamp -> timestamp 2017-01-07 stdioext: Port to Minix 3.2 and newer 2017-01-06 glob, intprops, xalloc: work around Clang bug 2017-01-02 revert copyright-year change to synced files * doc/misc/texinfo.tex, lib/fpending.c, lib/intprops.h, lib/mktime.c: * lib/stat-time.h, lib/stdio-impl.h, lib/time.in.h, lib/timespec.h: * lib/utimens.c, lib/xalloc-oversized.h: Copy from gnulib. --- lib/utimens.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/utimens.c') diff --git a/lib/utimens.c b/lib/utimens.c index e2bb702e7dc..3643668c3a5 100644 --- a/lib/utimens.c +++ b/lib/utimens.c @@ -154,14 +154,14 @@ update_timespec (struct stat const *statbuf, struct timespec *ts[2]) return false; } -/* Set the access and modification time stamps of FD (a.k.a. FILE) to be +/* Set the access and modification timestamps of FD (a.k.a. FILE) to be TIMESPEC[0] and TIMESPEC[1], respectively. FD must be either negative -- in which case it is ignored -- or a file descriptor that is open on FILE. If FD is nonnegative, then FILE can be NULL, which means use just futimes (or equivalent) instead of utimes (or equivalent), and fail if on an old system without futimes (or equivalent). - If TIMESPEC is null, set the time stamps to the current time. + If TIMESPEC is null, set the timestamps to the current time. Return 0 on success, -1 (setting errno) on failure. */ int @@ -190,7 +190,7 @@ fdutimens (int fd, char const *file, struct timespec const timespec[2]) return -1; } - /* Some Linux-based NFS clients are buggy, and mishandle time stamps + /* Some Linux-based NFS clients are buggy, and mishandle timestamps of files in NFS file systems in some cases. We have no configure-time test for this, but please see for references to @@ -411,7 +411,7 @@ fdutimens (int fd, char const *file, struct timespec const timespec[2]) } } -/* Set the access and modification time stamps of FILE to be +/* Set the access and modification timestamps of FILE to be TIMESPEC[0] and TIMESPEC[1], respectively. */ int utimens (char const *file, struct timespec const timespec[2]) @@ -419,7 +419,7 @@ utimens (char const *file, struct timespec const timespec[2]) return fdutimens (-1, file, timespec); } -/* Set the access and modification time stamps of FILE to be +/* Set the access and modification timestamps of FILE to be TIMESPEC[0] and TIMESPEC[1], respectively, without dereferencing symlinks. Fail with ENOSYS if the platform does not support changing symlink timestamps, but FILE was a symlink. */ -- cgit v1.2.3