diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2017-01-10 07:48:37 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2017-01-10 07:49:55 -0800 |
commit | fa0a2b4e7c81f57aecc1d94df00588a4dd5c281d (patch) | |
tree | 31408852501056452a337677c8f5b80fd3c24e7c /lib/utimens.c | |
parent | 560a384038845e37228226313eccfc8d70132553 (diff) | |
download | emacs-fa0a2b4e7c81f57aecc1d94df00588a4dd5c281d.tar.gz |
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.
Diffstat (limited to 'lib/utimens.c')
-rw-r--r-- | lib/utimens.c | 10 |
1 files changed, 5 insertions, 5 deletions
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 <http://bugs.gentoo.org/show_bug.cgi?id=132673> 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. */ |