diff options
| author | Paul Eggert | 2017-01-10 07:48:37 -0800 |
|---|---|---|
| committer | Paul Eggert | 2017-01-10 07:49:55 -0800 |
| commit | fa0a2b4e7c81f57aecc1d94df00588a4dd5c281d (patch) | |
| tree | 31408852501056452a337677c8f5b80fd3c24e7c /lib/utimens.c | |
| parent | 560a384038845e37228226313eccfc8d70132553 (diff) | |
| download | emacs-fa0a2b4e7c81f57aecc1d94df00588a4dd5c281d.tar.gz emacs-fa0a2b4e7c81f57aecc1d94df00588a4dd5c281d.zip | |
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]) | |||
| 154 | return false; | 154 | return false; |
| 155 | } | 155 | } |
| 156 | 156 | ||
| 157 | /* Set the access and modification time stamps of FD (a.k.a. FILE) to be | 157 | /* Set the access and modification timestamps of FD (a.k.a. FILE) to be |
| 158 | TIMESPEC[0] and TIMESPEC[1], respectively. | 158 | TIMESPEC[0] and TIMESPEC[1], respectively. |
| 159 | FD must be either negative -- in which case it is ignored -- | 159 | FD must be either negative -- in which case it is ignored -- |
| 160 | or a file descriptor that is open on FILE. | 160 | or a file descriptor that is open on FILE. |
| 161 | If FD is nonnegative, then FILE can be NULL, which means | 161 | If FD is nonnegative, then FILE can be NULL, which means |
| 162 | use just futimes (or equivalent) instead of utimes (or equivalent), | 162 | use just futimes (or equivalent) instead of utimes (or equivalent), |
| 163 | and fail if on an old system without futimes (or equivalent). | 163 | and fail if on an old system without futimes (or equivalent). |
| 164 | If TIMESPEC is null, set the time stamps to the current time. | 164 | If TIMESPEC is null, set the timestamps to the current time. |
| 165 | Return 0 on success, -1 (setting errno) on failure. */ | 165 | Return 0 on success, -1 (setting errno) on failure. */ |
| 166 | 166 | ||
| 167 | int | 167 | int |
| @@ -190,7 +190,7 @@ fdutimens (int fd, char const *file, struct timespec const timespec[2]) | |||
| 190 | return -1; | 190 | return -1; |
| 191 | } | 191 | } |
| 192 | 192 | ||
| 193 | /* Some Linux-based NFS clients are buggy, and mishandle time stamps | 193 | /* Some Linux-based NFS clients are buggy, and mishandle timestamps |
| 194 | of files in NFS file systems in some cases. We have no | 194 | of files in NFS file systems in some cases. We have no |
| 195 | configure-time test for this, but please see | 195 | configure-time test for this, but please see |
| 196 | <http://bugs.gentoo.org/show_bug.cgi?id=132673> for references to | 196 | <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]) | |||
| 411 | } | 411 | } |
| 412 | } | 412 | } |
| 413 | 413 | ||
| 414 | /* Set the access and modification time stamps of FILE to be | 414 | /* Set the access and modification timestamps of FILE to be |
| 415 | TIMESPEC[0] and TIMESPEC[1], respectively. */ | 415 | TIMESPEC[0] and TIMESPEC[1], respectively. */ |
| 416 | int | 416 | int |
| 417 | utimens (char const *file, struct timespec const timespec[2]) | 417 | utimens (char const *file, struct timespec const timespec[2]) |
| @@ -419,7 +419,7 @@ utimens (char const *file, struct timespec const timespec[2]) | |||
| 419 | return fdutimens (-1, file, timespec); | 419 | return fdutimens (-1, file, timespec); |
| 420 | } | 420 | } |
| 421 | 421 | ||
| 422 | /* Set the access and modification time stamps of FILE to be | 422 | /* Set the access and modification timestamps of FILE to be |
| 423 | TIMESPEC[0] and TIMESPEC[1], respectively, without dereferencing | 423 | TIMESPEC[0] and TIMESPEC[1], respectively, without dereferencing |
| 424 | symlinks. Fail with ENOSYS if the platform does not support | 424 | symlinks. Fail with ENOSYS if the platform does not support |
| 425 | changing symlink timestamps, but FILE was a symlink. */ | 425 | changing symlink timestamps, but FILE was a symlink. */ |