timespec: new function make_timespec, and new constants
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 19 Sep 2013 21:12:29 +0000 (14:12 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 19 Sep 2013 21:33:08 +0000 (14:33 -0700)
commitcf0e1bcdc666748ef2bcb38f806cac432936090d
treeba7019e213542ec8b10d8c03f18e7d31bd685209
parent6f3c76e0dc5cb93b7e0d1db77143ad9ef2e773b7
timespec: new function make_timespec, and new constants

* lib/timespec.h: Incorporate recent changes on the Emacs trunk.
(TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
(make_timespec): New function.
* lib/dtotimespec.c (dtotimespec):
* lib/timespec-add.c (timespec_add):
* lib/timespec-sub.c (timespec_sub):
* lib/utimens.c (validate_timespec):
* lib/utimensat.c (rpl_utimensat):
Use these new constants and functions.
ChangeLog
lib/dtotimespec.c
lib/timespec-add.c
lib/timespec-sub.c
lib/timespec.h
lib/utimens.c
lib/utimensat.c