]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/time-util.c
time-util: add clock_boottime_or_monotonic
authorTom Gundersen <teg@jklm.no>
Thu, 24 Jul 2014 16:36:37 +0000 (18:36 +0200)
committerTom Gundersen <teg@jklm.no>
Thu, 24 Jul 2014 17:02:58 +0000 (19:02 +0200)
commit77ff2de999b7ea6b1b4a3a218fbd9d62bb07cd54
tree11d64d04929f55ceacc6fbbb7321cc6ff5801d69
parenta854881616afbe4c4f55396d3fc2f922bbbe716b
time-util: add clock_boottime_or_monotonic

CLOCK_BOOTTIME is not supported by timerfd on older kernels, so for the time beeing,
use this helper instead which will fallback to CLOCK_MONOTONIC if CLOCK_BOOTTIME is
not supported.
src/shared/time-util.c
src/shared/time-util.h