]> Savannah Git Hosting - gnulib.git/commit
timespec: fix resolution confusion
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 11 Sep 2018 01:42:25 +0000 (18:42 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 11 Sep 2018 01:43:46 +0000 (18:43 -0700)
commitb021c53fd4dc009a144db2312d195dd925f0e6fd
tree4c5a792eecbcf3adfc6fb237bee27451b3b857fe
parent8b55a44258e3a217dec66acb8398e7d00059de4b
timespec: fix resolution confusion

In normal usage, clock resolution is given in seconds, but the
code was mistakenly using inverse seconds and calling it
“resolution”.  Fix this, partly by renaming two identifiers.
The old names will be kept for a bit, to ease transition.
* lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
New constants, replacing TIMESPEC_RESOLUTION and
LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
All uses changed.
13 files changed:
ChangeLog
doc/posix-functions/futimens.texi
doc/posix-functions/utimensat.texi
lib/dtotimespec.c
lib/stat-time.h
lib/timespec-add.c
lib/timespec-sub.c
lib/timespec.h
lib/utimens.c
lib/utimensat.c
tests/test-futimens.h
tests/test-timespec.c
tests/test-utimens.h